Holiday Tree
Smart Holiday Tree with 26 LEDs
- Overview
- Commands
- On-Module Code
This is arguably the smartest holiday tree in the world! Control the LEDs in Standalone mode or connect to a host and control the tree from one of the many supported languages and devices. The 2 boards (A and B) slide into each other, turning this into a 3D-ish module!
We are including a USB cable. You only need to connect it to a computer or a phone charger! Everything you need to get started is at: holidaytree.duelink.com
This board ships preloaded with MicroBlocks firmware.
Key features • Stand-up Design | Resources 📄 Schematics PID: 0x0C0003 |
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 |
|---|---|
PlayLED(enable) | PlayLED(1) will make the LED constantly blink, default. Use PlayLED(0) to disable playback and manually control the LEDs. |
SetLED(i, c, l) | Sets a specific LED, i index (index start from 1), to a c color (hex value), l brightness (0 off, max 31). |
SetAll(color) | Sets all LEDs to a specific color, use 0 to turn off. |
ShowLed() | Flush Leds, and show. |
RndLed() | Show random color on random leds. |
Buzzer(f,d) | Play buzzer with f frequency and d duration in milliseconds. This is blocking function. |
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
- 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 Holiday Tree | GDL-SPTREE-B | $24.95 |