Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 3:142ecf372420, committed 2021-09-03
- Comitter:
- CCastrop1012
- Date:
- Fri Sep 03 04:50:12 2021 +0000
- Parent:
- 2:8ab51242fa0e
- Commit message:
- Control de una pantalla tactil ILI9341. Lectura del TFT y mostrar informacion en pantalla.
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 8ab51242fa0e -r 142ecf372420 main.cpp
--- a/main.cpp Tue Feb 05 13:43:36 2019 +0000
+++ b/main.cpp Fri Sep 03 04:50:12 2021 +0000
@@ -9,7 +9,7 @@
const unsigned short FOREGROUND_COLORS[] = {White, Cyan, Red, Magenta, Yellow, Orange, GreenYellow};
const unsigned short BACKGROUND_COLORS[] = {Black, Navy, DarkGreen, DarkCyan, Maroon};
-Serial pc(PA_2, PA_3); // serial interface with PC
+Serial pc(SERIAL_TX, SERIAL_RX); // serial interface with PC
ILI9341* tft; // ILI9341 driver
Timer t;
unsigned short backgroundColor;
@@ -22,7 +22,7 @@
{
backlight = 1;
- tft = new ILI9341(SPI_8, 10000000, PB_5, PB_4, PB_3, PA_15, PA_12, PA_11, "tft"); // SPI type, SPI speed, mosi, miso, sclk, cs, reset, dc
+ tft = new ILI9341(SPI_8, 10000000, PC_12, PC_11, PC_10, PA_13, PA_14, PA_15, "tft"); // SPI type, SPI speed, mosi, miso, sclk, cs, reset, dc
tft->set_orientation(orient);
int time, time2;
pc.baud (115200);