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

    M5StickC-Plus Screen "Flash" on Startup

    Scheduled Pinned Locked Moved Arduino
    1 Posts 1 Posters 2.2k Views 1 Watching
    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.
    • W Offline
      wsanders
      last edited by wsanders

      If you run the following trivial program, you will notice that the screen "flashes" with uninitialized data at startup.

      #include <M5StickCPlus.h>
      // DANGER WILL ROBINSON: This sketch turns the device off. To upload,
      // turn the device on as soon as you see "Connecting..." in the IDE.
      // Otherwise the device isn't on when you try to upload to it!
      void setup() {
      M5.begin();
      // This does not minimize the beightness of the "flash"
      // M5.Axp.ScreenBreath(7);
      M5.Lcd.fillScreen(BLACK);
      }
      void loop() {
      M5.Lcd.setTextSize(3);
      M5.Lcd.println("BYE");
      delay(5000);
      M5.Axp.PowerOff();
      }

      Is there a way to avoid this "flash"? This is probably a bug in M5.begin(), one would want to initialize the screen memory before turning the LCD on.

      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