for TFT2P0327 aitendo.com 128*160 TFT LCD. LCD driver is S6D0151 Sumsung.
Dependents: FRDM_tocos_x2_FIXED
Diff: S6D0151_TFT.h
- Revision:
- 2:1e3ac0621559
- Parent:
- 1:a3651128e297
diff -r a3651128e297 -r 1e3ac0621559 S6D0151_TFT.h --- a/S6D0151_TFT.h Wed Aug 26 14:58:55 2015 +0000 +++ b/S6D0151_TFT.h Sun Aug 30 07:21:48 2015 +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;