ILI9325 based GR_SAKURA LCD Shield
Dependencies: TFTLCD_8bit mbed-src mbed
Diff: main.cpp
- Revision:
- 8:d4fc30048585
- Parent:
- 7:8ba4518ba2f8
--- a/main.cpp Wed Dec 03 17:09:27 2014 +0000 +++ b/main.cpp Sat Jan 03 04:16:17 2015 +0000 @@ -1,11 +1,14 @@ #include "mbed.h" #include "ili9328.h" +// GR_PEACH_ILI9325 +// Imported from KL25Z_ILI9325 + // prepare the data bus for writing commands and pixel data //BusOut dataBus( p30, p29, p28, p27, p26, p25, p24, p23, p22, p21, p20, p19, p18, p17, p16, p15 ); // 16 pins -BusOut dataBus( PTA13, PTD5, PTD4, PTA12, PTA4, PTA5, PTC8, PTC9 ); // 16 pins +BusOut dataBus( P2_7, P2_6, P2_5, P2_4, P2_3, P2_2, P2_1, P2_0 ); // 16 pins // create the lcd instance -ILI9328_LCD lcd( PTB3, PTC2, PTB2, PTB1, &dataBus, NC, PTB0); // control pins and data bus +ILI9328_LCD lcd( P5_7, P5_4, P5_6, P5_5, &dataBus , NC, P5_3); // control pins and data bus //CS, RESET, RS, WR int main() {