younghyunjo / esp32-homekit

ESP-32 implementation of Apple Homekit Accessory Protocol(HAP)
Apache License 2.0
445 stars 124 forks source link

Issue with SK6812 led library #16

Closed TAKeanice closed 6 years ago

TAKeanice commented 6 years ago

Good morning,

thanks for programming a Homekit implementation for the ESP32! What does not work for me, is switching on and off my sk6812 LED strand with it. I cannot tell what exactly is going wrong. The way I switch on the LEDs works if invoked directly from main, but when I put the commands in the place where the on-board LED is switched on and off, it hangs at digitalLeds_updatePixels(strand);. I have tested with putting the command gpio_set_level(LED_PORT, 1); in several places. If it is before the updatePixels call, the onboard LED switches on, but not afterwards. You can see my very slight modifications in https://github.com/TAKeanice/esp32-homekit/tree/with_sk6812, more specifically in commit https://github.com/TAKeanice/esp32-homekit/commit/0a227f34de631f4a946343dee51ad87f39457382.

I did not have the time yet to get the serial port log, as I am not yet very familiar with programming the ESP32 and in general, programming a device attached to a serial port.

Thanks in advance for your ideas!

TAKeanice commented 6 years ago

Ok forget it, the show effect made it work.