Add christmas edition
This commit is contained in:
parent
2f1c7d9e82
commit
b62af486a7
1 changed files with 3422 additions and 1 deletions
|
|
@ -0,0 +1,13 @@
|
|||
#ifndef POWER_SAVING_H
|
||||
#define POWER_SAVING_H
|
||||
|
||||
#include <avr/io.h>
|
||||
#include "bitwise.h"
|
||||
|
||||
|
||||
inline void initializePowerSaving() {
|
||||
setBit(ACSR, ACD); // disable ADC to save power
|
||||
PRR = BV(PRTIM1) | BV(PRADC); // disable power to timer1 and ADC
|
||||
}
|
||||
|
||||
#endif
|
||||
Loading…
Reference in a new issue