BBR Button Board Documentation

Keyboard and media keys#

In desk mode the board is a keyboard, a set of media keys and a mouse. Use it for a volume knob, play and pause, keyboard shortcuts for OBS or a video editor, or a scroll wheel. It needs no driver.

So far desk has been tried on macOS, where media keys and scrolling work. It is a standard USB keyboard, so Windows, Linux, ChromeOS, iPad and Android should take it the same way; check yours before relying on it.

To turn it on, choose Media pad in the config app, save, and plug the board back in when the Save step asks. See USB modes.

Choosing what a key sends#

On Make your media pad, click a key, or just press it on the board, and choose what it sends from three tabs:

  • Media: volume up and down, mute, play / pause, next and previous track, stop, screen brightness up and down, calculator, web browser.
  • Shortcut: press Record a shortcut and press it on the laptop’s keyboard, or type it in Or type it: ctrl+shift+m, gui+l, f13. Typing is how to set the shortcuts the computer keeps for itself and will not let a page record, such as gui+tab or ctrl+w. gui is Cmd on a Mac and the Windows key on Windows.
  • Mouse: left, right or middle click, the back and forward buttons, or one step of the scroll wheel in any direction.

F13 to F24 are worth knowing: no real keyboard has them, so apps such as OBS, Discord or a video editor can use them as shortcuts that clash with nothing. Type f13 to f24.

Make it do nothing clears the key. Once a key has an action, the page says what pressing it should do, so you can try it.

A key that has no button number gets a spare one by itself, so you never have to pick a number.

The key’s action is held for as long as the key is held, as on a real keyboard. Holding a key with a modifier on it (Shift, say) changes what another key sends, exactly as on a keyboard.

Keys are positions, not letters. The board sends the key at that place on a US keyboard, which is what every USB keyboard does. On a French layout, a types q. Shortcuts behave the same as on the computer’s own keyboard.

One key sends one shortcut. Typing a word, or a sequence of several shortcuts, is not supported.

Knobs#

In desk mode each click of an encoder sends one action. Click the knob and choose what turning it does:

  • Volume
  • Scroll
  • Brightness
  • Next / previous track

Each sets both directions at once. For anything else, type what each way sends under Clockwise sends and Anticlockwise sends: a shortcut such as ctrl+z, a media key such as vol_up or next, or a mouse action such as scroll_up. Pressing the knob is a key like any other: What pressing it does sets it.

Showing the volume on a display#

The knob and mute key work with nothing running on the computer. To also see the volume, run ds_volume.py on the laptop. It draws the computer’s volume as a bar on a disp2 and follows it as the knob turns. While the sound is muted it shows MUTED and lights the mute key red.

pip install bbr-buttonboard
python ds_volume.py

It reads the volume from the computer itself, so the bar also follows the keyboard’s own volume keys. macOS and Linux work as they are; Windows needs pip install pycaw as well. Close the config app first: only one program can talk to the board at a time.

Safety#

  • A key held for more than 60 seconds is released, and stays released until it is let go. A stuck key never types forever. The board’s fault event says stuck when this happens.
  • Binding a key, or any change to the configuration, releases every key first, so nothing is left held down.
  • A tile that is unplugged or stops answering releases its keys at once.
  • The button test on Check your board is refused in desk, as it would press every shortcut at once.

Lock lights#

The board reports the computer’s Caps Lock, Num Lock and Scroll Lock state on the config channel as a lock event. See Serial command reference.