Skip to content
Permalink
e1a1cdea39
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
26 lines (20 sloc) 484 Bytes
#include <mbed.h>
int main() {
// put your setup code here, to run once:
//Setup Onboard LED
DigitalOut firstLED(LED1);
//Setup External LED connected to Digital Pin 6
DigitalOut secondLED(D6);
while(1) {
// put your main code here, to run repeatedly:
printf("Loop\n");
firstLED = 1;
thread_sleep_for(500);
secondLED = 1;
thread_sleep_for(500);
firstLED = 0;
thread_sleep_for(500);
secondLED = 0;
thread_sleep_for(500);
}
}