A classy affair
Dependencies: mbed mbed-rtos ShiftReg TextLCD
main.cpp
- Committer:
- thomasmorris
- Date:
- 2019-04-10
- Revision:
- 3:3700f0c29710
- Parent:
- 2:4c18a6d89f19
- Child:
- 4:1ef122d47bf3
File content as of revision 3:3700f0c29710:
#include "Setup.hpp" DigitalOut myled(PC_13); void Serial_Function(){INTERFACE_1.Serial();}//Written inside the interface class and Serial function int main() { POST();//Run Power on self test Serial_Thread.start(Serial_Function); while(1) { myled = 1; // LED is ON //Muscle0 = 1; wait(1); // 200 ms myled = 0; // LED is OFF //Muscle0 = 0; wait(1); // 1 sec // PC.printf("%.6f %.6f\n\r",FEEDBACK_0.read(),FEEDBACK_1.read()); //LCD.printf("Hello World!\n"); } }