Thomas Morris / Mbed OS PROJ324_Final

Fork of ELEC351_Group_T by Plymouth ELEC351 Group T

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers SERIAL.hpp Source File

SERIAL.hpp

00001 /*
00002 This is where we enable writing to the Serial interface
00003 */
00004 
00005 #ifndef SERIAL_HPP//Header Guards Prevents Multiple includes
00006 #define SERIAL_HPP
00007 //Libraries and header includes
00008 #include "mbed.h"
00009 #include <iostream>
00010 using namespace std;
00011 static Serial pc(USBTX, USBRX);         //Define serial namespace so the serial comms can be printed to
00012 bool Decimal_Check(char Input[100]);    //Checks if the input character array as a decimal within it
00013 int Decimal_Position(char Input[100]);  //Finds where the Decimal Position is within the array
00014 extern bool motor_direction;
00015 #endif