#include "analogout.h" #include void analogout_init(void) { DDRD |= _BV(PD5) | _BV(PD6); TCCR0A = _BV(COM0B1) | _BV(WGM01) | _BV(WGM00) | _BV(COM0A1); TCCR0B = _BV(CS00); OCR0B = 0xff / 2; OCR0A = 0xff / 2; }