Modifié pour fonctionner avec les écran arduino. Ecran surplaque blanche, dos bleu, au dimensions de l'arduino esplora
Fork of ST7735_TFT by
Diff: ST7735_TFT.h
- Revision:
- 2:b9c08958fef9
- Parent:
- 0:246f2fb5be59
--- a/ST7735_TFT.h Sun Dec 11 21:18:21 2011 +0000 +++ b/ST7735_TFT.h Fri Dec 06 21:39:29 2013 +0000 @@ -26,6 +26,12 @@ #define RGB(r,g,b) (((r&0xF8)<<8)|((g&0xFC)<<3)|((b&0xF8)>>3)) //5 red | 6 green | 5 blue /*define ST7735 Commands */ +#define INITR_GREENTAB 0x0 +#define INITR_REDTAB 0x1 +#define INITR_BLACKTAB 0x2 + +#define ST7735_TFTWIDTH 128 +#define ST7735_TFTHEIGHT 160 #define ST7735_NOP 0x0 #define ST7735_SWRESET 0x01 @@ -348,6 +354,11 @@ * */ void tft_reset(); + + /** Init the ST7735 controller TOO BUT BETTER! + * + */ + void Gtft_reset(); /** Write data to the LCD controller *