Page 1 of 1

I2C pins as interrupt pins to trigger in and out of sleep mode

Posted: Sat Jan 06, 2024 12:44 pm
by gkeep01
Hi All,

Does anyone know if its possible to use I2C pins for both I2C as well as digial input pins at times when its not being used for I2C communication? and to add another spanner into the works can it be a rising interrupt when in sleep mode?

It's cool if i have to reassign pin modes on the fly.

I was hoping to use I2C but also use another toggle switch to put the ESP32 into sleep mode by grounding either pin 21 or 22 and doing a digital read on these pins. Is this possbile? also I'd like to wake up the ESP32 once the toggle has released ground. I'd use another pin but my project has consumed all the pins.

cheers,

G