Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void main(void)
- {
- int i=0;
- PORTB=0x20;
- DDRB=0x20;
- PORTC=0x00;
- DDRC=0x00;
- PORTD=0x00;
- DDRD=0xFF;
- lcd_init(16);
- lcd_gotoxy(0,0);
- lcd_puts("Radyko Roman");
- while (1)
- {
- i++;
- if(i==16)
- {
- lcd_gotoxy(0,1);
- }
- if(i==32)
- {
- lcd_gotoxy(0,0);
- i = 0;
- }
- lcd_control(0x1C);
- PORTB.5 = ~PORTB.5;
- delay_ms(500);
- };
- }
Add Comment
Please, Sign In to add comment