Digital Input simple example for WIZwiki-W7500 academy
Dependencies: mbed
Fork of DigitalIn_HelloWorld_WIZwiki-W7500 by
Diff: main.cpp
- Revision:
- 8:ef3558374977
- Parent:
- 7:64e67ec4441e
- Child:
- 10:108881ce024e
diff -r 64e67ec4441e -r ef3558374977 main.cpp --- a/main.cpp Fri Mar 27 21:24:54 2015 +0000 +++ b/main.cpp Fri Mar 27 22:07:54 2015 +0000 @@ -20,13 +20,13 @@ int main() { - // check mypin object is initialized and connected to a pin + // check mypin object is initialized and connected to a pin if(mypin.is_connected()) { printf("mypin is connected and initialized! \n\r"); } // Optional: set mode as PullUp/PullDown/PullNone/OpenDrain - mypin.mode(PullNone); / + mypin.mode(PullNone); // press the button and see the console / led change while(1) {