David Prentice
/
Nucleo_dir_L152
Please run it on your NUCLEO-L152
Diff: main.cpp
- Revision:
- 1:d88d2ad55fac
- Parent:
- 0:b608c7f02f80
diff -r b608c7f02f80 -r d88d2ad55fac main.cpp --- a/main.cpp Wed Sep 18 10:26:00 2019 +0000 +++ b/main.cpp Wed Sep 18 10:38:19 2019 +0000 @@ -3,6 +3,8 @@ #include <MCUFRIEND_kbv.h> MCUFRIEND_kbv tft; +Serial pc(SERIAL_TX, SERIAL_RX); + // Assign human-readable names to some common 16-bit color values: #define BLACK 0x0000 #define BLUE 0x001F @@ -19,6 +21,9 @@ void setup() { uint16_t ID = tft.readID(); // + pc.printf("\nI have run this on a NUCLEO-F072\n"); + pc.printf("Please run it on your NUCLEO-L152\n"); + pc.printf("Found ID = 0x%04X\n", ID); tft.begin(ID); }