From 4a2ba4b7105d168932163cbd07a062fdf2ba00e9 Mon Sep 17 00:00:00 2001 From: sicarius Date: Sat, 17 Feb 2007 00:35:01 +0000 Subject: +++ enhanced framework hardware interface --- source/AVR_Studio/Soccer/hal/keylcd.c | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) (limited to 'source/AVR_Studio/Soccer/hal/keylcd.c') 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