|
Post by bffonseca on Apr 18, 2019 9:31:20 GMT -8
Greetins,
I am trying to make a button that, when pressed, changes the color to a slightly darker color and then back to the normal color. Much like the cmd_keys work when pressed.
Is there any way to achieve this? I can't seem to find this information anywhere.
The cmd_button is not doing this effect, even with the 3D option on.
|
|
|
Post by jamesbowman on Apr 21, 2019 5:51:56 GMT -8
|
|
|
Post by bffonseca on Apr 23, 2019 7:11:51 GMT -8
Thanks! That helped. Is there any way to update just one specific zone of the screen (the button in this case), or do I have to redraw the whole frame with the new (pressed) button using swap()?
|
|
|
Post by jamesbowman on Apr 23, 2019 7:51:18 GMT -8
Cool.
Yeah, that's the EVE way, you have to redraw everything every frame. Drawing everything is not as heavyweight as it sounds though, because the MCU is only sending a couple of hundred bytes over SPI. On a puny Arduino, for example, the redraw rarely takes over 1ms.
|
|