-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Closed
Labels
Peripheral: UARTRelated to the UART peripheral or its functionality.Related to the UART peripheral or its functionality.Status: Review neededIssue or PR is awaiting reviewIssue or PR is awaiting review
Milestone
Description
Using, for instance, ESP32S3 GPIO 43 and/or GPIO44 for OneWire:
GPIOs 43 and 44 are default UART pins.
The issue seems related to being able to detach the GIPOs 43 and 44 from IO Mux and UART.
The execution of Serial0.end()
shall do it, but I read the code again and realized that because, it has never been initialized, it also doesn't run the code to detach the IO MUX.
Therefore, @teastainGit, please try you code in this way:
void setup() {
// Serial0 is the UART0 when the S3 CDC is enabled
Serial0.begin(115200); // this will initialize the UART with GPIOs 43 and 44, marking those pins to be detached
Serial0.end(); // this will detach GPIOs 43 and 44
// code as usual...
Serial.begin();
delay(200);
Serial.println(" setup ");
delay(200);
sensors.begin();
}
Originally posted by @SuGlider in #8324 (comment)
hinathan
Metadata
Metadata
Assignees
Labels
Peripheral: UARTRelated to the UART peripheral or its functionality.Related to the UART peripheral or its functionality.Status: Review neededIssue or PR is awaiting reviewIssue or PR is awaiting review
Type
Projects
Status
Done