I want to create a three state button: As the name suggests the button shall have three states. Lets call them green, orange and red. The colour and appearence shall be controlled from the microcontroller.
For this purpose I have generated three images of the button in the mentioned colors. These images are made as background images so that the “crop image” function can be applied.
My Problem is, that I cannot assign three images to the Button and switch them from the microcontroller to set the correct colour.
Is there a possibility to increase the number of attributes to a button?
Is there a better solution?