zmkfirmware / zmk

ZMK Firmware Repository
https://zmk.dev/
MIT License
2.79k stars 2.82k forks source link

Does ZMK support Hall Effect Sensor based Hardware? #2096

Closed SnappierSoap318 closed 10 months ago

SnappierSoap318 commented 10 months ago

can I use ZMK for an Analog Hall effect sensor-based keyboard using the Arduino ESP32-S3?

joelspadin commented 10 months ago

There's no reason it couldn't be supported if you write a new key scan driver for it, but there is not currently any support for Hall effect keyboards. Also note that https://docs.zephyrproject.org/latest/boards/xtensa/esp32s3_devkitm/doc/index.html does not list the radio as a supported feature, so I'm not sure if Zephyr supports wireless on that controller yet.

(You could also ask on the Discord server. The only people watching the issues here are the code maintainers.)

SnappierSoap318 commented 10 months ago

Arduino Nano ESP32-S3 does have Wifi and BLE, so i might need to figure out a way to add that as well. ahh thanks!

myst729 commented 5 months ago

@SnappierSoap318 Any updates? Would like to try magnetic switches too.

I found there is a pre-defined macro HID_USAGE_SENSORS_MECHANICAL_HALL_EFFECT_SWITCH but doesn't seem to be used anywhere.

gideontonkinson commented 3 months ago

@joelspadin I'm interested contribuitng or forking the repo and creating the key scanner driver and I need to get familiar with the ZMK project, so do you have any hints on where to get started with that? If not I'll work through it and find it eventually. @myst729 if I get anywhere on it and especially if I finish it I'll come back here and let yah know.

joelspadin commented 3 months ago

The existing key scan drivers are defined at https://github.com/zmkfirmware/zmk/tree/main/app/module/drivers/kscan. Reading up on Zephyr drivers would also help.