This branch is an attempt to clean up after EMF. This includes throwing away all the "infrastructure" stuff and rewriting most of the radio code.
The goal is to allow people to use the radio without having to jump through a million hoops (getting two radios, creating a certificate, recompiling the badges with the right public key, setting up python, setting up postgres, running all the server stuff, ...)
There is no always-on radio background-task anymore. This not only cuts down on code complexity but also removes one of the biggest battery drains. It will also allow us to send the whole CPU sleeping under certain conditions, but I haven't written that bit yet.
As an example to how this might look like I've added the world's most important app "Yo!". You press A, everyone around you gets a message.
Sorry for the big diff, but this PR includes #124 (which we really should merge)
ToDo:
Add a better way to block both on radio messages and button presses
Add a way to change your name
Persist name in flash
Add multiplayer to snake
Find some way to make the speakers say "Yo!" when a Yo is received
This branch is an attempt to clean up after EMF. This includes throwing away all the "infrastructure" stuff and rewriting most of the radio code.
The goal is to allow people to use the radio without having to jump through a million hoops (getting two radios, creating a certificate, recompiling the badges with the right public key, setting up python, setting up postgres, running all the server stuff, ...)
There is no always-on radio background-task anymore. This not only cuts down on code complexity but also removes one of the biggest battery drains. It will also allow us to send the whole CPU sleeping under certain conditions, but I haven't written that bit yet.
As an example to how this might look like I've added the world's most important app "Yo!". You press A, everyone around you gets a message.
Sorry for the big diff, but this PR includes #124 (which we really should merge)
ToDo: