mirror of
https://github.com/markqvist/OpenModem.git
synced 2025-05-15 04:42:15 -04:00
LED driver work
This commit is contained in:
parent
c22123b953
commit
372264d379
12 changed files with 162 additions and 29 deletions
|
@ -5,7 +5,7 @@ uint8_t dacReference = CONFIG_DAC_REF;
|
|||
|
||||
void VREF_init(void) {
|
||||
// Enable output for OC2A and OC2B (PD7 and PD6)
|
||||
DDRD |= _BV(7) | _BV(6);
|
||||
VREF_DDR |= _BV(7) | _BV(6);
|
||||
|
||||
TCCR2A = _BV(WGM20) |
|
||||
_BV(WGM21) |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue