Troubleshooting

Committer:
Jonathan738
Date:
Sun Nov 04 20:32:59 2018 +0000
Revision:
6:f3d1ab8a9e99
Parent:
0:f8fe58d43763
Child:
7:0213c3702c99
Added Function for basic TERMINAL control and updated datatypes for LCD functions to universal names set by DataTypes.hpp

Who changed what in which revision?

UserRevisionLine numberNew contents of line
BenRJG 0:f8fe58d43763 1 #include "mbed.h"
Jonathan738 6:f3d1ab8a9e99 2 #include "DataTypes.hpp"
BenRJG 0:f8fe58d43763 3 #include "LCD.hpp"
Jonathan738 6:f3d1ab8a9e99 4 #include "Terminal.hpp"
BenRJG 0:f8fe58d43763 5
BenRJG 0:f8fe58d43763 6 #define RS D9
BenRJG 0:f8fe58d43763 7 #define E D8
BenRJG 0:f8fe58d43763 8 #define d4 D4
BenRJG 0:f8fe58d43763 9 #define d5 D5
BenRJG 0:f8fe58d43763 10 #define d6 D4
BenRJG 0:f8fe58d43763 11 #define d7 D2
BenRJG 0:f8fe58d43763 12
BenRJG 0:f8fe58d43763 13 int main(void) {
BenRJG 0:f8fe58d43763 14 LCD lcd(RS,E,d4,d5,d6,d7); //rs,e,d4,d5,d6,d7
BenRJG 0:f8fe58d43763 15 lcd.INIT();
BenRJG 0:f8fe58d43763 16 lcd.putt('b');
BenRJG 0:f8fe58d43763 17 //lcd.display("Hello!",LINE1,0);
Jonathan738 6:f3d1ab8a9e99 18
Jonathan738 6:f3d1ab8a9e99 19 Terminal PC(SERIAL_TX, SERIAL_RX);
Jonathan738 6:f3d1ab8a9e99 20 PC.init();
Jonathan738 6:f3d1ab8a9e99 21 PC.DisplayCellIndex();
Jonathan738 6:f3d1ab8a9e99 22
BenRJG 0:f8fe58d43763 23 while (true) {
BenRJG 0:f8fe58d43763 24 //led1 = !led1;
BenRJG 0:f8fe58d43763 25 //wait(0.5);
BenRJG 0:f8fe58d43763 26 }
BenRJG 0:f8fe58d43763 27 }