Shows how to use a display, the onboard SD Card and the onboard SPI Flash. Requires a display module with direct Arduino pinning
Dependencies: DmTftLibrary SDFileSystem mbed
Revision 4:93ca338876e2, committed 2014-07-09
- Comitter:
- displaymodule
- Date:
- Wed Jul 09 09:38:56 2014 +0000
- Parent:
- 3:e1e1053e286f
- Child:
- 5:8c65e8d6d6dc
- Commit message:
- Updated library dependencies. Fixed warning. Fixed file position bug.
Changed in this revision
--- a/DmDrawBmpBase.cpp Mon Jul 07 11:43:01 2014 +0000 +++ b/DmDrawBmpBase.cpp Wed Jul 09 09:38:56 2014 +0000 @@ -30,7 +30,6 @@ bool DmDrawBmpBase::draw888Bitmap(DmTftBase& tft, uint16_t x, uint16_t y) { const uint8_t bytesPerPixel = 3; - uint32_t _bitmapOffset; uint8_t red, green, blue; uint16_t row, column; uint16_t bytesPerRow = (bytesPerPixel*_width + 3) & ~3;
--- a/DmTftLibrary.lib Mon Jul 07 11:43:01 2014 +0000 +++ b/DmTftLibrary.lib Wed Jul 09 09:38:56 2014 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/displaymodule/code/DmTftLibrary/#b24f01d148c4 +http://mbed.org/users/displaymodule/code/DmTftLibrary/#d263094e666d
--- a/main.cpp Mon Jul 07 11:43:01 2014 +0000 +++ b/main.cpp Wed Jul 09 09:38:56 2014 +0000 @@ -106,6 +106,7 @@ break; } } + fseek(fp, 0, SEEK_SET); log("Found %s, erasing SPI flash\n", fname); flash.chipErase();