Testing 1 blue pill

Dependencies:   mbed mbed-rtos TextLCD

Revision:
17:68b3fdabe4c5
Parent:
16:9f98ec0ededb
Child:
21:6d9f6a986647
--- a/SETUP.hpp	Mon Feb 11 22:03:47 2019 +0000
+++ b/SETUP.hpp	Tue Feb 12 10:03:05 2019 +0000
@@ -1,7 +1,3 @@
-/*
-Setup file for the main
-*/
-
 #ifndef SETUP_HPP//Header Guards Prevents Multiple includes
 #define SETUP_HPP
 #include "stdio.h"
@@ -10,11 +6,11 @@
 #include "rtos.h"
 #include "TextLCD.h"
 #include "iostream"
-//Libraries and header includes
 #include "rtos.h"
 #include "STEPPER_MOTOR.hpp"
 #include "Interface.hpp"
-
+//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
@@ -38,8 +34,27 @@
 Thread start_stop_thread;
 Thread function_thread;
 Thread select_thread;
+//LCD pin connections
+TextLCD lcd(D0,D1,D4,D5,D6,D7); // rs, e, d4-d7
 
-TextLCD lcd(D0,D1,D4,D5,D6,D7); // rs, e, d4-d7
+//Serial Terminal setup for debugging
 Serial pc(USBTX, USBRX);         //Define serial namespace so the serial comms can be printed to
+#endif 
 
-#endif 
\ No newline at end of file
+//Useful information
+/*
+    Function 0 = Turn
+    Function 1 = Anneal
+    Function 2 = Test
+    
+    Black :Reset     : HardWired
+    Red   :Up        : D8
+    Orange:Down      : A1
+    Brown :Start/Stop: D9
+    Green :Select    : A3
+    Yellow:Function  : A4
+    
+    TendonPower (PWM) pin is PE_8 
+    STEPPER_MOTOR STEPPER_MOTOR_1(D15,D14,D13,D12) this is defined in interface.hpp
+*/
+    
\ No newline at end of file