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.
The code depends on libretiny.
- To setup, Fisrt create a new
varriables.h
file in thesrc
folder and fill it with the following information:
// 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
- Upload the project to the chip using platformIO