Visweswara R
/
Arch_GPIO_Ex1
Seeedstudio Arch Examples : GPIO - Blinking LED
main.cpp
- Committer:
- viswesr
- Date:
- 2013-09-05
- Revision:
- 0:ed40790a022a
File content as of revision 0:ed40790a022a:
#include "mbed.h" /* Configure a GPIO pin as output for controlling a LED. 'led' is user assigned name and 'LED1' is a internal name given to a port pin P1_8 in this Arch platform. */ DigitalOut led(LED1); int main() { while(1) { led = 1; // Switch ON the LED. wait(0.5); // Wait for 0.5 Seconds. led = 0; // Switch OFF the LED. wait(0.5); // Wait for 0.5 Seconds. } }