summaryrefslogtreecommitdiffstats
path: root/source/AVR_Studio/Soccer/hal/keylcd.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/AVR_Studio/Soccer/hal/keylcd.c')
-rwxr-xr-xsource/AVR_Studio/Soccer/hal/keylcd.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/source/AVR_Studio/Soccer/hal/keylcd.c b/source/AVR_Studio/Soccer/hal/keylcd.c
new file mode 100755
index 0000000..fb2efa6
--- /dev/null
+++ b/source/AVR_Studio/Soccer/hal/keylcd.c
@@ -0,0 +1,28 @@
+#include "keylcd.h"
+
+KeyLCD::KeyLCD() : i2c() {
+
+}
+
+KeyLCD::~KeyLCD() {
+
+}
+
+// Gibt Daten auf dem keyLCD aus
+void KeyLCD::print(char *data) {
+ int len=strlen(data);
+ uint8_t buf[len+1];
+
+ for (int i=0; i<len; i++) buf[i] = uint8_t(data[i]);
+
+ i2c.send(I2C_KEYLCD, buf, len);
+}
+
+// Löscht das keyLCD
+void KeyLCD::clear() {
+
+}
+
+uint8_t KeyLCD::error() {
+ return i2c.error();
+}