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

gkeep01
Posts: 2
Joined: Tue Nov 01, 2022 6:28 am

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

Postby gkeep01 » Sat Jan 06, 2024 12:44 pm

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

Who is online

Users browsing this forum: No registered users and 68 guests