for TFT2P0327 aitendo.com 128*160 TFT LCD. LCD driver is S6D0151 Sumsung.
Dependents: FRDM_tocos_x2_FIXED
Diff: S6D0151_TFT.cpp
- Revision:
- 3:f6feda54df80
- Parent:
- 2:1e3ac0621559
diff -r 1e3ac0621559 -r f6feda54df80 S6D0151_TFT.cpp --- a/S6D0151_TFT.cpp Sun Aug 30 07:21:48 2015 +0000 +++ b/S6D0151_TFT.cpp Sun Oct 25 10:49:35 2015 +0000 @@ -659,7 +659,7 @@ wr_dat_start(); for (int p=0; p<pixel; p++) { _spi.write(color >> 8); - _spi.write(color); + _spi.write(color & 0xFF); } wr_dat_stop(); return;