https://github.com/sh3mm/cb3s-led-server
Sofware to reporpuse an always-online "Smart" LED strip from Genni into a local HTTP server using LibreTiny
https://github.com/sh3mm/cb3s-led-server
bk7231n cb3s iot-device libretiny platformio
Last synced: 10 months ago
JSON representation
Sofware to reporpuse an always-online "Smart" LED strip from Genni into a local HTTP server using LibreTiny
- Host: GitHub
- URL: https://github.com/sh3mm/cb3s-led-server
- Owner: Sh3mm
- Created: 2025-08-08T23:22:59.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-08-09T02:22:12.000Z (10 months ago)
- Last Synced: 2025-08-09T04:12:04.819Z (10 months ago)
- Topics: bk7231n, cb3s, iot-device, libretiny, platformio
- Language: C++
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Local Wifi Led strip
Project made to adapt a Genni "Smart" led strip that required an app and a cloud connection into a local only Wifi led strip that communicates through an HTTP server hosted on the chip.
The chip is a [CB3S from tuya](https://docs.libretiny.eu/boards/cb3s/).
The code depends on [libretiny](https://docs.libretiny.eu/).
## Set-up
1. To setup, Fisrt create a new `varriables.h` file in the `src` folder and fill it with the following information:
```c
// WiFi configs
#define WIFI_SSID "XXXX"
#define WIFI_PASS "XXXX"
// Pin configs (the default for my project)
#define BUTTON_PIN 9
#define R_PIN 8
#define G_PIN 24
#define B_PIN 26
// PWM configs
#define ANALRES 10
#define ANALFRQ 100
// Button configs
#define LONG_CLICK 5000
```
2. Upload the project to the chip using [platformIO](https://platformio.org/)