Added the pin outs
Dependencies: mbed mbed-rtos ShiftReg TextLCD
main.cpp@6:347c1f441b94, 2019-04-11 (annotated)
- Committer:
- thomasmorris
- Date:
- Thu Apr 11 18:12:31 2019 +0000
- Revision:
- 6:347c1f441b94
- Parent:
- 5:20decc99e50c
Updated code 19:15
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
thomasmorris | 3:3700f0c29710 | 1 | #include "Setup.hpp" |
mwthewsey | 2:4c18a6d89f19 | 2 | |
thomasmorris | 6:347c1f441b94 | 3 | |
thomasmorris | 3:3700f0c29710 | 4 | void Serial_Function(){INTERFACE_1.Serial();}//Written inside the interface class and Serial function |
thomasmorris | 4:1ef122d47bf3 | 5 | void LCD_Function(){INTERFACE_1.LCD();}//LCD output |
thomasmorris | 6:347c1f441b94 | 6 | void Onboard_Led(){}//Blink an onboard LED to signal the board is operational |
thomasmorris | 5:20decc99e50c | 7 | void Schedules_Function(){SCHEDULES_1.Schedules_output();}//Output shcedules data |
thomasmorris | 6:347c1f441b94 | 8 | void Feedback_Function(){FEEDBACK_1.Test();}//Opperate feedback function |
mwthewsey | 2:4c18a6d89f19 | 9 | int main() |
mwthewsey | 2:4c18a6d89f19 | 10 | { |
thomasmorris | 3:3700f0c29710 | 11 | POST();//Run Power on self test |
thomasmorris | 5:20decc99e50c | 12 | //Thread Start up |
thomasmorris | 3:3700f0c29710 | 13 | Serial_Thread.start(Serial_Function); |
thomasmorris | 4:1ef122d47bf3 | 14 | LCD_Thread.start(LCD_Function); |
thomasmorris | 4:1ef122d47bf3 | 15 | LED_Thread.start(Onboard_Led); |
thomasmorris | 4:1ef122d47bf3 | 16 | Schedules_Thread.start(Schedules_Function); |
thomasmorris | 6:347c1f441b94 | 17 | Feedback_Thread.start(Feedback_Function); |
thomasmorris | 3:3700f0c29710 | 18 | while(1) |
thomasmorris | 3:3700f0c29710 | 19 | { |
thomasmorris | 5:20decc99e50c | 20 | Thread::signal_wait(1);//Sleep the main thread |
mwthewsey | 0:c63c0359492d | 21 | } |
mwthewsey | 0:c63c0359492d | 22 | } |