Skip to content
OBEGRÄNSAD LED

Flashing

The firmware is a PlatformIO project. The Web GUI is already compiled into src/webgui.cpp, so you do not need Node.js to flash the device.

Install the tools

Install Visual Studio Code and the PlatformIO IDE extension, or install the PlatformIO CLI with pip install platformio.

Clone the repository

git clone https://github.com/ph1p/ikea-led-obegraensad.git
cd ikea-led-obegraensad

Edit include/secrets.h

Set your own values:

#pragma once
 
#define WIFI_HOSTNAME "ikea-led"
 
// only used on ESP8266, ESP32 boards use the Wi-Fi portal instead
#define WIFI_SSID "your-network"
#define WIFI_PASSWORD "your-password"
 
// credentials for the OTA update page at /update
#define OTA_USERNAME "admin"
#define OTA_PASSWORD "choose-a-password"

WIFI_HOSTNAME is also the mDNS name, so the device is reachable at http://ikea-led.local/.

Check include/constants.h

Adjust the pins if your wiring differs, and set the default weather location, NTP server and time zone. These defaults can be changed later in the Web GUI. See Configuration.

Select the environment and upload

Connect the board over USB. In VS Code, open the PlatformIO sidebar, pick your environment (for example esp32dev) and run Upload. On the command line:

pio run -e esp32dev -t upload
pio device monitor -b 115200

The available environments are listed on the Hardware page. esp32dev is the default.

Optional features

Features are switched on and off with defines in include/constants.h:

DefineEffect
ENABLE_SERVERWeb server, Web GUI, API, network plugins (clock, weather, DDP, Art-Net).
ENABLE_STORAGEPersist brightness, plugin, schedule and settings. Not available on ESP8266.
ENABLE_MQTTMQTT client with Home Assistant discovery. On by default, requires ENABLE_SERVER.

Remove ENABLE_MQTT to save flash and RAM if you do not use MQTT.

Next step

Continue with Wi-Fi setup.