Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of ELEC351_Group_T by
Diff: LCD.hpp
- Revision:
- 20:cbb71f84cff9
- Child:
- 25:36699ed589ab
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/LCD.hpp Wed Dec 27 21:46:31 2017 +0000
@@ -0,0 +1,41 @@
+#ifndef _LCD_HPP_ //Known as header guards
+#define _LCD_HPP_
+
+#include <string>
+
+class LCD //This creates a class called Led
+{
+
+public:
+
+ LCD(PinName E, PinName RS, PinName RW, PinName DB0, PinName DB1, PinName DB2, PinName DB3, PinName DB4, PinName DB5, PinName DB6, PinName DB7);
+ ~LCD();
+ void clock_in();
+ void Function_Set();
+ void Display_Off();
+ void Display_Clear();
+ void Entry_Mode_Set();
+ void Display_On();
+ void DDRAM_Address(int Address);
+ void Write_String(string Word);
+ void Initialise();
+
+private:
+
+ DigitalOut _RW;
+ DigitalOut _RS;
+ DigitalOut _E;
+
+ DigitalOut _DB0;
+ DigitalOut _DB1;
+ DigitalOut _DB2;
+ DigitalOut _DB3;
+ DigitalOut _DB4;
+ DigitalOut _DB5;
+ DigitalOut _DB6;
+ DigitalOut _DB7;
+
+};
+
+
+#endif
\ No newline at end of file
