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.
Diff: main.cpp
- Revision:
- 2:e0faf9e57796
- Parent:
- 1:8e3c0c69a6ca
- Child:
- 3:f879eeeb5e8d
--- a/main.cpp Mon Mar 27 13:29:43 2017 +0000 +++ b/main.cpp Mon Mar 27 14:20:32 2017 +0000 @@ -7,7 +7,7 @@ toeliminate warning and int constants for HIGH and LOW. Written by: Dr. C. S. Tritt - Created: 3/26/17 (v. 1.0) + Created: 3/27/17 (v. 1.1) */ #include "mbed.h" @@ -33,6 +33,7 @@ else { led.write(LOW); } + printf("LED = %d\n", (int) led.read()); // Send LED state via serial. wait(0.25); // 250 ms } }