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.
Fork of DigitalOut_HelloWorld by
Diff: main.cpp
- Revision:
- 5:e17647bbb68e
- Parent:
- 4:340f9fb00d71
- Child:
- 6:4b14e87b65e9
--- a/main.cpp Fri Mar 27 20:13:58 2015 +0000
+++ b/main.cpp Fri Mar 27 21:11:22 2015 +0000
@@ -19,7 +19,10 @@
int main() {
int connected = myled.is_connected(); // check that myled object is initialized and connected to a pin
- printf("myleD connection stattus = %d", connected);
+ if(connected){
+ printf("myleD is initialized and connected!\n\r");
+ }
+
while(1) {
myled = 1; // set LED1 pin to high
printf("\n\r myled = %d",myled);
