Plymouth ELEC351 Group T / Mbed 2 deprecated 2017_12_271329_LCDTrial

Dependencies:   mbed

Committer:
chills
Date:
Wed Dec 27 18:26:50 2017 +0000
Revision:
4:2759062f4264
2017_12_27 18:23; Working LCD Class!!!

Who changed what in which revision?

UserRevisionLine numberNew contents of line
chills 4:2759062f4264 1 #ifndef _LCD_HPP_ //Known as header guards
chills 4:2759062f4264 2 #define _LCD_HPP_
chills 4:2759062f4264 3
chills 4:2759062f4264 4 #include <string>
chills 4:2759062f4264 5
chills 4:2759062f4264 6 class LCD //This creates a class called Led
chills 4:2759062f4264 7 {
chills 4:2759062f4264 8
chills 4:2759062f4264 9 public:
chills 4:2759062f4264 10
chills 4:2759062f4264 11 LCD(PinName E, PinName RS, PinName RW, PinName DB0, PinName DB1, PinName DB2, PinName DB3, PinName DB4, PinName DB5, PinName DB6, PinName DB7);
chills 4:2759062f4264 12 ~LCD();
chills 4:2759062f4264 13 void Binary_Convert(int Integer);
chills 4:2759062f4264 14 void clock_in();
chills 4:2759062f4264 15 void Function_Set();
chills 4:2759062f4264 16 void Display_Off();
chills 4:2759062f4264 17 void Display_Clear();
chills 4:2759062f4264 18 void Entry_Mode_Set();
chills 4:2759062f4264 19 void Display_On();
chills 4:2759062f4264 20 void DDRAM_Address(int Address);
chills 4:2759062f4264 21 void Write_String(string Word);
chills 4:2759062f4264 22 void Initialise();
chills 4:2759062f4264 23
chills 4:2759062f4264 24 private:
chills 4:2759062f4264 25
chills 4:2759062f4264 26 DigitalOut _RW;
chills 4:2759062f4264 27 DigitalOut _RS;
chills 4:2759062f4264 28 DigitalOut _E;
chills 4:2759062f4264 29
chills 4:2759062f4264 30 DigitalOut _DB0;
chills 4:2759062f4264 31 DigitalOut _DB1;
chills 4:2759062f4264 32 DigitalOut _DB2;
chills 4:2759062f4264 33 DigitalOut _DB3;
chills 4:2759062f4264 34 DigitalOut _DB4;
chills 4:2759062f4264 35 DigitalOut _DB5;
chills 4:2759062f4264 36 DigitalOut _DB6;
chills 4:2759062f4264 37 DigitalOut _DB7;
chills 4:2759062f4264 38
chills 4:2759062f4264 39 };
chills 4:2759062f4264 40
chills 4:2759062f4264 41
chills 4:2759062f4264 42 #endif