
This has increased comments and a readme
Dependencies: mbed mbed-rtos TextLCD
SETUP.hpp
- Committer:
- thomasmorris
- Date:
- 2019-02-11
- Revision:
- 16:9f98ec0ededb
- Parent:
- 14:63998be3d43c
- Child:
- 17:68b3fdabe4c5
File content as of revision 16:9f98ec0ededb:
/* Setup file for the main */ #ifndef SETUP_HPP//Header Guards Prevents Multiple includes #define SETUP_HPP #include "stdio.h" #include "string.h" #include "mbed.h" #include "rtos.h" #include "TextLCD.h" #include "iostream" //Libraries and header includes #include "rtos.h" #include "STEPPER_MOTOR.hpp" #include "Interface.hpp" 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); void up_thread_function(); void down_thread_function(); void start_thread_function(); void function_thread_function(); void select_thread_function(); //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 #endif