I'm trying to use your wonderfull lib with m5stack lib on a M5stack "Fire".
When i try:
`
include "Lpf2Hub.h"
include
`
I have a lot of errors:
Arduino : 1.8.19 (Windows 10), Carte : "M5Stack-FIRE, Enabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 16MB (128Mb), 921600, Core 1, Core 1, None"
In file included from C:\Users\duval\Documents\Arduino\libraries\M5Stack\src/utility/In_eSPI_Setup.h:33,
from C:\Users\duval\Documents\Arduino\libraries\M5Stack\src/utility/In_eSPI.h:24,
from C:\Users\duval\Documents\Arduino\libraries\M5Stack\src/M5Display.h:7,
from C:\Users\duval\Documents\Arduino\libraries\M5Stack\src/M5Stack.h:108,
from C:\Users\duval\Desktop\test\test.ino:11:
C:\Users\duval\Desktop\test\test.ino: In function 'void loop()':
C:\Users\duval\Documents\Arduino\libraries\M5Stack\src/utility/ILI9341_Defines.h:39:29: error: invalid conversion from 'int' to 'Color' [-fpermissive]
#define GREEN 0x07E0 /* 0, 255, 0 */
^~~~~~
C:\Users\duval\Desktop\test\test.ino:62:28: note: in expansion of macro 'GREEN'
myTrainHub.setLedColor(GREEN);
^~~~~
In file included from C:\Users\duval\Desktop\test\test.ino:10:
C:\Users\duval\Documents\Arduino\libraries\Legoino\src/Lpf2Hub.h:72:26: note: initializing argument 1 of 'void Lpf2Hub::setLedColor(Color)'
void setLedColor(Color color);
~~~~~~^~~~~
In file included from C:\Users\duval\Documents\Arduino\libraries\M5Stack\src/utility/In_eSPI_Setup.h:33,
from C:\Users\duval\Documents\Arduino\libraries\M5Stack\src/utility/In_eSPI.h:24,
from C:\Users\duval\Documents\Arduino\libraries\M5Stack\src/M5Display.h:7,
from C:\Users\duval\Documents\Arduino\libraries\M5Stack\src/M5Stack.h:108,
from C:\Users\duval\Desktop\test\test.ino:11:
C:\Users\duval\Documents\Arduino\libraries\M5Stack\src/utility/ILI9341_Defines.h:41:29: error: invalid conversion from 'int' to 'Color' [-fpermissive]
#define RED 0xF800 /* 255, 0, 0 */
^~~~~~
C:\Users\duval\Desktop\test\test.ino:64:28: note: in expansion of macro 'RED'
myTrainHub.setLedColor(RED);
^~~
In file included from C:\Users\duval\Desktop\test\test.ino:10:
C:\Users\duval\Documents\Arduino\libraries\Legoino\src/Lpf2Hub.h:72:26: note: initializing argument 1 of 'void Lpf2Hub::setLedColor(Color)'
void setLedColor(Color color);
~~~~~~^~~~~
Plusieurs bibliothèque trouvées pour "SD.h"
Utilisé : C:\Users\duval\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.3\libraries\SD
Non utilisé : C:\Program Files (x86)\Arduino\libraries\SD
Plusieurs bibliothèque trouvées pour "WiFiClient.h"
Utilisé : C:\Users\duval\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.3\libraries\WiFi
Non utilisé : C:\Program Files (x86)\Arduino\libraries\WiFi
exit status 1
Erreur de compilation pour la carte M5Stack-FIRE
Ce rapport pourrait être plus détaillé avec
l'option "Afficher les résultats détaillés de la compilation"
activée dans Fichier -> Préférences.
It appears M5stack lib use const color with different type.
I'm trying to use your wonderfull lib with m5stack lib on a M5stack "Fire".
When i try: `
include "Lpf2Hub.h"
include
`
I have a lot of errors:
It appears M5stack lib use const color with different type.