for TFT2P0327 aitendo.com 128*160 TFT LCD. LCD driver is S6D0151 Sumsung.
Dependents: FRDM_tocos_x2_FIXED
Diff: S6D0151_TFT.h
- Revision:
- 5:18920a7a693e
- Parent:
- 1:a3651128e297
--- a/S6D0151_TFT.h Sun Oct 02 13:03:41 2016 +0000 +++ b/S6D0151_TFT.h Sun Oct 02 13:20:50 2016 +0000 @@ -31,6 +31,9 @@ #define Orange 0xFD20 /* 255, 165, 0 */ #define GreenYellow 0xAFE5 /* 173, 255, 47 */ +#define TFT_REVERSE_ON 0 +#define TFT_REVERSE_OFF 1 + class S6D0151_TFT : public GraphicsDisplay { public: @@ -213,7 +216,13 @@ * */ void set_orientation(unsigned int o); - + + /** set TFT display image reverse + * @param rev TFT_REVERSE_ON , TFT_REVERSE_OFF + * for daylight,maybe you need reverse on. + */ + void reverse(int rev); + SPI _spi; DigitalOut _cs; DigitalOut _reset;