The button program had additional complexities: it ran a JSON-RPC pub-sub server over websockets (lol). A separate menu program subscribed to the button-press events over JSON-RPC and used them to drive changes in a state machine for an OLED menu.
In hindsight, this was a pretty ridiculous arrangement.
The button logic is now included in the menu program. No more JSON-RPC pub-sub. The result is far less code, fewer dependencies, easier readability and major performance gains.
Merveilles is a community project aimed at the establishment of new ways of speaking, seeing and organizing information — A culture that seeks augmentation through the arts of engineering and design. A warm welcome to any like-minded people who feel these ideals resonate with them.