UniGraphic demo on Nucleo F401RE using ILI9325 parallel interface It works on UL024TF 320*240 TFT LCD module
Fork of UniGraphic_demo by
Revision 6:c9088eb90616, committed 2016-03-13
- Comitter:
- angie197
- Date:
- Sun Mar 13 09:09:47 2016 +0000
- Parent:
- 5:c69049e461b7
- Commit message:
- UniGraphic demo on NucleoF401RE using ILI932x parallel interface; It works on UL024TF 320*240 TFT LCD module
Changed in this revision
UniGraphic.lib | Show annotated file Show diff for this revision Revisions of this file |
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/UniGraphic.lib Mon Mar 23 16:02:02 2015 +0000 +++ b/UniGraphic.lib Sun Mar 13 09:09:47 2016 +0000 @@ -1,1 +1,1 @@ -http://developer.mbed.org/teams/GraphicsDisplay/code/UniGraphic/#14daa48ffd4c +http://developer.mbed.org/teams/GraphicsDisplay/code/UniGraphic/#87855d03d91a
--- a/main.cpp Mon Mar 23 16:02:02 2015 +0000 +++ b/main.cpp Sun Mar 13 09:09:47 2016 +0000 @@ -1,3 +1,13 @@ +// +// UniGraphic demo on Nucleo-F401RE and UL024TF (Adafruit 2.2" parallel TFT shield compatible) +// +// 2016.3.13 +// +// reference: https://developer.mbed.org/questions/6893/BusOut-instead-of-PortName/ +// +// +// + #include "stdio.h" #include "mbed.h" #include "string" @@ -22,7 +32,7 @@ //IST3020 myLCD(PAR_8, PortC, PC_8, PC_9, PA_0, PA_1, PA_4,"myLCD", 192, 64); // Parallel 8bit, Port, CS, reset, A0, WR, RD for F302 //UC1608 myLCD(SPI_16, 10000000, D11, D12, D13, D10, D9, D8,"myLCD", 240, 120); // Spi 16bit, 10MHz, mosi, miso, sclk, cs, reset, dc //ST7565 myLCD(PAR_8, PortC, PC_8, PC_9, PA_0, PA_1, PA_4,"myLCD", 128, 64); // Parallel 8bit, Port, CS, reset, A0, WR, RD -ILI932x myLCD(PAR_8, PortC, PH_0, PH_1, PA_0, PA_1, PA_4,"myLCD"); // Parallel 8bit, Port, CS, reset, RS, WR, RD for F401 +//ILI932x myLCD(PAR_8, PortC, PH_0, PH_1, PA_0, PA_1, PA_4,"myLCD"); // Parallel 8bit, Port, CS, reset, RS, WR, RD for F401 //ILI932x myLCD(SPI_16, 10000000, D11, D12, D13, D10, D9,"myLCD"); // Spi 16bit, 12MHz, mosi, miso, sclk, cs, reset //ILI9341 myLCD(SPI_16, 12000000, D11, D12, D13, D10, D9, D8,"myLCD"); // Spi 16bit, 12MHz, mosi, miso, sclk, cs, reset, dc //ILI9341 myLCD(PAR_16, PortC, PH_0, PH_1, PA_0, PA_1, PA_4,"myLCD"); // Parallel 16bit, Port, CS, reset, DC, WR, RD for F401 @@ -32,6 +42,12 @@ //ILI9486 myLCD(SPI_8, 12000000, PA_7, PA_6, PA_5, PB_6, PA_8, PA_9,"myLCD"); // Spi 16bit, 12MHz, mosi, miso, sclk, cs, reset, dc for minimaple //ILI9341 myLCD(SPI_8, 12000000, PA_7, PA_6, PA_5, PB_6, PA_8, PA_9,"myLCD"); // Spi 16bit, 12MHz, mosi, miso, sclk, cs, reset, dc for minimaple +// using UL024TF on NucleoF401RE + +PinName buspins[8]={D8,D9,D2,D3,D4,D5,D6,D7}; +ILI932x myLCD(BUS_8, buspins, A3, A4, A2, A1, A0,"myLCD"); // Parallel Bus 8bit, buspins array, CS, reset, RS, WR, RD + + Timer t; //unsigned short backgroundcolor=White;