🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    M5Stack BASIC - screen turns off when Serial.begin used

    Cores
    2
    2
    2.9k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      DavidoZ
      last edited by

      Hi
      I couldn't find solution for my problem anywhere here. I'm playing with CORE + SIM7600 to receive SMS and facing weird problem. Everything works, until I call Serial.begin(9600); in setup(). For example I can upload simple Hello World code and it works just fine. But when I add Serial declaration in code, text shows up for a half of second and screen turns off. I really limited this to minimum and still can't find out what's wrong. Thank you for your help.

      #include <M5Stack.h>

      void setup(){
      M5.begin();
      M5.Power.begin();
      M5.Lcd.print("Hello World");
      Serial.begin(115200);
      }

      void loop() {
      }

      1 Reply Last reply Reply Quote 0
      • felmueF
        felmue
        last edited by

        Hello @DavidoZ

        why don't you try the provided example?

        Strictly Serial.begin() isn't needed in setup() as M5.begin() already takes care of that. And for the communication with the SIM7600 you'll need to open Serial2. See above example.

        Thanks
        Felix

        GPIO translation table M5Stack / M5Core2
        Information about various M5Stack products.
        Code examples

        1 Reply Last reply Reply Quote 0
        • First post
          Last post