Seeedstudio Arch Examples : GPIO - Blinking LED implemented with alternate DigitalOut functions.
Fork of Arch_GPIO_Ex1 by
Revision 2:d7639bb949d7, committed 2013-09-08
- Comitter:
- viswesr
- Date:
- Sun Sep 08 14:58:41 2013 +0000
- Parent:
- 1:3c5f838ae76d
- Commit message:
- fix wait function
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 3c5f838ae76d -r d7639bb949d7 main.cpp --- a/main.cpp Thu Sep 05 06:47:44 2013 +0000 +++ b/main.cpp Sun Sep 08 14:58:41 2013 +0000 @@ -1,6 +1,6 @@ #include "mbed.h" -/* Configure a GPIO pin as output for controlling a LED. 'led' is a user assigned name and +/* Configure a GPIO pin as output for controlling a LED. 'led' is an user assigned name and 'LED1' is an internal name given to a port pin P1_8 in this Arch platform. */ DigitalOut led(LED1); @@ -10,6 +10,6 @@ led.write(1); // Here, DigitalOut -> write() function is used to set the ouput high. wait_ms(500); // Wait for 0.5 Seconds. The time is specified in milli-seconds using wait_ms() function. led.write(0); // Switch OFF the LED. - wait_is(500000); // Wait for 0.5 Seconds. The time is specified in micro-seconds using wait_us() function. + wait_us(500000); // Wait for 0.5 Seconds. The time is specified in micro-seconds using wait_us() function. } }