enabled the second voltage inverter clock

This commit is contained in:
Daniel Knüttel 2019-07-17 16:13:50 +02:00
parent 826c4a1bc7
commit f4e01a3a8f
1 changed files with 3 additions and 2 deletions

View File

@ -4,10 +4,11 @@
void void
analogout_init(void) analogout_init(void)
{ {
DDRD |= _BV(PD5); DDRD |= _BV(PD5) | _BV(PD6);
TCCR0A = _BV(COM0B1) | _BV(WGM01) | _BV(WGM00); TCCR0A = _BV(COM0B1) | _BV(WGM01) | _BV(WGM00) | _BV(COM0A1);
TCCR0B = _BV(CS00); TCCR0B = _BV(CS00);
OCR0B = 0xff / 2; OCR0B = 0xff / 2;
OCR0A = 0xff / 2;
} }