2 * Copyright Droids Corporation, Microb Technology, Eirbot (2005)
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 * Revision : $Id: main.c,v 1.4.4.2 2007-05-23 17:18:13 zer0 Exp $
23 #include <aversive/pgmspace.h>
26 #include <aversive/wait.h>
32 int lcd_dev_putc_delay(char c, FILE* f)
49 lcd_init(LCD_DISP_ON);
52 lcd_putc('j'); // ne doit pas etre visible
55 lcd_putc('\f'); // effacement
61 lcd_putc('h'); wait_ms(DELAY);
62 lcd_putc('e'); wait_ms(DELAY);
63 lcd_putc('l'); wait_ms(DELAY);
64 lcd_putc('l'); wait_ms(DELAY);
65 lcd_putc('o'); wait_ms(DELAY);
70 for(i=0;i<5;i++) lcd_putc(' ');
72 lcd_putc('w'); wait_ms(DELAY);
73 lcd_putc('o'); wait_ms(DELAY);
74 lcd_putc('r'); wait_ms(DELAY);
75 lcd_putc('l'); wait_ms(DELAY);
76 lcd_putc('d'); wait_ms(DELAY);
84 fdevopen(lcd_dev_putc,NULL);
86 lcd_putc('\f'); // effacement
87 printf_P(PSTR("big brother"));
91 slow = fdevopen(lcd_dev_putc_delay,NULL);
93 fprintf_P(slow, PSTR("\fl' AVR c'est top\nl' AVR c'est tof"));