You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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);
The text was updated successfully, but these errors were encountered:
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()
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);
The text was updated successfully, but these errors were encountered: