David Prentice
/
Nucleo_dir_L152
Please run it on your NUCLEO-L152
Revision 1:d88d2ad55fac, committed 2019-09-18
- Comitter:
- davidprentice
- Date:
- Wed Sep 18 10:38:19 2019 +0000
- Parent:
- 0:b608c7f02f80
- Commit message:
- Added messages to Serial Terminal (9600 baud)
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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); }