Expose the new API for controlling the LED display
This commit is contained in:
@@ -1,13 +1,10 @@
|
||||
#include "led_display.h"
|
||||
#include "layer.h"
|
||||
|
||||
#define LAYER_LED_FIRST FRAME_REGISTER_PWM_FIRST + 13
|
||||
#define LAYER_LED_DISTANCE 16
|
||||
|
||||
uint8_t LedDisplayBrightness = 0xff;
|
||||
|
||||
void LedDisplay_SetLayerLed(uint8_t layerId) {
|
||||
for (uint8_t i = 0; i < LAYER_COUNT; i++) {
|
||||
// LedDriver_WriteRegister(I2C_ADDRESS_LED_DRIVER_LEFT, LAYER_LED_FIRST + (i * LAYER_LED_DISTANCE), LedDisplayBrightness * (layerId == i + 1));
|
||||
}
|
||||
void LedDisplay_SetText(uint8_t length, const char* text) {
|
||||
}
|
||||
|
||||
void LedDisplay_SetLayer(uint8_t layerId) {
|
||||
}
|
||||
|
||||
void LedDisplay_SetIcon(led_display_icon_t icon, bool isEnabled) {
|
||||
}
|
||||
|
||||
@@ -1,10 +1,23 @@
|
||||
#ifndef __LED_DISPLAY_H__
|
||||
#define __LED_DISPLAY_H__
|
||||
|
||||
#include "peripherals/led_driver.h"
|
||||
// Includes:
|
||||
|
||||
extern uint8_t LedDisplayBrightness;
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
void LedDisplay_SetLayerLed(uint8_t layerId);
|
||||
// Typedefs:
|
||||
|
||||
typedef enum {
|
||||
LedDisplayIcon_CapsLock,
|
||||
LedDisplayIcon_Agent,
|
||||
LedDisplayIcon_Adaptive,
|
||||
} led_display_icon_t;
|
||||
|
||||
// Functions:
|
||||
|
||||
void LedDisplay_SetText(uint8_t length, const char* text);
|
||||
void LedDisplay_SetLayer(uint8_t layerId);
|
||||
void LedDisplay_SetIcon(led_display_icon_t icon, bool isEnabled);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user