Hi, Puck.js doesn't support bluetooth mesh, but it's easy enough to do one to many using bluetooth advertising, or even just to have one Puck as a 'master' and have that connect to the one it wants to light up, wait until the button is pressed and then connect to the next and make that light
I've just dug out some code I'd used here for something similar. Basically what happens is:
Each Puck (when 'awake') scans for advertising packets with Espruino's 'manufacturer id' (0x0590) that contain their 'id' (last 2 blocks of the MAC address)
When they see that they light up
When they're pressed the light turns off and they advertise the fact, and how long it took before they were pressed
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Hi, Puck.js doesn't support bluetooth mesh, but it's easy enough to do one to many using bluetooth advertising, or even just to have one Puck as a 'master' and have that connect to the one it wants to light up, wait until the button is pressed and then connect to the next and make that light
I've just dug out some code I'd used here for something similar. Basically what happens is:
Then you have one 'master' device (I used an MDBT42 breakout attached to a 32x8 LED matrixhttps://www.espruino.com/MAX7219) that orchestrates the whole thing and displays the score.
Puck.js code:
MDBT42 breakout code: