-
-
Notifications
You must be signed in to change notification settings - Fork 39.6k
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
Add ST7565 LCD driver #13089
Add ST7565 LCD driver #13089
Conversation
Nice! I'll try playing around with it. :) |
There's a kind of big hurdle here... drivers/chibios/spi_master.c doesn't compile for K20x... Their USART has basically the same issue, but I had to write a custom serial driver when porting split_common anyway, due to the Infinity using one USART port on the master and another on the slave, so I got around that there. Edit: The changes I made to test this are here: https://github.com/firetech/qmk_firmware/tree/st7565_test |
@firetech I'm in the process of overhauling the serial driver in #13081 and making the driver less stm32 specific would be great. From what I see in your code the serial_config, assigned serial driver and some hooks into the side specific init code would have to be configurable right? Feel free to chime in the serial PR :-) |
The Where they differ is in the So, the config from the uGFX template can basically be transplanted in with an ifdef, with some other tweaks. I'll give it a try tomorrow to see if it compiles and draft a PR, but I don't have any Kinetis devices on hand to test. |
Ping me in a draft PR or just on Discord and I'll be happy to test :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some minor mistakes in the documentation.
Co-authored-by: Joakim Tufvegren <[email protected]>
One thing I would like to request (but not sure how/if it should be implemented) is some form of user/kb callback in |
How's this? |
Great! ❤️ I'm going to spend some of my weekend porting over my keymap's display code (based on quantum/visualizer) to this to see if I can get myself a uGFX-less daily driver firmware. 🙂 |
A slightly more philosophical question... Currently, a default build of Ergodox Infinity has a visualizer implemented (even for other keymaps than the default). Should, for this reason, a default (weak) For comparison, how are keyboards with OLEDs handled in the configurator? |
They're not. The Configurator generates its own keymap rather than using the |
Co-authored-by: Joakim Tufvegren <[email protected]>
Co-authored-by: Joakim Tufvegren <[email protected]>
I've now finalized my keymap implementation of this, here. Changing from Visualizer to this more or less quadrupled my matrix scan rate. 😄 I have a separate branch of just the keyboard-level changes, and intend to make a PR out of that. The dependency tree has become quite horrible, though. It more or less depends on both this, your SPI for Kinetis PR and my not yet submitted split_common PR, which in turn depends on my LED Matrix PR and two other PRs related to split_common and serial... Should I wait for all the required PRs to be merged before submitting each PR? 🤔 |
If it doesn't compile without these PRs, then yeah, it may have to wait. |
The ST7565 migration of Ergodox Infinity basically only needs this PR now to compile, but it doesn't make much sense to merge it without merging the LED Matrix migration first (mostly because those PR's would conflict otherwise). When this and #9657 have been merged, I'll submit a PR for migrating Ergodox Infinity over to this driver. The split_common migration can wait, since it's already waiting for two other PRs. Doing it in that order also removes the need for some code I added to sync the visualizer over split_common, which might be a plus. 😛 |
Co-authored-by: Joakim Tufvegren <[email protected]>
Co-authored-by: Joakim Tufvegren <[email protected]>
Co-authored-by: Joakim Tufvegren <[email protected]>
Co-authored-by: Joakim Tufvegren <[email protected]>
Description
One more step towards eliminating uGFX. Adapted from the SSD1306/OLED driver. Tested on Proton-C but should work on AVR as well.
@firetech
Types of Changes
Issues Fixed or Closed by This PR
Checklist