Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bitmap and mask display capability of Adafruit_GFX_Button #372

Open
wants to merge 17 commits into
base: master
Choose a base branch
from

Conversation

63n0m3
Copy link

@63n0m3 63n0m3 commented Nov 12, 2021

Hello.
In pull request there is an Adafruit_GFX_Button changed both in Adafruit_GFX.cpp and Adafruit_GFX.h to add the new functionality. The class is fully compatible with previous version. All original varieables unchanged. Added functionality allows for displaying button bitmaps and masks. Depending on which initButton function user calls, from this point on drawButton will draw old style or double bitmap(true/false) style or double mask with rgb565 color style buttons. There is also added Change_Position() function for adjustable menus, and Last_Time_Used_millis varieable for alternative press of a button determination.
On top of this there is a rgb24 .bmp to rgb565 array and 8pixel/byte mask array generator tool in the bmp extractor folder.
Example with the video tutorial and explanation is in the examples. Link to video explaining both from using and code perspective is in the example Custom_Button_Example.

@63n0m3
Copy link
Author

63n0m3 commented Nov 12, 2021

The example is based on MCUFRIEND _kbv

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant