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 Peter Drescher

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)

Revision:
42:7cbdfd2bbfc5
Parent:
32:0e4f2ae512e2
Child:
125:7a0b70f56550
--- a/Bitmap.h	Sat Feb 08 17:35:45 2014 +0000
+++ b/Bitmap.h	Sun Feb 23 17:58:39 2014 +0000
@@ -23,7 +23,7 @@
 #pragma push
 #pragma pack(2)
 
-typedef struct                 /**** BMP file header structure ****/
+typedef struct                    /**** BMP file header structure ****/
     {
     uint16_t    bfType;           /* Magic number for file */
     uint32_t    bfSize;           /* Size of file */
@@ -73,4 +73,30 @@
 //    RGBQUAD          bmiColors[256]; /* Image colormap */
 //    } BITMAPINFO;
 
+
+#pragma push
+#pragma pack(2)
+
+typedef struct                  /**** ICO file header structure ****/
+    {
+    uint16_t    Reserved_zero;  // Always zero
+    uint16_t    icType;         // 1 for .ico, 2 for .cur
+    uint16_t    icImageCount;   // number of images in the file    
+    } ICOFILEHEADER;
+    
+typedef struct                  /**** ICO file Directory Entry structure (1 or more) ****/
+    {
+    uint8_t     biWidth;          /* Width of image */
+    uint8_t     biHeight;         /* Height of image */
+    uint8_t     biClrUsed;        /* Number of colors used */
+    uint8_t     Reserved_zero;
+    uint16_t    biPlanes;         /* Number of color planes (ICO should be 0 or 1, CUR horz hotspot */
+    uint16_t    biBitCount;       /* Number of bits per pixel (ICO bits per pixel, CUR vert hotspot */
+    uint32_t    biSizeImage;      /* Size of image data */
+    uint32_t    bfOffBits;        /* Offset into file for the bitmap data */
+    } ICODIRENTRY;
+#pragma pop
+
+#define IC_TYPE 0x0001            /* 1 = ICO (icon), 2 = CUR (cursor) */
+
 #endif // _BITMAP_H_