1
0
Fork 0
forked from forks/qmk_firmware
qmk_firmware/drivers
Aldehir Rojas 4f2f21dc05
Rewrite APA102 support (#10894)
* Rewrite APA102 support

The APA102 source was broken by commit 16a15c1cfc as it did not include the
quantum header. This commit addresses that, as well as other issues with
transferring bytes over the SPI interface, i.e. it was not setting the
clock pin back to low after sending a bit.

The deviation when sending the end frame is kept, but updated to the
latest from the referenced project.

Finally, these changes expose the global LED brightness parameter
of the APA102. Brightness values are configurable through
`APA102_DEFAULT_BRIGHTNESS` and `APA102_MAX_BRIGHTNESS`.

* Fix typo in led brightness extern

* Move driver out of AVR directory and add delay for ARM

* Experimental APA102 support on AVR and ARM

Co-authored-by: Alde Rojas <hello@alde.io>

* Refactor apa102_send_byte() calls to a loop

* Implement io_wait function for ARM

* Move APA102 drivers to own directory, fix copyright notice

* Add APA102 keymap to handwired/onekey

* Simplify RGBLIGHT_ENABLE/DRIVER option handling

Co-authored-by: Mikkel Jeppesen <2756925+Duckle29@users.noreply.github.com>
2020-12-30 00:28:49 +00:00
..
apa102 Rewrite APA102 support (#10894) 2020-12-30 00:28:49 +00:00
avr Rewrite APA102 support (#10894) 2020-12-30 00:28:49 +00:00
chibios Merge remote-tracking branch 'upstream/master' into develop 2020-12-18 02:15:28 +11:00
eeprom Add i2c 24LC64 eeprom (#11200) 2020-12-14 05:50:50 +11:00
gpio Increase matrix scanning speed on xd84 (#7517) 2019-12-03 19:39:21 +00:00
haptic Ensure single newline at EOF for core files (#11310) 2020-12-28 04:36:32 +11:00
issi Run cformat and dos2unix manually (#11235) 2020-12-17 14:06:30 +00:00
oled Added OLED Initialized checks (#11129) 2020-12-06 12:53:47 +11:00
qwiic Normalise include statements in keyboard code (#11185) 2020-12-16 14:27:23 +11:00
ugfx/gdisp Ensure single newline at EOF for core files (#11310) 2020-12-28 04:36:32 +11:00
ws2812.h qmk cformat (#9500) 2020-06-22 11:21:48 +10:00