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.c15
1 files changed, 4 insertions, 11 deletions
diff --git a/source/AVR_Studio/Soccer/hal/keylcd.c b/source/AVR_Studio/Soccer/hal/keylcd.c
index fb2efa6..4b98f75 100755
--- a/source/AVR_Studio/Soccer/hal/keylcd.c
+++ b/source/AVR_Studio/Soccer/hal/keylcd.c
@@ -1,7 +1,8 @@
#include "keylcd.h"
-KeyLCD::KeyLCD() : i2c() {
-
+KeyLCD::KeyLCD() {
+ // Uart-Interface einschalten
+ uart1_init( 103); // 9600 BAUD bei 16MHz Atmel
}
KeyLCD::~KeyLCD() {
@@ -10,12 +11,7 @@ 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);
+ uart1_puts(data);
}
// Löscht das keyLCD
@@ -23,6 +19,3 @@ void KeyLCD::clear() {
}
-uint8_t KeyLCD::error() {
- return i2c.error();
-}