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

    AtomS3 lite uart G1 G2

    Atom
    2
    2
    54
    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.
    • X
      xgonc
      last edited by

      Hello,
      In AtomS3 lite, I want to use the exposed G1 G2 pins as a UART in Arduino environment.
      How can I setup the serial port?

      Thanks.

      kurikoK 1 Reply Last reply Reply Quote 0
      • kurikoK
        kuriko @xgonc
        last edited by kuriko

        @xgonc

        SoftwareSerial mySerial(1, 2);
        
        void setup() {
          mySerial.begin(115200);
        }
        
        void loop() {
          mySerial.write("Hello world!");
        }
        

        Good morning, and welcome to the Black Mesa Transit System.

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