László Monda
f927aef7f5
Put function curlies into their own line according to our coding standards all across the codebase.
2017-11-10 23:14:44 +01:00
László Monda
b8846cd601
Add LedDisplay_SetCurrentKeymapText() and use it when reinitializaing the LED display upon disconnect. This fixes the bug that shows FTY on the display upon I2C watchdog recoveries.
2017-11-09 20:59:51 +01:00
László Monda
2aaef66d85
Convert LAYER_ID_* macros to LayerId_* enum values.
2017-11-02 21:48:30 +01:00
László Monda
877cb78b0a
Extract LedDriverValues from LedDriverStates to make them public, and make LedDriverStates values private.
2017-09-29 15:18:01 +02:00
László Monda
81de51244a
Leave some breathing room in dense code blocks.
2017-09-29 01:39:34 +02:00
László Monda
2b6762d3e0
Indent cases inside switches.
2017-09-29 01:35:25 +02:00
László Monda
28f0cdd2c0
Use LED_BRIGHTNESS_LEVEL in led_display.c instead of magic values.
2017-09-29 01:33:21 +02:00
László Monda
01baa31241
Rename slave_driver_led_driver.[ch] to is31fl3731_driver.[ch]
2017-08-06 16:09:33 +02:00
László Monda
546ca5d0b2
Implement much more efficient LED driver updater algorithm that only talks to the LED driver ICs when necessary. Add LED_DRIVER_STRESS_TEST macro.
2017-07-31 17:30:33 +02:00
Eric Tang
8a58d97809
Simplify LedDisplay_SetLayer
2017-07-15 23:59:34 -07:00
Eric Tang
dab3b3464f
Use only decimal values to represent LED brightnesses in led_display.c
2017-07-14 20:28:00 -07:00
Eric Tang
5c2e5d9a81
Fix the appearance of "6" on the LED display
2017-07-14 20:26:15 -07:00
Eric Tang
38b281e962
Improve the appearance of "K" and "7" on the display
2017-07-14 11:26:02 -07:00
Eric Tang
eaacc18ab1
Make characterToSegmentSet use a lookup table
2017-07-14 08:14:09 -07:00
Eric Tang
1cd060122f
Implement the new API for controlling the LED display
2017-07-13 23:42:39 -07:00
Eric Tang
25181e5841
Expose the new API for controlling the LED display
2017-07-13 16:37:58 -07:00
László Monda
afab1db73c
Remove some unused sync I2C calls.
2017-03-18 02:02:56 +01:00
Gergely Nagy
a59dcd1662
Lift out the LED brightness into a global
...
Instead of passing the same constant to LedDisplay_SetLayerLed() all the time,
lift it out into a global.
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org >
2016-12-13 23:23:16 +01:00
Gergely Nagy
2a7edbce6f
Light up LEDs on the display when switching layers
...
When switching layers, light up the appropriate LED on the display. For this
purpose, start led_display.[ch], which as a start, has a function to set the
brightness of a layer led.
The function will also turn all other LEDs off, and turn all of them off when on
the base layer.
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org >
2016-12-13 20:34:43 +01:00