main.c


1
/*************************************************************************
2
Title:    testing output to a HD44780 based LCD display.
3
Author:   Peter Fleury  <pfleury@gmx.ch>  http://jump.to/fleury
4
File:     $Id: test_lcd.c,v 1.6 2004/12/10 13:53:59 peter Exp $
5
Software: AVR-GCC 3.3
6
Hardware: HD44780 compatible LCD text display
7
          ATS90S8515/ATmega if memory-mapped LCD interface is used
8
          any AVR with 7 free I/O pins if 4-bit IO port mode is used
9
**************************************************************************/
10
#include <stdlib.h>
11
#include <avr/io.h>
12
#include <avr/pgmspace.h>
13
#include <util/delay.h>
14
#include "lcd.h"
15
16
17
int main(void)
18
{
19
20
  /* initialize display, cursor off */
21
  lcd_init(LCD_DISP_ON);
22
  lcd_clrscr();
23
    for (;;) {                           /* loop forever */
24
    lcd_putc(':');
25
    _delay_ms(1000);
26
  }
27
}