Xinyuan-LilyGO / T-Deck

191 stars 43 forks source link

Keyboard interrupt #9

Closed mkellner closed 10 months ago

mkellner commented 10 months ago

Is the keyboard interrupt pin connected?

Does it register high or low when a key has been pressed?

mischief commented 10 months ago

hi,

Is the keyboard interrupt pin connected?

yes.

i did some experiments with this. in the schematic, the pin labeled C3 INT is connected from GPIO8 on the esp32c3 to GPIO46 on the esp32s3.

in my fork i have a branch where i pulse GPIO8 when there's keyboard data on the esp32c3, and use that to trigger i2c reads on the esp32s3: https://github.com/mischief/Xinyuan-LilyGO-T-Deck/compare/master...mischief:Xinyuan-LilyGO-T-Deck:kbint?expand=1

Does it register high or low when a key has been pressed?

it does whatever you program it to do on the esp32c3 side :slightly_smiling_face:

mkellner commented 10 months ago

I am working on an SDK for esp32 devices and would like to know if it is enabled as shipped.

It is easy for beginners to program the T-Deck from the USB port, but to force them to program the keyboard esp32c3 may be a stretch too far for some.

Do we know if the interrupt pin is enabled by default on the shipping product?

mischief commented 10 months ago

hi,

Do we know if the interrupt pin is enabled by default on the shipping product?

no. it's not the default today.

mkellner commented 10 months ago

Thank you.