Library to control a Graphics TFT connected to 4-wire SPI - revised for the Raio RA8875 Display Controller.
Dependents: FRDM_RA8875_mPaint RA8875_Demo RA8875_KeyPadDemo SignalGenerator ... more
Fork of SPI_TFT by
See Components - RA8875 Based Display
Enhanced touch-screen support - where it previous supported both the Resistive Touch and Capacitive Touch based on the FT5206 Touch Controller, now it also has support for the GSL1680 Touch Controller.
Offline Help Manual (Windows chm)
/media/uploads/WiredHome/ra8875.zip.bin (download, rename to .zip and unzip)
Diff: Bitmap.h
- Revision:
- 32:0e4f2ae512e2
- Parent:
- 31:c72e12cd5c67
- Child:
- 42:7cbdfd2bbfc5
--- a/Bitmap.h Mon Jan 20 19:19:48 2014 +0000 +++ b/Bitmap.h Tue Jan 21 03:28:36 2014 +0000 @@ -18,6 +18,8 @@ // // Bitmap file data structures // +// must align to 2-byte boundaries so it doesn't alter the memory image when +// bytes are read from the file system into this footprint. #pragma push #pragma pack(2) @@ -30,8 +32,6 @@ uint32_t bfOffBits; /* Offset to bitmap data */ } BITMAPFILEHEADER; -#define BF_TYPE 0x4D42 /* "MB" */ - typedef struct /**** BMP file info structure ****/ { uint32_t biSize; /* Size of info header */ @@ -48,6 +48,8 @@ } BITMAPINFOHEADER; #pragma pop +#define BF_TYPE 0x4D42 /* "MB" */ + /* * Constants for the biCompression field... */ @@ -65,19 +67,10 @@ uint8_t rgbReserved; /* Reserved */ } RGBQUAD; -typedef struct /**** Bitmap information structure ****/ - { - BITMAPINFOHEADER bmiHeader; /* Image header */ - RGBQUAD bmiColors[256]; /* Image colormap */ - } BITMAPINFO; - - -/* - * Prototypes... - */ - -//extern GLubyte *LoadDIBitmap(const char *filename, BITMAPINFO **info); -//extern int32_t SaveDIBitmap(const char *filename, BITMAPINFO *info, -// GLubyte *bits); +//typedef struct /**** Bitmap information structure ****/ +// { +// BITMAPINFOHEADER bmiHeader; /* Image header */ +// RGBQUAD bmiColors[256]; /* Image colormap */ +// } BITMAPINFO; #endif // _BITMAP_H_