Plymouth ELEC351 Group T
/
ELEC351_Group_T
FINAL PROJECT isn't it
Fork of ELEC351 by
SERIAL.hpp@57:aba1296e51b1, 2018-08-15 (annotated)
- Committer:
- thomasmorris
- Date:
- Wed Aug 15 21:34:59 2018 +0000
- Revision:
- 57:aba1296e51b1
- Parent:
- 53:71f59e195f06
Final Version
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
thomasmorris | 52:99915f5240b2 | 1 | /* |
thomasmorris | 52:99915f5240b2 | 2 | This is where we enable writing to the Serial interface |
thomasmorris | 52:99915f5240b2 | 3 | */ |
thomasmorris | 52:99915f5240b2 | 4 | |
thomasmorris | 52:99915f5240b2 | 5 | #ifndef SERIAL_HPP//Header Guards Prevents Multiple includes |
thomasmorris | 25:36699ed589ab | 6 | #define SERIAL_HPP |
thomasmorris | 52:99915f5240b2 | 7 | //Libraries and header includes |
thomasmorris | 25:36699ed589ab | 8 | #include "mbed.h" |
thomasmorris | 25:36699ed589ab | 9 | #include <iostream> |
thomasmorris | 25:36699ed589ab | 10 | using namespace std; |
thomasmorris | 52:99915f5240b2 | 11 | static Serial pc(USBTX, USBRX); //Define serial namespace so the serial comms can be printed to |
thomasmorris | 52:99915f5240b2 | 12 | bool Decimal_Check(char Input[100]); //Checks if the input character array as a decimal within it |
thomasmorris | 52:99915f5240b2 | 13 | int Decimal_Position(char Input[100]); //Finds where the Decimal Position is within the array |
thomasmorris | 53:71f59e195f06 | 14 | extern bool motor_direction; |
thomasmorris | 25:36699ed589ab | 15 | #endif |