Smart LED
Smart LED Controller with Signal Conditioning
- Overview
- Commands
- On-Module Code
This module supports both 1-pin WS281x smart LEDs and 2-pin smart LEDs (clock and data). Beyond standard LED controls, DUELink standard library includes support for graphics on WS281x matrices.
The control signals coming out of the module are 3.3V logic levels by default. Optionally, you can supply 5V on the Vsig connection to convert the control signals to 5V.
Key features • WS2811 LED Controller | Resources 📄 Schematics PID: 0x05000D |
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 |
|---|---|
WS2811() | Returns the pin number used for DAT pin to be used with WS2811 Smart LED Graphics. |
IntAPA(c) | Get the system ready for APA102C. |
SetAPA(i, c, l) | Sets the color at i index to c color (RRGGBB) and l luminance (0 to 31). |
ShwAPA() | Show/update the actual LEDs with preassigned colors. |
IntLPD(c) | Get the system ready for LPD8806. |
SetLPD(i, c) | Sets the color at i index to c color (RRGGBB) |
ShwLPD() | Show/update the actual LEDs with preassigned colors. |
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
- MicroPython
- JavaScript
- .NET
- Arduino
- MicroBlocks
loading...
loading...
loading...
loading...
loading...
This sample project runs on a MicroBlocks-enabled device that is tethered to this module. Note that this tethered module needs to have the official DUELink firmware and its module driver. See MicroBlocks page to learn more.
Click the button below to open, edit, and run the project directly on MicroBlocks' website.
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
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 Smart LED | GDL-LDSMARTLED-B | $14.95 |