summaryrefslogtreecommitdiffstats
path: root/hardware.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'hardware.cpp')
-rw-r--r--hardware.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/hardware.cpp b/hardware.cpp
index aa3159a..51ae18e 100644
--- a/hardware.cpp
+++ b/hardware.cpp
@@ -19,13 +19,18 @@ void initHardware() {
DDRD = 0xFF;
PORTD = 0x00;
- TCCR0 = 0x62;
- TCCR1A = 0xA1;
- TCCR1B = 0x82;
+ TCCR0 = 0x62;
OCR0 = 0;
+
+ TCCR1A = 0xA1;
OCR1A = 0;
+
+ TCCR1B = 0x82;
OCR1B = 0;
+ TCCR2 = 0x18;
+ OCR2 = 0;
+
initADC();
initI2C();
}