Homekit firmware for the Sonoff basic module to control a PWM dimmable power supply
Demo of Apple HomeKit accessory server library.
Then build it by running
docker run -it --rm -v `pwd`:/project -w /project esp-rtos make -C sonoff_basic_pwm_with_relay all
Then flash it (and optionally immediately run monitor)
docker run -it --rm -v `pwd`:/project -w /project --device=/dev/ttyUSB0 esp-rtos make -C sonoff_basic_pwm_with_relay flash
NOTE: you can have the following helper function in ~/.bashrc:
docker-run() {
docker run -it --rm -v $(pwd):/project -w /project "$@"
}
Then, to run a container to build flash and monitor just do
docker-run --device=/dev/ttyUSB0 esp-rtos make -C sonoff_basic_pwm_with_relay all flash monitor