Skip to content
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

Solution for using with ESP #33

Open
GuyIUT opened this issue Sep 23, 2024 · 0 comments
Open

Solution for using with ESP #33

GuyIUT opened this issue Sep 23, 2024 · 0 comments

Comments

@GuyIUT
Copy link

GuyIUT commented Sep 23, 2024

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));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant