Library to control a QVGA TFT connected to SPI. You can use printf to print text The lib can handle different fonts, draw lines, circles, rect and bmp

Revision:
5:2db1b8070d94
Parent:
4:e1e45f8a7664
Child:
6:fc33e4a5713e
--- a/SPI_TFT.h	Thu Jul 14 20:13:07 2011 +0000
+++ b/SPI_TFT.h	Sat Jul 30 22:15:35 2011 +0000
@@ -225,6 +225,28 @@
    */    
   void Bitmap(unsigned int x, unsigned int y, unsigned int w, unsigned int h,unsigned char *bitmap);
     
+    
+   /** paint a 16 bit BMP from local filesytem on the TFT (slow) 
+   *
+   * @param x,y : upper left corner 
+   * @param *Name_BMP name of the BMP file
+   * @returns 1 if bmp file was found and painted
+   * @returns -1 if bmp file was found not found
+   * @returns -2 if bmp file is not 16bit
+   * @returns -3 if bmp file is to big for screen 
+   * @returns -4 if buffer malloc go wrong
+   *
+   *   bitmap format: 16 bit R5 G6 B5
+   * 
+   *   use Gimp to create / load , save as BMP, option 16 bit R5 G6 B5
+   *   copy to internal file system            
+   * 
+   */      
+    
+  int BMP_16(unsigned int x, unsigned int y, const char *Name_BMP);  
+    
+    
+    
   /** select the font to use
    *
    * @param f pointer to font array 
@@ -237,7 +259,7 @@
    *   - the number of byte per vertical line
    *   you also have to change the array to char[]
    *
-   */   
+   */  
   void set_font(unsigned char* f);
    
   /** Set the orientation of the screen
@@ -347,6 +369,7 @@
     
   unsigned int orientation;
   unsigned int char_x;
+ 
     
 };