Git Product home page Git Product logo

esp32_lightbulb_switch's Introduction

ESP32_Lightbulb_switch

based on https://github.com/espressif/esp-apple-homekit-adk... this is how to get the switch to work and push notifications.

ConfigHardwareIO.c is over complicated for this use (supports configuring multiple pins at once) but its part of my next project.

there are a few flavors of ESP32 dev boards, i used https://www.amazon.com/dp/B09QW6Y7KY?th=1. this board has a boot button connected to IO0 and a Blue LED connected to IO2

compile and flash

Visual studio Code / ESP-IDE was used to compile this sample, and i wanted to skip manual steps. so if you want to skip

$ idf.py menuconfig # Set Example Configuration -> WiFi SSID/Password
$ idf.py flash
$ esptool.py -p $ESPPORT write_flash 0x340000 accessory_setup.bin
$ idf.py monitor

1- copy ../esp-apple-homekit-adk/examples/Lightbulb/accessory_setup.bin to ../esp-apple-homekit-adk/examples/Lightbulb/build dir


2 - modified ../esp-apple-homekit-adk/examples/Lightbulb/build/flasher_args.json ... added two lines

in "flash_files" add-> "0x340000" : "accessory_setup.bin"

new root item -> "accessory_setup" : { "offset" : "0x340000", "file" : "accessory_setup.bin", "encrypted" : "false" },


3 - modified sdkconfig CONFIG_EXAMPLE_WIFI_SSID="LocalWIFI" CONFIG_EXAMPLE_WIFI_PASSWORD="LocalWIFI-PW"

esp32_lightbulb_switch's People

Contributors

luisesp avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.