Confusing M5Core2 Initialization
-
Here is my INIT code in Arduino:
M5.begin();
M5.Lcd.print("IOT DEVICE MONITOR");
WiFi.begin(ssid, pass); //connect to WiFi
delay(2000);
Serial.begin(115200);
Serial.println("IOT DEVICE MONITOR");The response is:
M5Core2 initializing...axp: vbus limit off
axp: gpio1 init
axp: gpio2 init
axp: rtc battery charging enabled
axp: esp32 power voltage was set to 3.35v
axp: lcd backlight voltage was set to 2.80v
axp: lcd logic and sdcard voltage preset to 3.3v
axp: vibrator voltage preset to 2v
touch: FT6336 ready (fw id 0x10 rel 1, lib 0x300E)
OKThe first M5.Lcd.print is displayed, then we go no further, stopping at the "OK" message after FT6336.
About one in 10x it works correctly. What is missing here? -
Hello @rmetzner49
try without the extra
Serial.begin(115200). By default Serial gets already initialized when theM5.begin()function is called. I've seen things go wrong before when Serial is initialized twice.Thanks
Felix
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