Testing 1 blue pill
Dependencies: mbed mbed-rtos TextLCD
Diff: SETUP.hpp
- Revision:
- 14:63998be3d43c
- Parent:
- 13:c681f340909b
- Child:
- 16:9f98ec0ededb
--- a/SETUP.hpp Mon Feb 11 14:18:58 2019 +0000 +++ b/SETUP.hpp Mon Feb 11 16:58:07 2019 +0000 @@ -18,20 +18,30 @@ DigitalOut led1(LED1); DigitalOut led2(LED2); +void up_thread_function(); +void down_thread_function(); +void start_thread_function(); +void function_thread_function(); +void select_thread_function(); + + +InterruptIn button_up(D8); +InterruptIn button_down(A1); // These setup the button interupts +InterruptIn button_start(D9); // START / STOP BUTTON +InterruptIn button_funct(A3);// Random pin CHANGE FOR FUNCTION BUTTON +InterruptIn button_select(A4);// Random pin CHANGE FOR SELECT BUTTON //Thread Setups Thread lcd_thread; Thread led_thread; +Thread up_thread; +Thread down_thread; +Thread start_stop_thread; +Thread function_thread; +Thread select_thread; + TextLCD lcd(D0,D1,D4,D5,D6,D7); // rs, e, d4-d7 Serial pc(USBTX, USBRX); //Define serial namespace so the serial comms can be printed to - -//Switch toggling to bools for readability -InterruptIn button_up(A0); // UP BUTTON -InterruptIn button_down(A1); // These setup the button interupts -InterruptIn button_start(A2); // START / STOP BUTTON -InterruptIn button_funct(A3);// Random pin CHANGE FOR FUNCTION BUTTON -InterruptIn button_select(A4);// Random pin CHANGE FOR SELECT BUTTON - PwmOut Tendon_Power(PE_8); //VARIABLE DEFINITIONS