mkj

Dependencies:   mbed

Committer:
daveross
Date:
Mon Sep 28 02:22:29 2020 +0000
Revision:
3:6838f81e6d51
Parent:
1:0dea7cc36043
Blinkin_Led for MBED

Who changed what in which revision?

UserRevisionLine numberNew contents of line
daveross 0:e51b311658fd 1 #include "mbed.h"
daveross 1:0dea7cc36043 2 DigitalOut red_led(LED1); // red_led is associated with the RED LED
daveross 0:e51b311658fd 3 int main(void)
daveross 0:e51b311658fd 4 {
daveross 1:0dea7cc36043 5 for(;;)
daveross 1:0dea7cc36043 6 {
daveross 1:0dea7cc36043 7 red_led=0; // turn on red led
daveross 1:0dea7cc36043 8 wait_ms(500); // wait .5 seconds
daveross 1:0dea7cc36043 9 red_led=1; // turn off red led
daveross 1:0dea7cc36043 10 wait_ms(500); // wait .5 seconds
daveross 1:0dea7cc36043 11 }
daveross 0:e51b311658fd 12 }