-
Notifications
You must be signed in to change notification settings - Fork 281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PWMRANGE error #162
Comments
Guys, I have the same problem.
This issue has nothing to do with this project. However, I decided to try redefining the PWMRANGE variable.
This is a very dirty solution. But it allowed me to compile the example. |
Con esta corrección me ha funcionado, el problema es que al poner el 100% de brillo se apaga, y al poner 0% se enciende del todo, alguien sabe algo? en definitiva funciona del revés Lecturas monitor serie: (en este estado la barrita esta la luz al 0% de brillo, pero se enciende del todo) |
This is due to an old reference, for the esp8266 library that was since updated. In the default library this was set to the upstream value of 255: |
Hi. I'm trying to use example simple_led and the only thing I changed was SSID name and password. When I'm uploading, I'm getting this error:
C:\Users\kacpe\AppData\Local\Temp\arduino_modified_sketch_215244\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);
| ^~~~~~~~
C:\Users\kacpe\AppData\Local\Temp\arduino_modified_sketch_215244\simple_led_accessory.c:67:13: note: each undeclared identifier is reported only once for each function it appears in
exit status 1
'PWMRANGE' undeclared (first use in this function)
I'm using correct Port and Board settings (it's working with other sketches)
The text was updated successfully, but these errors were encountered: