给 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 19:35:06 +08:00 波特率设置对了吗 |
![]() | 3 amwyyyy 2021-11-01 09:37:44 +08:00 不至于串口都没打印,正常烧录了吗,跑个 helloworld 试试先。 |
![]() | 5 sonders OP @amwyyyy 烧录的话,我有看过一个文章,说是在出现 connect...___...的时候按下 en 键,但是我每次按烧录就直接停掉了 |
![]() | 6 Rapisurazuri 2021-11-01 09:55:26 +08:00 via Android @sonders 我记得如果 esp32 带 ch340g 的话,不需要手动 reset ,直接烧录就可以 |
![]() | 8 sonders OP @Rapisurazuri 没有 reset ,都是直接烧录的,但是就是串口没打印,扫描也扫描不到 |
12 theqiang 2021-11-01 15:16:39 +08:00 via Android 买的哪家的,我买的 tb 上某家的有个技术群,里面大佬挺多。你问问卖家有没有群 |
14 llkhsfy 2021-11-18 00:14:21 +08:00 via iPhone 确定正常烧录完毕吗 |