kierdavis / sb-servo-asm-fw

Rewrite of SourceBots servo assembly firmware
0 stars 0 forks source link

Investigate using a sleep mode #5

Open kierdavis opened 6 years ago

kierdavis commented 6 years ago

AVR devices support going into a variety of low-power sleep modes.

This could be done in Util::Serial::readBlocking, which is where the firmware spends the majority of its idle time.

It may also be possible to do this during ultrasound measurements, but this may warrant reimplementing the functionality of pulseIn.