TeXitoi / keyberon

A rust crate to create a pure rust keyboard firmware.
MIT License
1.08k stars 79 forks source link

Add DirectPinMatrix for diodeless keyboards #92

Closed dariogoetz closed 2 years ago

dariogoetz commented 2 years ago

I used a ´DirectPinMatrix´ for my firmware for the Cantor. It assumes that each switch is directly attached to an individual pin instead of using a row/column matrix.

I thought, I'd offer the code as it may be of interest for others, too.

TeXitoi commented 2 years ago

Thanks

camrbuss commented 2 years ago

As another option, you can just use the matrix with direct pins in a 1x? configuration.

https://github.com/camrbuss/pinci/blob/main/firmware/src/main.rs

dariogoetz commented 2 years ago

Yes, that would work, too, but I like thinking of the switches as in a matrix. And you don't need to define a "virtual" output pin that is not actually used.