
给 ESP32 通电,烧录程序后,按下 EN 键,串口调试中并没有正常打印文本,手机蓝牙扫描也扫描不出蓝牙,搜索不出问题答案,跑来 V2 试试。
不太懂这些,就是想玩一下。
代码部分:
#include <Arduino.h> #include <BluetoothSerial.h> BluetoothSerial SerialBT; void setup() { Serial.begin(115200); SerialBT.begin("ESP32"); Serial.printf("satrt 蓝牙 \r\n"); // put your setup code here, to run once: } void loop() { if(Serial.available()) { SerialBT.write(Serial.read()); } if(SerialBT.available()) { Serial.write(SerialBT.read()); } delay(1); // put your main code here, to run repeatedly: } 1 weicoder 2021 年 10 月 31 日 波特率设置对了吗 |
3 amwyyyy 2021 年 11 月 1 日 不至于串口都没打印,正常烧录了吗,跑个 helloworld 试试先。 |