//https://wokwi.com/projects/354556802672660481
//nedokončená transformace
#include <avr/io.h> //iom328p.h
#include <util/delay.h>
int main(){
DDRB = 0xFF; // #define DDRD _SFR_IO8(0x0A)
PORTD= 0x00;
while(1){
PORTD ^= (1 << PD3);
delay();
}
return 0;
}
int delay(){
_delay_ms(1000); //toto poté odstavit
TCNT1H = 0xC2;
TCNT1L = 0xF7;
TCCR1B = 0x05; //1024
/* následující je řeba nahradit
L:LDS R0, TIFR1
SBRS R0, 0
RJMP L
*/
TCCR1B = 0x00;
TIFR1 = 0x01;
}