// initialize laser void init_laser_driver(){ create_test_pattern(); SET_DDR(LASER); SET_DDR(LASER_PWM); OUTPUT_ON(LASER_PWM); TCCR1B = 1; }
void borg_hw_init() { DDR(COLPORT1) = 0xff; DDR(COLPORT2) = 0xff; SET_DDR(LATCH_R); SET_DDR(LATCH_G); SET_DDR(LATCH_B); timer1_on(); // activate watchdog timer wdt_reset(); wdt_enable(0x00); // 17ms watchdog }