/*************************************************************************
Title:    testing output to a HD44780 based LCD display.
Author:   Peter Fleury  <pfleury@gmx.ch>  http://jump.to/fleury
Date:     December 2002
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"


/*
** constant definitions
*/


int main(void)
{
    double pitch = 1.0;
    char pitchar[50];

    /* initialize display, cursor off */
    lcd_init(LCD_DISP_ON);

    
    
    /* clear display and home cursor */
    lcd_clrscr();
        
    dtostrf (pitch, 4, 1, pitchar);       /* Output " 1.0"  */
    lcd_puts (pitchar);        

    for (;;) {}                           /* loop forever */
}
