最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

arduino ide - esp32 board wont Serial.print() on the serial monitor - Stack Overflow

programmeradmin4浏览0评论

So I recently wanted to set up two way comm betwen two esp32-C3-mini-1 v1.1 boards and one of them is connected to a lcd screen, they both work and I can uplod new code on them and the one connected to he lcd screen prints everything on the lcd as expected. The Arduino ide CRC option is enabled and baudrate, port is correct. But they both wont print anything with Serial.print(). And the cable does transfer data. The code should work but serial monitor only spits out the rebot logs of the esp32 when presing the rst button.

#include <WiFi.h>

void setup() {
  Serial.begin(115200);
  delay(1000);  // Allow time for Serial Monitor to open

  Serial.print("MAC Address: ");
  Serial.println(WiFi.macAddress());  // Get and print the MAC address
}

void loop() {}

for the board to print on the serial Monitor: MAC Address: *insert mac boards mac adress

发布评论

评论列表(0)

  1. 暂无评论