First draft of a simple application to read a bitmap from a file in QSPI memory, and display it on the LPC4088 using the easyGUI library.
Dependencies: DMBasicGUI DMSupport
Diff: QSPIBitmap.h
- Revision:
- 0:6db0d96b351d
diff -r 000000000000 -r 6db0d96b351d QSPIBitmap.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/QSPIBitmap.h Fri Jul 28 14:40:43 2017 +0000 @@ -0,0 +1,41 @@ +#ifndef QSPIBITMAP_H +#define QSPIBITMAP_H + +#include "mbed.h" +#include "DMBoard.h" + +#include "GuiLib.h" +#include "GuiDisplay.h" + +#include "QSPIFileSystem.h" + +class QSPIBitmap +{ +public: + QSPIBitmap(); + + QSPIBitmap(char* bitmapName); + + ~QSPIBitmap(); + + void DisplayAt(GuiConst_INT16S X, GuiConst_INT16S Y, GuiConst_INT32S transparentColour); + + bool BitmapLoaded(void) { return bitmapLoaded; } + +private: + char name[200]; + + int size; + int debugVar1; + + GuiConst_INT8U* data; +// GuiConst_INT8U data[10000]; + + bool ReadBitmapSizeFile(void); + bool ReadBitmapDataFile(void); + bool GetBitmapFromQSPIDrive(void); + bool bitmapLoaded; +}; + + +#endif //QSPIBITMAP_H