• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

How to modify the style from loop()

Q&A Forum › Category: Arduino › How to modify the style from loop()
0 Vote Up Vote Down
Salustiano Moreno asked 5 months ago

Hello
I’m working with the sketch’s, in example UNIT_2_2 Button Detecting Different Events
In my application I managin an integred variable in severals functions, depends of his value (0,1,2,3), I have to modify the background color of the button
How to do it?
Could you give an examble or a link to some similar please
Thanks in advance

3 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 5 months ago

Hi.
 
Please take a look at module 2.4 which covers how to style the buttons.
Then, let me know if you still have questions.
 
Regards,
Sara

0 Vote Up Vote Down
Salustiano Moreno answered 5 months ago

Hi Sara
Thanks a lot for your answer, now I improved my managed of the styles,  also I create
d the objects as global variable with static lv_obj_t * miIcono1;
With this I can modify his properties from any other function
Bye and thanks again
Salus;

0 Vote Up Vote Down
Sara Santos Staff answered 5 months ago

Great.
I’ll mark this issue as resolved. If you need further help, you just need to open a new question in our forum.
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.