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

Committer:
jmitc91516
Date:
Fri Jul 28 14:40:43 2017 +0000
Revision:
0:6db0d96b351d
Loads a bitmap file from a file in QSPI memory, and displays it.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
jmitc91516 0:6db0d96b351d 1 #ifndef QSPIBITMAP_H
jmitc91516 0:6db0d96b351d 2 #define QSPIBITMAP_H
jmitc91516 0:6db0d96b351d 3
jmitc91516 0:6db0d96b351d 4 #include "mbed.h"
jmitc91516 0:6db0d96b351d 5 #include "DMBoard.h"
jmitc91516 0:6db0d96b351d 6
jmitc91516 0:6db0d96b351d 7 #include "GuiLib.h"
jmitc91516 0:6db0d96b351d 8 #include "GuiDisplay.h"
jmitc91516 0:6db0d96b351d 9
jmitc91516 0:6db0d96b351d 10 #include "QSPIFileSystem.h"
jmitc91516 0:6db0d96b351d 11
jmitc91516 0:6db0d96b351d 12 class QSPIBitmap
jmitc91516 0:6db0d96b351d 13 {
jmitc91516 0:6db0d96b351d 14 public:
jmitc91516 0:6db0d96b351d 15 QSPIBitmap();
jmitc91516 0:6db0d96b351d 16
jmitc91516 0:6db0d96b351d 17 QSPIBitmap(char* bitmapName);
jmitc91516 0:6db0d96b351d 18
jmitc91516 0:6db0d96b351d 19 ~QSPIBitmap();
jmitc91516 0:6db0d96b351d 20
jmitc91516 0:6db0d96b351d 21 void DisplayAt(GuiConst_INT16S X, GuiConst_INT16S Y, GuiConst_INT32S transparentColour);
jmitc91516 0:6db0d96b351d 22
jmitc91516 0:6db0d96b351d 23 bool BitmapLoaded(void) { return bitmapLoaded; }
jmitc91516 0:6db0d96b351d 24
jmitc91516 0:6db0d96b351d 25 private:
jmitc91516 0:6db0d96b351d 26 char name[200];
jmitc91516 0:6db0d96b351d 27
jmitc91516 0:6db0d96b351d 28 int size;
jmitc91516 0:6db0d96b351d 29 int debugVar1;
jmitc91516 0:6db0d96b351d 30
jmitc91516 0:6db0d96b351d 31 GuiConst_INT8U* data;
jmitc91516 0:6db0d96b351d 32 // GuiConst_INT8U data[10000];
jmitc91516 0:6db0d96b351d 33
jmitc91516 0:6db0d96b351d 34 bool ReadBitmapSizeFile(void);
jmitc91516 0:6db0d96b351d 35 bool ReadBitmapDataFile(void);
jmitc91516 0:6db0d96b351d 36 bool GetBitmapFromQSPIDrive(void);
jmitc91516 0:6db0d96b351d 37 bool bitmapLoaded;
jmitc91516 0:6db0d96b351d 38 };
jmitc91516 0:6db0d96b351d 39
jmitc91516 0:6db0d96b351d 40
jmitc91516 0:6db0d96b351d 41 #endif //QSPIBITMAP_H