🤖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

    Arduino
    arduino
    1
    1
    856
    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
      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
      • First post
        Last post