1 | #include <avr/io.h> |
2 | #include <avr/iom324.h> |
3 | #include "lcd-routines.h" |
4 | #include <util/delay.h> |
5 | |
6 | #define F_CPU F_OSC
|
7 | |
8 | |
9 | int main (void) |
10 | {
|
11 | lcd_init(); |
12 | |
13 | lcd_data('D'); |
14 | lcd_data('e'); |
15 | lcd_data('r'); |
16 | lcd_data(' '); |
17 | |
18 | lcd_string("Test"); |
19 | |
20 | //DDRA=(1<<PA0);
|
21 | |
22 | while(1) |
23 | {
|
24 | /*if(PINA&(1<<PA0)) PORTA&=~(1<<PA0);
|
25 | else PORTA|=(1<<PA0);
|
26 | _delay_ms(1);*/
|
27 | }
|
28 | return 0; |
29 | }
|