A classy affair
Dependencies: mbed mbed-rtos ShiftReg TextLCD
main.cpp
- Committer:
- thomasmorris
- Date:
- 2019-04-11
- Revision:
- 5:20decc99e50c
- Parent:
- 4:1ef122d47bf3
File content as of revision 5:20decc99e50c:
#include "Setup.hpp" DigitalOut myled(PC_13);//Needed to access definition of the led from the main void Serial_Function(){INTERFACE_1.Serial();}//Written inside the interface class and Serial function void LCD_Function(){INTERFACE_1.LCD();}//LCD output void Onboard_Led(){while(1){myled = !myled; Thread::wait(1000);}}//Blink an onboard LED to signal the board is operational void Schedules_Function(){SCHEDULES_1.Schedules_output();}//Output shcedules data int main() { POST();//Run Power on self test //Thread Start up Serial_Thread.start(Serial_Function); LCD_Thread.start(LCD_Function); LED_Thread.start(Onboard_Led); Schedules_Thread.start(Schedules_Function); while(1) { Thread::signal_wait(1);//Sleep the main thread } }