给 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:
}