Implemented SLEEP function

Reduced idle current from 6mA to ~1mA
The asleep check may need the same self-detect treatment that wake
detect has