/*************************************************************************
Title:    testing output to a HD44780 based LCD display.
Author:   Peter Fleury  <pfleury@gmx.ch>  http://jump.to/fleury
File:     $Id: test_lcd.c,v 1.3 2003/12/10 19:32:48 peter Exp $
Software: AVR-GCC 3.3
Hardware: HD44780 compatible LCD text display
          ATS90S8515/ATmega if memory-mapped LCD interface is used
          any AVR with 7 free I/O pins if 4-bit IO port mode is used
**************************************************************************/

#include <stdlib.h>
#include <avr/io.h>
#include "lcd.h"
#include <inttypes.h>                                               // Allgemeine Bibliotheken
/*#include <avr/eeprom.h>*/
 



int main(void)
{
	DDRA=0x00;                                                  // Port A auf Eingang (hier kommen die Tastereingaben rein)
    PINA=0xFF;                                                  // Alle Eingänge auf 0
	DDRD=0xFF;													// PORT D als Ausgang (Auto-Ampel Längs- und Querverkehr)
	PORTD=0xFF;													// Alle Ausgänge auf 1
	DDRC=0xFF;													// Port C als Ausgang (Fußgänger-Ampel Längs- und Querverkehr)
	PORTC=0xFF;													// Alle Ausgänge auf 1
	
	lcd_init(LCD_DISP_ON); // LCD initialisieren
	lcd_gotoxy(0,0);
	lcd_puts("Hello World");
		
}
