Proj 324 Final

Fork of ELEC351_Group_T by Plymouth ELEC351 Group T

Committer:
thomasmorris
Date:
Mon May 07 15:44:34 2018 +0000
Revision:
53:71f59e195f06
Parent:
52:99915f5240b2
To test version of code;

Who changed what in which revision?

UserRevisionLine numberNew 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