gledopto
Rust no-std embedded board support crate for Gledopto ESP32 Digital LED controllers.
Uses Blinksy: an LED control library for 1D, 2D, and soon 3D LED setups, inspired by FastLED and WLED.
Supported Boards
Currently this library only supports one board:
- Gledopto GL-C-016WL-D,
gl_c_016wl_d
Select the board by using its respective feature.
Features
- LED control using
blinksy - Built-in "Function" button
- Alternative "IO33" button
- Built-in microphone
Examples
2D APA102 Grid with Noise Pattern
https://github.com/user-attachments/assets/1c1cf3a2-f65c-4152-b444-29834ac749ee
use ;
use ;
!
1D WS2812 Strip with Rainbow Pattern
https://github.com/user-attachments/assets/703fe31d-e7ca-4e08-ae2b-7829c0d4d52e
use ;
use ;
!
Getting started
Pre-requisites
- Install Rust with
rustup - Install ESP components
cargo install espup
espup install
- Install
espflash
cargo install espflash
- On Linux, add user to
dialoutgroup
sudo adduser $USER dialout
Run An Example
Source the ESP environment variables
. $HOME/export-esp.sh
(See also: https://docs.esp-rs.org/book/installation/riscv-and-xtensa.html#3-set-up-the-environment-variables )
Clone this repository and go into the ./esp workspace:
git clone git@github.com:ahdinosaur/blinksy
cd blinksy/esp
Run an example:
cargo run --release -p gledopto --example ws2812-strip
To start your own project, use esp-generate.
- Enable unstable HAL features: yes
- Use defmt to print messages: yes
Resources
As the Gledopto controller is an ESP32, if you want to get started here are some more resources to help:
- The Rust on ESP Book: An overall guide on ESP32 on Rust
- esp-hal: The Hardware Abstraction Layer for an ESP32 on Rust
- espup: How to install the Xtensa target for Rust, required for ESP32
- esp-generate: A template to help you kickstart your project
And in case they are helpful: