summaryrefslogtreecommitdiff
path: root/src/micropeak/ao_pins.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-10-30 19:41:08 -0700
committerKeith Packard <keithp@keithp.com>2012-10-30 19:41:08 -0700
commit371da0c909098092db7b596496df9d58eed43703 (patch)
tree7ce136fb4dda67bba32c5d5141673902311f6324 /src/micropeak/ao_pins.h
parente8a4a00a5bb333d4ee9601d53242a82dfe0372c2 (diff)
altos/micropeak: Clock micropeak at 250kHz to save power
This reduces average current consumption from 2mA to .4mA. This makes the battery last longer, but also gets the current under something that the typical CR1025 battery can support. Would be nice to reduce current even further; cheap CR1025 batteries still seem to fade a bit at this current level. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/micropeak/ao_pins.h')
-rw-r--r--src/micropeak/ao_pins.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/micropeak/ao_pins.h b/src/micropeak/ao_pins.h
index 67de1a8e..cf5951df 100644
--- a/src/micropeak/ao_pins.h
+++ b/src/micropeak/ao_pins.h
@@ -32,7 +32,7 @@
#define HAS_MS5611 0
#define HAS_EEPROM 0
#define HAS_BEEP 0
-#define AVR_CLOCK 8000000UL
+#define AVR_CLOCK 250000UL
/* SPI */
#define SPI_PORT PORTB