BTN RGB28x4
4x RGB Backlit Buttons
- Overview
- Commands
- Samples
- On-Module Code
Four 28 mm transparent buttons with RGB backlights — each button shows one of 7 colors (or off), and the module reads all four press states. Drive lights and read inputs with simple text commands over any supported interface.
Common uses: Simon-style memory games, multi-option menu inputs, game-show panels, classroom UX projects, and any colorful 4-button interface.
Key features • 4x 28mm buttons | Resources 📄 Schematics PID: 0x040002 |
Modules ship without cables to reduce waste. Some specialty boards include a USB cable; for the rest, see Cables to add cables to your order.
Commands this module accepts. See Samples for runnable code in popular host languages.
| Function | Description |
|---|---|
SetClr(i,c,l) | Sets a button at i index to c color with l luminance. |
BtnA() | Returns 1 if button A is pressed. |
BtnB() | Returns 1 if button B is pressed. |
BtnC() | Returns 1 if button C is pressed. |
BtnD() | Returns 1 if button D is pressed. |
DVer() | This driver version. |
Peek under the hood
The script below is this module's driver — it teaches the hardware how to respond to the commands listed above. It ships pre-loaded from the factory; most users never need to open it.
loading...
Example code that calls this module's commands from popular host languages.
New here? See Get Started to connect a module and send your first command.
- Python
- MicroPython
- JavaScript
- .NET
- Arduino
loading...
loading...
loading...
loading...
loading...
Code that runs directly on this module's MCU. See how On-Module Code allows modules to run standalone.
- Script
- Arduino IDE
This example runs using the default DUELink Internal Engine using its Scripting Language, and it expects the module's driver to be loaded first, see the Commands Tab.
loading...
See Arduino IDE page for more info.
loading...
Ordering Info
| Product | Part Number | Price |
|---|---|---|
| DUELink BTN RGB28x4 | GDL-HIBRGB284-B | $19.95 |