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
Currently, the library available on the Seedstudio website cannot be used for the ESP32 board with the Arduino IDE. When we try to compile all the examples, many errors appear on the min and max functions in Grove_LED_bar.cpp.
I have solve all the problems by implementing parameter casting (in bold) in the function call. This file must be modified as follows:
line 97 level = max(0, min(10, (int) level));
line 117 led = max(1, min(10, (int) led));
line118 brightness = max(0, min((int) brightness, 1));
line 138 led = max(1, min(10, (int) led));
The text was updated successfully, but these errors were encountered:
Currently, the library available on the Seedstudio website cannot be used for the ESP32 board with the Arduino IDE. When we try to compile all the examples, many errors appear on the min and max functions in Grove_LED_bar.cpp.
I have solve all the problems by implementing parameter casting (in bold) in the function call. This file must be modified as follows:
line 97 level = max(0, min(10, (int) level));
line 117 led = max(1, min(10, (int) led));
line118 brightness = max(0, min((int) brightness, 1));
line 138 led = max(1, min(10, (int) led));
The text was updated successfully, but these errors were encountered: