Replaced by https://github.com/tomgidden/page-turn-o-matic
Please make forks, improvements, pull requests there if you can improve on my work!
Replaced by https://github.com/tomgidden/page-turn-o-matic
Please make forks, improvements, pull requests there if you can improve on my work!
Problems with multiple events led to encapsulating the entire thing in init
, adding E.removeAllListeners()
and NRF.removeAllListeners()
, clearWatch()
, etc.
Serial console helped diagnose some issues, but also heisenberged it a bit.
Seems to work now; going to try battery usage again next.
This new commit (5) is back to basics (again). It just does an
NRF.disconnect()
, which should performNRF.sleep()
. It doesn't mess with advertising or anything. It seems to work.