Library to drive an ILI9225 2.2" SPI TFT.
Dependents: ILI9225_TFT_Sample
ILI9225 SPI TFT Library
This library works with the ILI9225 based 2.2" 176x220 TFT LCD shields commonly found on eBay. Note that there is a commonly available 2.2" 240x320 TFT module very similar in appearance but using the ILI9341 driver. (Only the main Buffer IC and I/O pins are different)
Wiring guide :
mbed board | LCD board |
---|---|
+ 3,3V or +5V | VCC |
GND | GND |
GPIO_PIN | RST (Reset pin) |
GPIO_PIN | RS [Command (RS=0)/ Parameter (RS=1)] |
GPIO_PIN or GND | CS (Chip selection pin) |
SPI_MOSI | SDI (Serial data input ) |
SPI_SCK | CLK (Reference clock) |
GPIO_PIN or PWM or VCC | LED (Backlit) |
Revision 2:cc93245bb6d0, committed 2015-09-01
- Comitter:
- Arman92
- Date:
- Tue Sep 01 12:16:09 2015 +0000
- Parent:
- 1:73bf39f23246
- Commit message:
- fixed non-hardware SPI issue
Changed in this revision
TFT_22_ILI9225.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 73bf39f23246 -r cc93245bb6d0 TFT_22_ILI9225.cpp --- a/TFT_22_ILI9225.cpp Tue Sep 01 12:14:24 2015 +0000 +++ b/TFT_22_ILI9225.cpp Tue Sep 01 12:16:09 2015 +0000 @@ -27,7 +27,7 @@ TFT_22_ILI9225::TFT_22_ILI9225(PinName rst, PinName rs, PinName cs, PinName sdi, PinName clk, PinName led) : _rst(rst), _rs(rs), _cs(cs), _sdi(sdi), _clk(clk), spi(sdi, NC, clk), _led(led), _rstInOut(_rst), _rsInOut(_rs), _csInOut(_cs), _ledInOut(_led), - hwSPI(true) + hwSPI(true) { }