Mixiaoxiao / Arduino-HomeKit-ESP8266

Native Apple HomeKit accessory implementation for the ESP8266 Arduino core.
MIT License
1.51k stars 277 forks source link

do not compile #172

Closed AugustinMauroy closed 2 years ago

AugustinMauroy commented 2 years ago

Arduino-HomeKit-ESP8266-master/examples/legacy/simple_led/simple_led_accessory.c: In function 'led_update': simple_led_accessory.c:67:13: error: 'PWMRANGE' undeclared (first use in this function) 67 | int pwm = PWMRANGE - (int) (led_bri 1.0 PWMRANGE / 100.0 + 0.5f);

kuznetsov-m commented 2 years ago

This issue has nothing to do with this project. However, I decided to try redefining the PWMRANGE variable. I just added a declaration int PWMRANGE = 1023; to the method led_update()

https://github.com/Mixiaoxiao/Arduino-HomeKit-ESP8266/issues/162

AugustinMauroy commented 2 years ago

thanks