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

    Anyone using PlatformIO? Unable to get serial terminal to work.

    Arduino
    arduino
    3
    4
    1.8k
    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.
    • LukeSL
      LukeS
      last edited by

      Does anyone here use platform IO? I am unable to get the serial monitor to see what I print to the serial monitor. Anyone else have this issue?

      Main.cpp

      #include <Arduino.h>
      #include <M5Unified.h>
      
      int counter1 = 0;
      
      void setup() {
        auto cfg = M5.config();
        M5.begin(cfg);
        delay(500);
      
        M5.Display.setTextSize(2);
      }
      
      void loop() {
        M5.update();
      
        M5.Display.setCursor(0, 20);
        M5.Display.print("C1: ");
        M5.Display.print(counter1);
      
        Serial.println(counter1);
        delay(200);
      
        counter1++;
      }
      

      Platform.ini

      [env:m5stack-atoms3]
      platform = espressif32
      board = m5stack-atoms3
      framework = arduino
      monitor_speed = 115200
      monitor_rts = 0
      monitor_dtr = 0
      monitor_raw = yes
      lib_deps = m5stack/M5Unified@^0.1.13
      
      teastainT 1 Reply Last reply Reply Quote 0
      • teastainT
        teastain @LukeS
        last edited by

        @lukes In Arduino IDE you need to set the comm settings to USB CDC on Boot "Enabled", with S3 boards.

        Cheers, Terry!

        100% M5Stack addict with several drawers full of product!

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

          Hello @LukeS

          please see this thread for a solution.

          Thanks
          Felix

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

          1 Reply Last reply Reply Quote 1
          • LukeSL
            LukeS
            last edited by

            Thanks guys adding the build flags fixed the blank serial terminal in PlatformIO.

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