Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<avr/io.h>
- int main(void){
- DDRA = 0xFF;
- DDRB = 0x0F;
- unsigned char napis[4];
- napis[0] = 0b00000110;//E
- napis[1] = 0b00101111;//r
- napis[2] = 0b00100011;//o
- napis[3] = napis[1]; // r
- PORTA = napis[2];
- PORTB = 0b00001011;
- for(;;){
- for (unsigned char i = 0; i<4 ; i++){
- PORTB = ~(_BV(3-i));
- PORTA = napis[i];
- for(unsigned long i=0; i<=100;i++){
- __asm__ ( "nop;");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement