Troubleshooting

Committer:
BenRJG
Date:
Fri Nov 09 14:24:39 2018 +0000
Revision:
17:b7cd66c5f845
Parent:
6:f3d1ab8a9e99
export to keil

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Jonathan738 6:f3d1ab8a9e99 1 #include "mbed.h"
Jonathan738 6:f3d1ab8a9e99 2 #include "DataTypes.hpp"
Jonathan738 6:f3d1ab8a9e99 3
Jonathan738 6:f3d1ab8a9e99 4 // Use generic to set number of rows in table
Jonathan738 6:f3d1ab8a9e99 5 #define Rows 12
Jonathan738 6:f3d1ab8a9e99 6 #define MaxDATA (Rows*3)
Jonathan738 6:f3d1ab8a9e99 7
Jonathan738 6:f3d1ab8a9e99 8 // Define 8 bit colours for printing to terminal
Jonathan738 6:f3d1ab8a9e99 9 #define ColourRED 9
Jonathan738 6:f3d1ab8a9e99 10 #define ColourGREEN 118
Jonathan738 6:f3d1ab8a9e99 11 #define ColourBLUE 12
Jonathan738 6:f3d1ab8a9e99 12 #define ColourWhite 255
Jonathan738 6:f3d1ab8a9e99 13 #define ColourPurple 5
Jonathan738 6:f3d1ab8a9e99 14
Jonathan738 6:f3d1ab8a9e99 15 // Class Terminal expects tx and rx pins and is used for controlling a serialy conected terminal
Jonathan738 6:f3d1ab8a9e99 16 class Terminal {
Jonathan738 6:f3d1ab8a9e99 17 public:
Jonathan738 6:f3d1ab8a9e99 18 Terminal(PinName tx, PinName rx) : pc(tx, rx){}
Jonathan738 6:f3d1ab8a9e99 19 void init(void);
Jonathan738 6:f3d1ab8a9e99 20 void PrintDATA(BYTE* STRING, BYTE IDX);
Jonathan738 6:f3d1ab8a9e99 21 void DisplayCellIndex(void); // Prints index of cells into each cell for debug purpose
Jonathan738 6:f3d1ab8a9e99 22 private:
Jonathan738 6:f3d1ab8a9e99 23 Serial pc;
Jonathan738 6:f3d1ab8a9e99 24 void Cursor(BYTE X, BYTE Y); // Function moves cursor to position defined by co-ordinates x,y
Jonathan738 6:f3d1ab8a9e99 25 void Colour(BYTE COLOUR); // Function changes terminal print colour to 8 bit colour defined by COLOUR
Jonathan738 6:f3d1ab8a9e99 26 };