14 lines
184 B
C
14 lines
184 B
C
#include "analogout.h"
|
|
#include <avr/io.h>
|
|
|
|
void
|
|
analogout_init(void)
|
|
{
|
|
DDRD |= _BV(PD5);
|
|
TCCR0A = _BV(COM0B1) | _BV(WGM01) | _BV(WGM00);
|
|
TCCR0B = _BV(CS00);
|
|
OCR0B = 0xff / 2;
|
|
}
|
|
|
|
|