49 lines
825 B
C
49 lines
825 B
C
#include <avr/io.h>
|
|
#include <avr/sleep.h>
|
|
#include <avr/wdt.h>
|
|
#include <avr/interrupt.h>
|
|
#include <avr/power.h>
|
|
#include <avr/pgmspace.h>
|
|
//#include <avr/eeprom.h>
|
|
#include <util/delay.h>
|
|
#include <stdlib.h>
|
|
#include <stdbool.h>
|
|
#include <stdio.h>
|
|
|
|
#include "defines.h"
|
|
#include "lcd.h"
|
|
|
|
|
|
void lcdprint( char* ptr){
|
|
while (*ptr) lcd_write(*ptr++);
|
|
}
|
|
|
|
int main(void)
|
|
{
|
|
bitSet(DDRB,7);
|
|
lcd_init(20,4);
|
|
lcd_clear();
|
|
_delay_ms(1000);
|
|
lcd_home();
|
|
lcd_display();
|
|
lcdprint("PyRO RF !");
|
|
lcd_setCursor(0,3);
|
|
lcdprint("Arnaud HOUDELETTE");
|
|
_delay_ms(3000);
|
|
lcd_backlight(1);
|
|
lcd_display();
|
|
_delay_ms(3000);
|
|
lcd_backlight(0);
|
|
lcd_display();
|
|
while (1){
|
|
lcd_setCursor(0,3);
|
|
lcdprint("Arnaud HOUDELETTE");
|
|
_delay_ms(3000);
|
|
lcd_setCursor(0,3);
|
|
lcdprint("Emmanuel LANGLOIS");
|
|
_delay_ms(3000);
|
|
|
|
}
|
|
|
|
|
|
}
|