Skip to content

Instantly share code, notes, and snippets.

@currentoor
Last active December 13, 2022 22:07
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save currentoor/b2461322bba1561ee5764d93659f563f to your computer and use it in GitHub Desktop.
Save currentoor/b2461322bba1561ee5764d93659f563f to your computer and use it in GitHub Desktop.
How to talk to the mutesync button.
// The API is really simple, to control the lights you send the button a byte array of 13 bytes.
// The first byte needs to be 65 and the rest of the twelve bytes are 3-tuples (RGB values 0-255 for the individual LEDs).
// So alternating red and green lights would look like
[65,
255, 0, 0, // red
0, 255, 0, // green
255, 0, 0, // red
0, 255, 0] // green
// When the button is pressed it sends the byte `51` and when it's released it sends the byte `52`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment