Digital Input simple example for WIZwiki-W7500 academy

Dependencies:   mbed

Fork of DigitalIn_HelloWorld_WIZwiki-W7500 by Lawrence Lee

Files at this revision

API Documentation at this revision

Comitter:
IOP
Date:
Wed Apr 19 01:04:19 2017 +0000
Parent:
17:2678f7976a04
Commit message:
code update;

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Wed Feb 03 07:16:09 2016 +0000
+++ b/main.cpp	Wed Apr 19 01:04:19 2017 +0000
@@ -2,9 +2,9 @@
 
 #include "mbed.h"
 
-DigitalOut myled_R(LED_RED);    // LED_RED on WIZwiki-W7500
+DigitalOut myled_R(LED1);    // LED_RED on WIZwiki-W7500
 
-DigitalIn  mysw(D10);           // push switch 
+DigitalIn  mysw(D10);        // push switch 
 
 int main()
 {
@@ -24,8 +24,7 @@
         {
             myled_R = 1;   // the others, Red LED OFF
         }
-        
+           
         wait(0.2);
     }
-    
 }
\ No newline at end of file
--- a/mbed.bld	Wed Feb 03 07:16:09 2016 +0000
+++ b/mbed.bld	Wed Apr 19 01:04:19 2017 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/6f327212ef96
\ No newline at end of file
+https://mbed.org/users/mbed_official/code/mbed/builds/97feb9bacc10
\ No newline at end of file