How to change pushbutton colour in Guide without pressing it ?
Afficher commentaires plus anciens
I have a GUI that reads the DHT11 sensor data attached to Arduino. I also have pushbutton in my GUI. Now, how do I change pushbutton colour based on incoming sensor data. For, example if the temperature is below 30 celsius then pushbutton should turn to Green otherwise it should turn to Red.
6 commentaires
Saad Oussaada
le 6 Mar 2020
hello;
please can you share the program with me , I am actuallay stuck , and I don't know what to do
thanks a lot
Walter Roberson
le 6 Mar 2020
What part are you stuck on?
Saad Oussaada
le 6 Mar 2020
well I am not professionel at all in programation on matlab ... and I searshed for a code which can reads data from dht11 and shows it in Spinner on app designer but all i can found is ploting teperature and humidity so I need someone who can help me right the correct program I need this a lot and thank you
Walter Roberson
le 6 Mar 2020
What error message did you receive when you attempted to implement the code? Or what specific function do you need assistance in locating?
Karthik Muthineni
le 7 Mar 2020
Saad Oussaada
le 8 Mar 2020
hello Karthik Muthineni
thank you so mush
Réponse acceptée
Plus de réponses (1)
Walter Roberson
le 11 Fév 2018
You can set the BackgroundColor property of the uicontrol handle
handles.stop_button.BackgroundColor = [0.8 0 0] %red
Catégories
En savoir plus sur Graphics Performance dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!