summaryrefslogtreecommitdiff
path: root/tmk_core/tool/mbed/mbed-sdk/libraries/tests/mbed/freopen/TextLCD.h
diff options
context:
space:
mode:
Diffstat (limited to 'tmk_core/tool/mbed/mbed-sdk/libraries/tests/mbed/freopen/TextLCD.h')
-rw-r--r--tmk_core/tool/mbed/mbed-sdk/libraries/tests/mbed/freopen/TextLCD.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/tmk_core/tool/mbed/mbed-sdk/libraries/tests/mbed/freopen/TextLCD.h b/tmk_core/tool/mbed/mbed-sdk/libraries/tests/mbed/freopen/TextLCD.h
new file mode 100644
index 0000000000..9a29792183
--- /dev/null
+++ b/tmk_core/tool/mbed/mbed-sdk/libraries/tests/mbed/freopen/TextLCD.h
@@ -0,0 +1,30 @@
+/* mbed TextLCD Library Base Class
+ * Copyright (c) 2007-2009 sford
+ * Released under the MIT License: http://mbed.org/license/mit
+ */
+#include "TextDisplay.h"
+
+#ifndef MBED_TEXTLCD_H
+#define MBED_TEXTLCD_H
+
+class TextLCD : public TextDisplay {
+public:
+
+ TextLCD(PinName rs, PinName rw, PinName e, PinName d0, PinName d1, PinName d2, PinName d3, const char *name = NULL);
+ virtual void character(int column, int row, int c);
+ virtual int rows();
+ virtual int columns();
+
+ // locate, cls, putc, printf come from derived class
+
+protected:
+
+ void writeByte(int value);
+ void writeCommand(int command);
+ void writeData(int data);
+
+ DigitalOut _rw, _rs, _e;
+ BusOut _d;
+};
+
+#endif