BBR Button Board Documentation

LED colours#

Tiles with RGB keys — the ones whose name ends in rgb, such as mx4rgb and mx6rgb — have one addressable LED under every key. There are two independent ways to drive them.

Two layers#

Defaults are part of your saved configuration. They are what the panel looks like when it powers up: a red key for the emergency stop, blue for the intake, dark for everything unbound. Set them under Key light wherever you set a key up, in any setup, and save.

The live layer is set at runtime, over USB, by a companion app on the Driver Station laptop. It is never saved. Use it to, for example, flash the arm button red while the arm is out of bounds, or light the scoring buttons only when the robot is in range.

In FTC mode there is no USB channel for a companion app, but the robot can still write the live layer: a rumble code can be set up to recolour keys. See Changing a key’s colour the same way.

The live layer wins wherever both are set, per LED. Clearing it returns every LED to the saved defaults. See Driver Station app for how to write to it.

Colours follow the button, not the key#

An LED colour set for a logical button moves with that button. Rebind Button 7 to a different key and its colour goes with it.

LEDs that are not under a bound key — edge glow, spare positions — are addressed by tile and LED number instead.

A key with no button as an indicator light#

A key does not have to press anything to have a colour. Under Robot gamepad, select a key with no button, and Key light, its own gives the key a colour of its own. It stays lit whether or not the key has a keycap, so you can pull the keycap and use that position as an indicator light.

The robot can change it during a match too, in a scene, as it can any key. See Changing a key’s colour the same way.

If you later bind the key to a button that has a colour, the button’s colour takes over. Unbind it again and the key’s own colour comes back.

Effects#

Effect What it does
solid On, steady. The default.
blink Slow flash
fast Fast flash
breathe Smooth fade in and out

Once set, an effect keeps running without a companion app sending anything further.

Press feedback#

By default a key flashes white while it is held, over whatever colour it was showing. Where several keys share a button, this shows which one was pressed.

You can turn it off per button, and change the flash colour for the whole board: The flash while a key is held on Your board.

A key whose button has no colour does not flash by default: there is no LED setting for it at all. To get the flash without a colour, turn on Flash when pressed under the key’s Key light. The key then stays dark and lights only while it is held. The same switch turns the flash off on a key that has a colour.

Colour trail#

Colour trail, beside Flash when pressed, is the other kind of feedback. Each press lights the key in a random bright colour, a different one every time. When you let go, the colour fades back to the key’s own colour, or to dark, over about a second. Tap a handful of keys quickly and you see the trail of the keys you touched.

The tile picks the colour and does the fade itself, so it reacts as fast as the flash does. A tile with older firmware shows the white flash instead. Update the tiles to get the trail.

Brightness and the power budget#

The whole panel runs off the USB cable, and the LEDs draw most of that power.

The main module adds up the worst-case draw of every tile on the chain and lowers the global brightness until the total fits the budget. Adding another lit tile dims the whole panel slightly.

Your board shows all three: the Power budget, mA, what every LED white at once would draw, and the brightness the board caps them at. If you are running from a port that can supply more than the default, raise the budget there and press Apply.

If a panel cannot fit even at minimum brightness, the board holds the LEDs off and raises a fault.

Turning everything off#

There is a single “all LEDs off” command, and it takes priority over anything else in flight. Use it when a panel is doing something unexpected on a field.