lovyan launcher doesn't compile on M5Stack basic
-
Hi all,
arduino IDE 2.0.1 doesn't compile M5Stack_LovyanLauncher sketch with this error:
(this is only the "red" part of the output)In file included from C:\Users\Documents\Arduino\libraries\M5Stack_LovyanLauncher\LovyanLauncher\LovyanLauncher.ino:43: C:\Users\Documents\Arduino\libraries\M5Stack_LovyanLauncher\LovyanLauncher\src\WiFiWPS.h: In member function 'void WiFiWPS::wpsInitConfig()': C:\Users\Documents\Arduino\libraries\M5Stack_LovyanLauncher\LovyanLauncher\src\WiFiWPS.h:23:16: error: 'struct esp_wps_config_t' has no member named 'crypto_funcs' wps_config.crypto_funcs = &g_wifi_default_wps_crypto_funcs; ^~~~~~~~~~~~ C:\Users\Documents\Arduino\libraries\M5Stack_LovyanLauncher\LovyanLauncher\src\WiFiWPS.h:23:32: error: 'g_wifi_default_wps_crypto_funcs' was not declared in this scope wps_config.crypto_funcs = &g_wifi_default_wps_crypto_funcs; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C:\Users\Documents\Arduino\libraries\M5Stack_LovyanLauncher\LovyanLauncher\src\WiFiWPS.h: In member function 'virtual bool WiFiWPS::setup()': C:\Users\Documents\Arduino\libraries\M5Stack_LovyanLauncher\LovyanLauncher\src\WiFiWPS.h:100:37: error: no matching function for call to 'onEvent(void (&)(arduino_event_id_t, system_event_info_t))' onevent = WiFi.onEvent(WiFiEvent); ^ In file included from C:\Users\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5\libraries\WiFi\src/WiFiSTA.h:28, from C:\Users\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5\libraries\WiFi\src/WiFi.h:32, from c:\Users\Documents\Arduino\libraries\M5Stack_TreeView\src/MenuItemWiFiClient.h:4, from C:\Users\Documents\Arduino\libraries\M5Stack_LovyanLauncher\LovyanLauncher\LovyanLauncher.ino:31: C:\Users\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5\libraries\WiFi\src/WiFiGeneric.h:159:21: note: candidate: 'wifi_event_id_t WiFiGenericClass::onEvent(WiFiEventCb, arduino_event_id_t)' <near match> wifi_event_id_t onEvent(WiFiEventCb cbEvent, arduino_event_id_t event = ARDUINO_EVENT_MAX); ^~~~~~~ C:\Users\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5\libraries\WiFi\src/WiFiGeneric.h:159:21: note: conversion of argument 1 would be ill-formed: In file included from C:\Users\Documents\Arduino\libraries\M5Stack_LovyanLauncher\LovyanLauncher\LovyanLauncher.ino:43: C:\Users\Documents\Arduino\libraries\M5Stack_LovyanLauncher\LovyanLauncher\src\WiFiWPS.h:100:37: error: invalid conversion from 'void (*)(arduino_event_id_t, system_event_info_t)' to 'WiFiEventCb' {aka 'void (*)(arduino_event_id_t)'} [-fpermissive] onevent = WiFi.onEvent(WiFiEvent); ^ In file included from C:\Users\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5\libraries\WiFi\src/WiFiSTA.h:28, from C:\Users\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5\libraries\WiFi\src/WiFi.h:32, from c:\Users\Documents\Arduino\libraries\M5Stack_TreeView\src/MenuItemWiFiClient.h:4, from C:\Users\Documents\Arduino\libraries\M5Stack_LovyanLauncher\LovyanLauncher\LovyanLauncher.ino:31: C:\Users\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5\libraries\WiFi\src/WiFiGeneric.h:161:21: note: candidate: 'wifi_event_id_t WiFiGenericClass::onEvent(WiFiEventSysCb, arduino_event_id_t)' <near match> wifi_event_id_t onEvent(WiFiEventSysCb cbEvent, arduino_event_id_t event = ARDUINO_EVENT_MAX); ^~~~~~~ C:\Users\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5\libraries\WiFi\src/WiFiGeneric.h:161:21: note: conversion of argument 1 would be ill-formed: In file included from C:\Users\Documents\Arduino\libraries\M5Stack_LovyanLauncher\LovyanLauncher\LovyanLauncher.ino:43: C:\Users\Documents\Arduino\libraries\M5Stack_LovyanLauncher\LovyanLauncher\src\WiFiWPS.h:100:37: error: invalid conversion from 'void (*)(arduino_event_id_t, system_event_info_t)' to 'WiFiEventSysCb' {aka 'void (*)(arduino_event_t*)'} [-fpermissive] onevent = WiFi.onEvent(WiFiEvent); ^ Multiple libraries were found for "SD.h" Used: C:\Users\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5\libraries\SD Not used: C:\Users\AppData\Local\Arduino15\libraries\SD exit status 1 Compilation error: 'struct esp_wps_config_t' has no member named 'crypto_funcs'all the libraries are up to date....
I could upload the code with M5burner, but I need to modify the clock of the sd card in M5Stack.cpp from 40Mhz to 10Mhz to work with M5stack basic....
some tips?
tnks a lot
-
nobody?!?!
-
@lovyan03 are you still here?
-
yes!!
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login