Controller
A 7x Button Controller with 8x LED ring
- Overview
- Commands
- On-Module Code
Use the buttons to control other modules. The 8x LED ring can help with indications of the controller usage.
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.
| 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. |
Samples​
Example code for using this module's commands in popular languages.
New here? See Get Started to connect a module and send your first command.
- Python
- JavaScript
- .NET
loading...
loading...
loading...
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...
Code that runs directly on this module's MCU. See On-Module Code for an overview.
- 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 MicroBlocks' website.
Ordering Info
| Product | Part Number | Price |
|---|---|---|
| DUELink Controller | GDL-SPCTRLR-B | $9.95 |