esp32 c3 的hardwareSerial库不能用,串口不能收发
Activity
BG2CRW commentedon Jun 5, 2021
代码如下:
HardwareSerial mySerial1(1);
void setup() {
mySerial1.begin(115200, SERIAL_8N1, 5, 18); //rx:5,tx:18
}
void loop() {
mySerial1.println("hello world");
delay(1000);
}
lbernstone commentedon Jun 5, 2021
Yes. HardwareSerial needs to be rewritten to use the new driver/hal.
VojtechBartoska commentedon Jun 7, 2021
@BG2CRW Please keep your issue in English here.
lengbuyu commentedon Jun 9, 2021
@VojtechBartoska
He's mean is
ESP32 C3 can't use HardwareSerial Library, the serial port cannot receive and send.
Code:
HardwareSerial mySerial1(1);
void setup() {
mySerial1.begin(115200, SERIAL_8N1, 5, 18); //rx:5,tx:18
}
void loop() {
mySerial1.println("hello world");
delay(1000);
}
Just help translate.
lybgo commentedon Aug 3, 2021
When can we solve this problem?
I have products that also need to use Serial1 communication
SuGlider commentedon Aug 3, 2021
It's currently under work through a complete refactoring.
I'll post here a PR in a couple weeks.
Implements UART SerialHardware Refactoring on top of IDF (#5549)
1 remaining item