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
Library compatibility problem #15
Comments
Hi @colas-sebastien ! Thanks for the hint. Can you copy me the compiler error and show me where the declaration in the M5Stack/Stick Library is? |
Hi @corneliusmunz ,
The output of the compiler:
|
Hi @colas-sebastien ! Thanks for sharing the code and warning 👍 . Now it is clear. The MStickC Lib had defined some preprocessor macros: This macros will be replacing all occurences of color names with the values on the right hand side. Now the question is if legoino or M5stickc lib should be changed 😄 I will think about how to overcome the problem. Maybe i use your proposel in renaming th colors. |
@colas-sebastien I have also opened an issue on the m5stick lib because there are namespaced color defines available and in my point of view the color defines which causes the problem could be replaced on the m5 side. |
OK thanks for that, |
Hi Cornelius,
My code that use you library is available on my github repo:
https://github.com/colas-sebastien/M5StickC-joystick-lego-powerup-batmobile
Regards,
Sébastien
|
@colas-sebastien Very cool! Do you have a short video? |
Hi,
The Legoino library is not compatible with the M5Stack / M5StickC Library due to re-declaration of colors.
I propose to rename the color in the library like that (file
Lpf2Hub.h
) :The text was updated successfully, but these errors were encountered: