-
-
Notifications
You must be signed in to change notification settings - Fork 40k
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
Fix QWIIC OLED for AVR #7769
Fix QWIIC OLED for AVR #7769
Conversation
@awkannan can you confirm ARM still works with these changes? |
Co-Authored-By: fauxpark <[email protected]>
#ifdef __AVR__ | ||
i2c_start(I2C_ADDRESS_SA0_1, 100); | ||
#else | ||
i2c_start(I2C_ADDRESS_SA0_1); | ||
#endif |
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.
I'm not a fan of this difference int API.
If anything, the i2c API should be unified, though that should be a separate PR, I think.
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.
+1 for separate PR
Any update on this @drashna? Still awaiting reviews for ARM boards I assume? |
Confirmed working fine on my local ARM board, so long as #8173 gets applied. |
While we're fixing this area of the code, can we get #ifndef LCDWIDTH
# define LCDWIDTH 64
#endif
#ifndef LCDWIDTH
# define LCDHEIGHT 48
#endif |
I've fixed the last incorrect uses of LCDWIDTH where LCDHEIGHT is wanted. Thanks @tzarc for testing this. |
Thanks! |
* Fix QWIIC OLED for AVR * Change missed width * width to width * height * Fix typo in comment Co-Authored-By: fauxpark <[email protected]> * Fix last incorrect uses of LCDWIDTH Co-authored-by: Ryan <[email protected]>
* 'master' of https://github.com/qmk/qmk_firmware: (108 commits) `send_unicode_string()`: Add support for code points > 0xFFFF (qmk#8236) [Keyboard] Add Wete (qmk#8229) Improvements to extrakey HID descriptors (qmk#8156) Hineybush h87a lock indicators (qmk#8237) Add VIA support for Prime_L (qmk#8233) Hub16 - Bug removal + clean up code (qmk#8227) [Keyboard] ai03 Equinox (qmk#8224) [Keyboard] Add zfrontier/big_switch (qmk#8205) Gingham Update (qmk#8225) A proper `send_string()` for the Unicode feature (qmk#8155) Rollback PR qmk#7967 in preference of fixing I2C start/stop properly, in a followup PR. (qmk#8173) Add mouse support to SEND_STRING (qmk#8223) Add link to "Useful functions" in macro docs (qmk#7446) New functionality for cformat (qmk#7893) Update main.c (qmk#8198) format code according to conventions [skip ci] Fix QWIIC OLED for AVR (qmk#7769) VIA Support: KBD75 rev1/rev2 (qmk#8214) Update TMOv2 for new key (qmk#7759) Added custom keymap for preonic (qmk#7548) ...
* Fix QWIIC OLED for AVR * Change missed width * width to width * height * Fix typo in comment Co-Authored-By: fauxpark <[email protected]> * Fix last incorrect uses of LCDWIDTH Co-authored-by: Ryan <[email protected]>
* Fix QWIIC OLED for AVR * Change missed width * width to width * height * Fix typo in comment Co-Authored-By: fauxpark <[email protected]> * Fix last incorrect uses of LCDWIDTH Co-authored-by: Ryan <[email protected]>
* Fix QWIIC OLED for AVR * Change missed width * width to width * height * Fix typo in comment Co-Authored-By: fauxpark <[email protected]> * Fix last incorrect uses of LCDWIDTH Co-authored-by: Ryan <[email protected]> format code according to conventions [skip ci]
* Fix QWIIC OLED for AVR * Change missed width * width to width * height * Fix typo in comment Co-Authored-By: fauxpark <[email protected]> * Fix last incorrect uses of LCDWIDTH Co-authored-by: Ryan <[email protected]>
* Fix QWIIC OLED for AVR * Change missed width * width to width * height * Fix typo in comment Co-Authored-By: fauxpark <[email protected]> * Fix last incorrect uses of LCDWIDTH Co-authored-by: Ryan <[email protected]>
* Fix QWIIC OLED for AVR * Change missed width * width to width * height * Fix typo in comment Co-Authored-By: fauxpark <[email protected]> * Fix last incorrect uses of LCDWIDTH Co-authored-by: Ryan <[email protected]>
Description
This PR adds support for AVR in the QWIIC OLED driver as well as fixes the buffer sizes by changing their length from
width * width / 8
to the properwidth * height / 8
.Types of Changes