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

    Uploading to M5STACK BASIC DevKit

    Cores
    2
    6
    6.2k
    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.
    • V
      vibi27
      last edited by vibi27

      Hi,
      I've got a black M5STACK BASIC DevKit from amazon today.
      Expected to see a SubCATEGORIES "M5Stack core" or "M5Stack Black" on this forum.
      I'm developping on WIN10, using PlatformIO, latest M5STACK lib (with this platformio.ini:
      [env:m5stack-core-esp32]
      platform = espressif32
      board = m5stack-core-esp32
      framework = arduino

      Tried some examples, with no success (black screen).

      Uploaded successfully first program:
      #include <M5stack.h>

      void setup() {
      M5.begin(true, false, true); // Cause no SD card inside
      M5.Lcd.print("Hello Vince");
      }

      void loop() {
      M5.update();
      }

      Then tried this program:
      #include <M5stack.h>

      void setup() {
      M5.begin(true, false, true); // Cause no SD card inside
      M5.Lcd.fillScreen(WHITE);
      M5.Lcd.setCursor(100, 100);
      M5.Lcd.setTextColor(RED);
      M5.Lcd.setTextSize(5);
      M5.Lcd.print("Hello Vince");
      }

      void loop() {
      M5.update();
      }

      Unfortunatly, the second program always displays same as the first program (white text on black screen)
      My programming method is simple: click the "PlatformIO: upload" button, wait for percentage progress, and look at the screen.

      Am I missing something ?

      Second question: with this M5Stack-Black, do I need to call M5.Power.begin() after M5.begin(), and what are the consequences if I do not ?

      Thanks for your responses

      1 Reply Last reply Reply Quote 0
      • V
        vibi27
        last edited by

        Same code works on Arduino IDE 1.8.10
        Also tried to remove .pio/build directory to force a full rebuild on Platformio, with no success.

        1 Reply Last reply Reply Quote 0
        • V
          vibi27
          last edited by

          With updated versions it works well know.
          For the record here are the different versions involved:
          OS: Windows 10 64 bits
          Latest USB driver (CP2104 installed by ArduinoIDE 1.8.10 if I remember well) for ESP32.
          IDE: VisualStudioCode V1.41.1 with PlatformIO
          Espressif 32 V1.11.1
          M5Stack 0.2.9
          PACKAGES: toolchain-xtensa32 2.50200.80 (5.2.0), framework-arduinoespressif32 2.10004.191002 (1.0.4), tool-esptoolpy 1.20600.0 (2.6.0), tool-mkspiffs 2.230.0 (2.30)

          Platformio.ini flags:
          [env:m5stack-core-esp32]
          platform = espressif32
          board = m5stack-core-esp32
          framework = arduino
          monitor_speed=115200
          #upload_port =COM6
          upload_speed=921600

          1 Reply Last reply Reply Quote 0
          • V
            vibi27
            last edited by

            I don't know how to edit the title to put [SOLVED] into it.

            M 1 Reply Last reply Reply Quote 0
            • M
              macsbug @vibi27
              last edited by macsbug

              This post is deleted!
              M 1 Reply Last reply Reply Quote 0
              • M
                macsbug @macsbug
                last edited by macsbug

                This post is deleted!
                1 Reply Last reply Reply Quote 0
                • First post
                  Last post