Closed myoung34 closed 9 years ago
Edited. Can't forget about us old school 2.8" TFT owners. The example doesn't work at all as-is. Might hurt beginners. This current tftbmp code works with the tutorial, meaning all pieces of that tutorial work with the original 2.8" TFT.
Thanks for sending the pull request and apologies it wasn't reviewed sooner. Just submitted a fix to add the missing SPI.h header to the example. I tried the changes in this pull though and had some issues with the display not showing anything. I think the SPI saving/restoring might be causing problems. In particular it looks like there's a disableSPI call added right before drawBMP, which needs SPI to read the data from the SD card. I'll close this pull for now, but feel free to submit another pull with any changes or fixes. Thanks!
Fixed the filename to line up with the 2.8"tft example
Without the SPI.h include the errors become: