#define F_CPU 16000000UL #include #define __DELAY_BACKWARD_COMPATIBLE__ #include // för ultraljudssensorn uint16_t echo_recive(); void beep(); //för pwm3 void timer3_init(); void set_pulse3(uint16_t); void set_period3(uint16_t); int main(void) { DDRD |= 0b11111111; // lampan/zoomer DDRC |= (1< 4){ beep(); } else if ((TCNT1 <= 4)){ PORTD = (1<< PORTD7); set_pulse3(0); // stopppar motorn }else{ PORTD = (0<