Fork of DigitalOut_HelloWorld
Fork of DigitalOut_HelloWorld by
Testing Testing Testing Testing Testing Testing Testing Testing Testing Testing Testing Testing
Revision 6:4b14e87b65e9, committed 2015-03-27
- Comitter:
- mbedAustin
- Date:
- Fri Mar 27 21:15:35 2015 +0000
- Parent:
- 5:e17647bbb68e
- Child:
- 7:21a83a7b8f94
- Commit message:
- minor modifications to simplify
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Fri Mar 27 21:11:22 2015 +0000
+++ b/main.cpp Fri Mar 27 21:15:35 2015 +0000
@@ -18,11 +18,12 @@
DigitalOut myled(LED1);
int main() {
- int connected = myled.is_connected(); // check that myled object is initialized and connected to a pin
- if(connected){
- printf("myleD is initialized and connected!\n\r");
+ // check that myled object is initialized and connected to a pin
+ if(myled.is_connected()){
+ printf("myled is initialized and connected!\n\r");
}
+ // Blink LED
while(1) {
myled = 1; // set LED1 pin to high
printf("\n\r myled = %d",myled);
Jenny Plunkett
