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

write an xbm file to the buffer #15

Closed
wants to merge 1 commit into from
Closed

write an xbm file to the buffer #15

wants to merge 1 commit into from

Conversation

astintzing
Copy link

Hi,

I wrote a simple method to write an xbm file to the buffer. Use it to display an image, or use it to display menu items. The "inverted" parameter could used to mark an item active.

Creating a XBM file is very easy using Gimp. Create an Image with the size of 84x48, monochrome and save or export it as a xbm file. Import the created file in your main.c/cpp with the include directive:
"#include <filename.xbm>".
Draw the image using:
drawXbm(0, 0, filename_bits, filename_width, filename_height);

Hope you find it useful!

@tdicola
Copy link
Contributor

tdicola commented May 23, 2014

Thanks for submitting this pull request. I'm cleaning up old issues and will close this one. The library was refactored to build on top of the Adafruit_GFX library, so adding drawing code to this library doesn't make as much sense anymore. The Adafruit_GFX library also has a drawBitmap function that's very similar and can be used to draw bitmaps from flash memory to a display. Feel free to send pull requests to the Adafruit_GFX library in the future. Thanks!

@tdicola tdicola closed this May 23, 2014
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.

2 participants