發表文章

目前顯示的是有「arduino IDE」標籤的文章

#001 ESP32 UART0,1,2 with arduino IDE

圖片
I am following Mr. accent swiss' utube for ESP32 learning. I have update the ESP8266 support to 2.4 and the ESP32 support with latest json file as he mentioned in the film: I'm interested in multi-UART usage, I learned that there are 3 uarts on ESP32, one is used by USB for debugging, and Serial2 should be on IO16(RX) and IO17(TX), Serial1 is using IO12/IO13, according to his #152 video, IO12 is used internally for flash stuff, so if you try to use : HardwareSerial2(2) the the processor will crash. So I wish to do a test on it, I copied: HardwareSerial Serial1(1); HardwareSerial Serial2(2); void setup() { // put your setup code here, to run once: Serial.begin(115200); Serial1.begin(115200); Serial2.begin(115200); } void loop() { Serial.println("This message sent to USB serial"); Serial1.println("This message sent to UART1 serial1"); Serial2.println("This message sent to UART2 serial2"); delay(1000); } I down l...