Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
All Blinks fall asleep at the same time #39
I like this but would add (to preserve battery life):
Btw, I've made use of the forced sleep method already (buried in the core) when I implemented a "menu mode" for the game.
This feels like 2 different but related features...
There is a complication caused by the fact that clocks of different blinks can be fast and slow Relative to each other, so it is possible to create a timeout feedback loop that prevents all blinks from ever timing out. To resolve this I think we can refine the sharing rule to be that a blink only takes on the more recent button press shared from an adjoining blink when the difference is greater than a threshold. Considering the timeout is on the order of 10 minutes, I think a threshold of ~10 seconds is a good balance of making sure blinks don't fall sleep before others are ready +/-10 seconds (plus clock slew).