ESP32-S3 Fast GPIO using GPIO.out_w1ts
Posted: Mon May 23, 2022 2:42 pm
I need to toggle a GPIO pin as fast as I can.
Using gpio_set_level() is just to slow. I ran across the following, and wanted to try it but the GPIO pin I want to use is 46.
How do yo do the following on the S3 higher than 31 ?
//This can only be used when the IO_PIN_Number is 0-31
//Use GPIO.out_w1ts = ((uint32_t)1 << IO_PIN_Number); to set the pin high
//Use GPIO.out_w1ts = ((uint32_t)1 << IO_PIN_Number); to set the pin low
Using gpio_set_level() is just to slow. I ran across the following, and wanted to try it but the GPIO pin I want to use is 46.
How do yo do the following on the S3 higher than 31 ?
//This can only be used when the IO_PIN_Number is 0-31
//Use GPIO.out_w1ts = ((uint32_t)1 << IO_PIN_Number); to set the pin high
//Use GPIO.out_w1ts = ((uint32_t)1 << IO_PIN_Number); to set the pin low