Based on a NEO-Pixel WS2812, RGB LED strip. ON/OFF, Brightness, HUE and Saturation.
Connect LED STRIP
pin to the following pin:
Name | Description | Defaults |
---|---|---|
CONFIG_ESP_LED_GPIO |
GPIO number for LED pin |
"2" Default |
- Choose your GPIO number under
StudioPieters
inmenuconfig
. The default is2
(On an ESP32 WROOM 32D). - Choose your strip length under
StudioPieters
inmenuconfig
. The default is3
. - Set your
WiFi SSID
andWiFi Password
underStudioPieters
inmenuconfig
. - Optional: You can change
HomeKit Setup Code
andHomeKit Setup ID
underStudioPieters
inmenuconfig
. (Note: you need to make a new QR-CODE To make it work)
REPRODUCTION STEPS
Open a terminal window on your mac.
docker pull espressif/idf:latest
- At this point idf (ESP-IDF v5.3-dev-2815-gbe06a6f5ff)
git clone --recursive https://github.com/jonkofee/esp32-homekit-ledstrip.git
docker run -it -v ./:/project -w /project espressif/idf:latest
idf.py set-target esp32
idf.py menuconfig
- Select
Serial flasher config
and thenFlash size (2MB)
set to4MB
- Select
Partition table
and thenPartition Table(Single factory app, no OTA)
Set toCustom partition table CSV
- Select
StudioPieters
and then(mysid) WIFI SSID
and fill in your Wi-Fi Network name, then Select(mypassword) WiFI Password
and fill in your Wi-Fi Network password. - Then press
ESC
until you are askedSave Configuration?
and select(Y)es
idf.py build
Open a new terminal window on your mac.
esptool.py -p /dev/tty.wchusbserial110 erase_flash
esptool.py -p /dev/tty.wchusbserial110 -b 460800 --before default_reset --after hard_reset --chip esp32 write_flash --flash_mode dio --flash_size detect --flash_freq 40m 0x1000 build/bootloader/bootloader.bin 0x8000 build/partition_table/partition-table.bin 0x10000 build/main.bin
- Replace
/dev/tty.usbserial-01FD1166
with your USB port.
screen /dev/tty.wchusbserial110 115200
- Replace
/dev/tty.usbserial-01FD1166
with your USB port.