Sandeep Singh
/
Blinking_LED_o
mkj
test.cpp
- Committer:
- daveross
- Date:
- 2020-09-28
- Revision:
- 3:6838f81e6d51
- Parent:
- 1:0dea7cc36043
File content as of revision 3:6838f81e6d51:
#include "mbed.h" DigitalOut red_led(LED1); // red_led is associated with the RED LED int main(void) { for(;;) { red_led=0; // turn on red led wait_ms(500); // wait .5 seconds red_led=1; // turn off red led wait_ms(500); // wait .5 seconds } }