Hackuarium / simple-spectro

Very cheap, autonomous and precise spectrophotometer for DIY biology and chemistry.
https://hackuarium.github.io/simple-spectro/.
42 stars 15 forks source link

Reduce power consumption #57

Open lpatiny opened 6 years ago

lpatiny commented 6 years ago

https://www.gammon.com.au/forum/?id=11497

power_adc_enable(); // ADC converter power_spi_enable(); // SPI power_usart0_enable(); // Serial (USART) power_timer0_enable(); // Timer 0 power_timer1_enable(); // Timer 1 power_timer2_enable(); // Timer 2 power_twi_enable(); // TWI (I2C)

Disable useless interrupts

See sketch H