Enhancement to LGFX_Button #428
AcuarioCat
started this conversation in
Show and tell
Replies: 2 comments
-
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Beta Was this translation helpful? Give feedback.
0 replies
-
This issue has been automatically closed because it has not had recent activity. Thank you for your contributions. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Here is my code for an enhanced button.
The standard button swaps the text and fill colours when a button is pressed.
This button allows you to set the colour for the pressed and unpressed button, the button text remains the same colour.
The files are added to the C:\Arduino\libraries\LovyanGFX-master\src\lgfx\v1 folder
Usage:
LGFX_ButtonPlus btnMyButton;
btnMyButton.initButton(&sKeyboard, 10, 35, 110, 60, COL_OFF, COL_ON, COL_TXT, "Button", 2);
Hope someone finds it useful..
LGFX_ButtonPlus.zip
Beta Was this translation helpful? Give feedback.
All reactions