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

Add Adafruit GFX support for drawing a BMP from RAM #44

Closed
wants to merge 4 commits into from

Conversation

rtwfroody
Copy link
Contributor

I'm using this to draw icons in my application. Compiling them in is simpler than putting them on an SD card (which I don't have in my current hardware, although there is a slot for one).

Note that this change includes #43 as well, under the assumption that that will be merged first. If changes need to be made to that PR, I'll rebase this one.

@ImpulseAdventure
Copy link
Owner

This is great, Tim! Note that it may be next weekend before I get an opportunity to test it out & merge.
For reference, what devices were you targeting with this implementation? thx

@rtwfroody
Copy link
Contributor Author

I'm using an Adafruit Feather HUZZAH 8266 with the 2.4" TFT touch screen (STMPE610 plus ILI9341).

@ImpulseAdventure
Copy link
Owner

ImpulseAdventure commented Apr 15, 2018

Hi Tim -- I'd be interested in integrating this PR as it would be really useful.

However, it looks like it will break compilation for Arduino targets (eg. ATmega2560) due to the use of FS.h (which is presumably only available in the ESP8266 arduino core). I'll continue to see if I can find a way that would support the same functionality with the libraries available on Arduino targets.

It does look like one could probably create a simple RAM/FLASH based version of the DrvRead#SD(), seek() and read() routines without much overhead. I'll take a look. Thanks again for the contribution.

@rtwfroody
Copy link
Contributor Author

rtwfroody commented Apr 18, 2018 via email

@ImpulseAdventure
Copy link
Owner

ImpulseAdventure commented Jun 8, 2018

@rtwfroody - BTW, it looks like I had missed your travis-ci comment until now. Thanks for the good recommendation! I had actually integrated travis for the AVR targets (UNO, ATMEGA2560) earlier this year but it seems like the option to test the PRs wasn't active. I have updated the config now, so future pull requests should also flag any compilation issues. Will add other targets as well soon.

Thanks for the recommendation. Now back from vacation, I should have more time now to explore your BMP RAM-based draw proposal (using native implementation versus FS).

@ImpulseAdventure
Copy link
Owner

Once again, thank you very much Tim for implementing the initial cut of this feature for the ESP8266 platform. I have combined your work with Paul's commit to produce #101, enabling us to support both platforms without needing a platform-dependent include. Therefore, I am closing this pull request as the functionality should now be incorporated by the new PR. For reference, you can see the new example ex28_ard_btn_img_flash as guidance on the API. Thanks!

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