-
-
Notifications
You must be signed in to change notification settings - Fork 39.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MidEvil keyboard support #22259
base: master
Are you sure you want to change the base?
MidEvil keyboard support #22259
Conversation
Does the code work? Like, the exact same files on the PR
|
Yes, it compiles and works on my keyboard. Here's a video: https://imgur.com/a/JDhwkuG I basically just followed the documentation for quantum painter, and used the handwired onekey lvgl code as an example: Isn't the driver defined in
And the pins defined when calling |
I mean the SPI driver (hardware on the RP to emit such protocol), as the MCU has two of them and it needs to be setup. As per pins, the example you linked uses SPI_SCK_PIN (and same for MISO and MOSI), which as you can see arent used on the |
I think I understand. I made another commit to fix the defines. Tested the code again to make sure it compiles and works with the keyboard. Not sure why it was fine before the fix. Also, the display doesn't use a MISO pin, which should be fine according to the QP docs:
If it has to be used, I don't have any extra pins I left on my Pi Pico. Can it be left unassigned, or can I assign a bogus value? |
Will be fine with the changes on develop for the SPI code, you can change the target branch. And you'd then set it to NO_PIN |
The defaults are somewhat hidden:
#if !defined(SPI_DRIVER)
# define SPI_DRIVER SPID0
#endif
#if !defined(SPI_SCK_PIN)
# define SPI_SCK_PIN GP18
#endif
#if !defined(SPI_MISO_PIN)
# define SPI_MISO_PIN GP20
#endif
#if !defined(SPI_MOSI_PIN)
# define SPI_MOSI_PIN GP19
#endif So the default |
I would maybe add some way for user to disable the animation being done by the keyboard-level file. And a few keys on the JSON have too many decimal places (precision will be lost when drawing, and doesnt need to be 100% perfect anyway). Other than that... Looks good to me |
Can I instead set QUANTUM_PAINTER_DISPLAY_TIMEOUT = 30000 so that it turns off automatically? |
That wouldn't help at all.
|
I've added a way to toggle the animation with a keypress |
Thank you for your contribution! |
Awaiting review |
Thank you for your contribution! |
Co-authored-by: Drashna Jaelre <[email protected]>
Thank you for your contribution! |
Thank you for your contribution! |
Please review |
Thank you for your contribution! |
Co-authored-by: Joel Challis <[email protected]>
Description
Support for MidEvil keyboard PCB
Types of Changes
Checklist