After a bunch of experiments with the keyboard, I don't see any means to detect whether the keyboard is attached at boot or not. Unfortunately, the keyboard MCU uses an interrupt to indicate when the keyboard state changes, but when the keyboard MCU is powered on it always generates 4 interrupts regardless of whether the keyboard is present. Attaching or removing the keyboard causes it to spew out either an even or odd number depending on whether attached or removed, correcting the state.
=> More informations about this toot | View the thread | More toots from CalcProgrammer1@mastodon.social
text/gemini
This content has been proxied by September (3851b).