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

    M5 AtomS3 Lite And Arduino Serial Monitor

    Arduino
    2
    3
    1.4k
    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.
    • A
      Abraxas
      last edited by

      So, I'm not sure what is going on or if I'm doing something wrong here, but I'm looking to troubleshoot an M5 AtomS3 Lite (via USB) using the Arduino's built in serial monitor on my Mac.

      I have some simple code shown below to test the serial monitor output but no data is being displayed despite a successful upload and run by the M5 AtomS3 Lite. Any help or suggestions here would be great.

      #include "M5AtomS3.h"
      
      void setup() 
      {
        AtomS3.begin(true);
        AtomS3.dis.setBrightness(100);
        AtomS3.dis.drawpix(0x0000ff);
        AtomS3.update();
        Serial.println("Click BtnA to Test");
      }
      
      void loop() 
      {
        AtomS3.update();
        if (AtomS3.BtnA.wasPressed()) 
        {
          AtomS3.dis.drawpix(0xff0000);
          AtomS3.update();
          Serial.println("Pressed");
        }
        if (AtomS3.BtnA.wasReleased()) 
        {
          AtomS3.dis.drawpix(0x00ff00);
          AtomS3.update();
          Serial.println("Released");
        }
      }
      
      1 Reply Last reply Reply Quote 0
      • felmueF
        felmue
        last edited by

        Hello @Abraxas

        please check out this thread.

        Thanks
        Felix

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

        1 Reply Last reply Reply Quote 0
        • A
          Abraxas
          last edited by

          @felmue thank you for making me aware of that thread! The information contained within worked like a charm!

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