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

    Serial trouble at startup with TimerCamX and Arduino

    Scheduled Pinned Locked Moved Arduino
    arduino
    1 Posts 1 Posters 1.9k Views
    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.
    • J Offline
      jarkman
      last edited by

      I'm having wierd trouble with serial debug output with a TimerCamX in the Arduino IDE - serial output sent early in the run is lost, replaced with a string of box characters:

      0_1711996630376_88085b03-8889-4982-9a91-3d2c5251588e-image.png

      This is from a demo made from Blink, for simplicity, but my more complex sketch suffers the same problem. I'm running Arduino IDE 2.3.2 with M5Stack 2.1.1, building for M5Stack-Timer-Cam.

      Here's the demo code:

      void setup() {
      // initialize digital pin LED_BUILTIN as an output.
      pinMode(LED_BUILTIN, OUTPUT);

      Serial.begin(9600);

      Serial.println("Starting 1");

      while (!Serial) {
      ; // wait for serial port to connect. Needed for native USB
      }

      Serial.println("Starting 2");

      delay(1000);

      Serial.println("Starting 3");

      }

      // the loop function runs over and over again forever
      void loop() {
      digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
      delay(1000); // wait for a second
      digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
      delay(1000);
      Serial.println("loop"); // wait for a second
      }

      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