Controller
A 7x Button Controller with 8x LED ring
- Overview
- Commands
- Samples
- On-Module Code
Controller is a 7-button DUELink microcomputer with an 8-LED ring for status indication. Use it as a self-contained input board or as a controller layer for other DUELink modules over its Downlink port.
Code it in Python, JavaScript, .NET, Arduino, or C++, or run it standalone with MicroBlocks.
Pick Controller for handheld controls, prop interfaces, makerspace check-out stations, or any project where you want a tactile button panel with built-in feedback.
Key features • 7x buttons | Resources 📄 Schematics PID: 0x0C0008 |
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 |
|---|---|
BtnPin(p) | Returns pin number, based on p value ('U' = Up, 'D' = Down, 'L' = Left, 'R' = Right, 'A' = A, 'B' = B). |
Setled(l,v) | Sets Led at l (1 to 8) to a v value (1 on, 0 off). |
SetAllLed(v) | Sets all Leds to v value (1 on, 0 off). |
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
- JavaScript
- .NET
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
- MicroBlocks
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...
This project runs standalone. It assumes that the MicroBlocks firmware is already loaded on the module.
Click the button below to open, edit, and run the project directly on the MicroBlocks website.
Ordering Info
| Product | Part Number | Price |
|---|---|---|
| DUELink Controller | GDL-SPCTRLR-B | $9.95 |