Testing 1 blue pill
Dependencies: mbed mbed-rtos TextLCD
Diff: SETUP.hpp
- Revision:
- 25:9751619fa030
- Parent:
- 24:728de4bf961e
- Child:
- 26:83550fc299aa
diff -r 728de4bf961e -r 9751619fa030 SETUP.hpp --- a/SETUP.hpp Mon Feb 18 12:02:34 2019 +0000 +++ b/SETUP.hpp Mon Feb 18 22:04:54 2019 +0000 @@ -1,5 +1,6 @@ #ifndef SETUP_HPP//Header Guards Prevents Multiple includes #define SETUP_HPP + #include "stdio.h" #include "string.h" #include "mbed.h" @@ -10,20 +11,17 @@ #include "STEPPER_MOTOR.hpp" #include "Interface.hpp" -#define Debounce_Time 200 -INTERFACE INTERFACE(20); +#define Debounce_Time 50 +INTERFACE INTERFACE; //If the code compiles GET IN THE BIN -//Interrupt In for the button control to the interface -InterruptIn button_up(D8); //D8//Increment Button -InterruptIn button_down(A1); //A1//Decrement Button -InterruptIn button_start(D9); //D9//START / STOP BUTTON -InterruptIn button_funct(A3); //A3//Function Button -InterruptIn button_select(A4);//A4//Select Button + //Digital Outputs DigitalOut led1(LED1); DigitalOut led2(LED2); + +//Function forward declarations void up_thread_function(); void down_thread_function(); void start_thread_function(); @@ -66,7 +64,7 @@ static DigitalOut Led_Power(A3); TextLCD lcd(D0,D1,D4,D5,D6,D7); // rs, e, d4-d7 - TendonPower (PWM) pin is PE_8 + TendonPower (PWM) pin is PE_8 one below d0 STEPPER_MOTOR STEPPER_MOTOR_1(D15,D14,D13,D12) this is defined in interface.hpp */ \ No newline at end of file