利幸 久留米
/
TFT_ILI9341_os6
TFT ILI9341 Interfacing for mbed os 6.3
Revision 5:122411a28708, committed 2021-12-24
- Comitter:
- tkurume
- Date:
- Fri Dec 24 12:48:11 2021 +0000
- Parent:
- 4:5ed8a8039560
- Commit message:
- OS6 TFT_ILI9341
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Thu Oct 08 05:13:36 2020 +0000 +++ b/main.cpp Fri Dec 24 12:48:11 2021 +0000 @@ -7,7 +7,10 @@ #include <ILI9341.h> -ILI9341 myLCD(SPI_16, 12000000, PB_5,PB_4, PB_3, PA_10, PA_8, PB_10,"myLCD"); // Spi 16bit, 12MHz, mosi, miso, sclk, cs, reset, dc +ILI9341 myLCD(SPI_16, 12000000, PA_7,PA_6, PA_5, PB_10, PA_8, PB_6,"myLCD"); // Spi 16bit, 12MHz, mosi, miso, sclk, cs, reset, dc +//DigitalIn LCD_SW_IN(PA_4); +//DigitalOut LCD_SW(PA_4); +DigitalOut backlight(PA_4); // Display backlight Timer t; @@ -19,6 +22,8 @@ char orient=1; int main() { + backlight = 1; + // myLCD.set_contrast(26);//for uc1608 // myLCD.set_contrast(46);//for ist3020 myLCD.set_orientation(orient);