Creating a GUI and need a button object
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
-
- Posts: 9
- Joined: Mon Jul 14, 2014 9:02 pm
Creating a GUI and need a button object
I'm creating a GUI with the RA8875 and a 5" TFT display with an Arduino UNO. Instead of having to create every permutation of possible screen re-draws, I'd like to use an object that acts as a button on my display which will allow me to redraw only it (change its color) to represent on and off. I'm only working on the graphical representation at the moment. Let's assume I have already established how I will handle touch-sensing. My general internet and adafruit forum search-fu hasn't yielded anything pertaining to my specific problem. Can anyone make a suggestion or point me to a tutorial?
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Creating a GUI and need a button object
Look at the OnOffButton example in the Adafruit_ILI9341 library. The actual drawing calls are similar, so it may give you a place to start.
https://github.com/adafruit/Adafruit_ILI9341
https://github.com/adafruit/Adafruit_ILI9341
-
- Posts: 9
- Joined: Mon Jul 14, 2014 9:02 pm
Re: Creating a GUI and need a button object
Awesome, thanks!
Please be positive and constructive with your questions and comments.