Template project for University of York ELE00032C Lab 8

Dependencies:   UoY-serial

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 
00003 DigitalOut green(D2);
00004 DigitalOut red(D3);
00005 
00006 Thread redThread;
00007 
00008 void redThreadFn() {
00009     
00010     // Flash the red LED here
00011     
00012 }
00013 
00014 int main() {
00015     
00016     redThread.start(redThreadFn);
00017     
00018     // Flash the green LED here
00019     
00020 }