Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 1.31 KB

README.md

File metadata and controls

32 lines (24 loc) · 1.31 KB

LIFX light switch for ESP32

Implements a simple light switch for an LIFX bulb.

This is not, in any way, affiliated or related to LiFi Labs, Inc. Use it at your own risk.

Senses when a capacitive button is pressed and then sends a UDP packet over the WiFi network to change the power state of a particular bulb.

The capacitive button can be as simple as a piece of metal connected to one of the "touch" pins of the ESP32.

This is structured identically to the ESP-IDF examples. Before compiling, run make menuconfig to set up the following:

Then run make flash to install to the ESP32. Tested with an ESP32 DevKit V4 board.

Based on two examples that come with ESP-IDF (see https://docs.espressif.com/projects/esp-idf/en/latest/get-started/):

  • examples/wifi/getting_started/station
  • examples/peripherals/touch_pad_interrupt

All the LIFX network-related implementation is copied from https://github.com/ArquintL/lifx-c-lib, with very minor adjustments to compile on ESP32.