🤖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

    Scheduled Pinned Locked Moved Cores
    2 Posts 2 Posters 3.5k Views
    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 Offline
      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 Offline
        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

        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
        • First post
          Last post