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>
This commit is contained in:
Gergely Nagy
2016-12-13 23:23:16 +01:00
parent 2a7edbce6f
commit a59dcd1662
3 changed files with 8 additions and 4 deletions

View File

@@ -3,6 +3,8 @@
#include "led_driver.h"
void LedDisplay_SetLayerLed(uint8_t layerId, uint8_t brightness);
extern uint8_t LedDisplayBrightness;
void LedDisplay_SetLayerLed(uint8_t layerId);
#endif