A classy affair

Dependencies:   mbed mbed-rtos ShiftReg TextLCD

Committer:
thomasmorris
Date:
Wed Apr 10 11:33:32 2019 +0000
Revision:
3:3700f0c29710
Parent:
2:4c18a6d89f19
Child:
4:1ef122d47bf3
A classy afair

Who changed what in which revision?

UserRevisionLine numberNew contents of line
thomasmorris 3:3700f0c29710 1 #include "Setup.hpp"
mwthewsey 2:4c18a6d89f19 2
thomasmorris 3:3700f0c29710 3 DigitalOut myled(PC_13);
thomasmorris 3:3700f0c29710 4 void Serial_Function(){INTERFACE_1.Serial();}//Written inside the interface class and Serial function
mwthewsey 2:4c18a6d89f19 5
mwthewsey 2:4c18a6d89f19 6 int main()
mwthewsey 2:4c18a6d89f19 7 {
thomasmorris 3:3700f0c29710 8 POST();//Run Power on self test
thomasmorris 3:3700f0c29710 9 Serial_Thread.start(Serial_Function);
thomasmorris 3:3700f0c29710 10 while(1)
thomasmorris 3:3700f0c29710 11 {
mwthewsey 0:c63c0359492d 12 myled = 1; // LED is ON
thomasmorris 3:3700f0c29710 13 //Muscle0 = 1;
mwthewsey 1:241551e24735 14 wait(1); // 200 ms
mwthewsey 2:4c18a6d89f19 15
mwthewsey 2:4c18a6d89f19 16
mwthewsey 0:c63c0359492d 17 myled = 0; // LED is OFF
thomasmorris 3:3700f0c29710 18 //Muscle0 = 0;
mwthewsey 1:241551e24735 19 wait(1); // 1 sec
mwthewsey 2:4c18a6d89f19 20
thomasmorris 3:3700f0c29710 21 // PC.printf("%.6f %.6f\n\r",FEEDBACK_0.read(),FEEDBACK_1.read());
thomasmorris 3:3700f0c29710 22 //LCD.printf("Hello World!\n");
mwthewsey 2:4c18a6d89f19 23
mwthewsey 0:c63c0359492d 24 }
mwthewsey 0:c63c0359492d 25 }