Add LedDisplay_UpdateAll()

This commit is contained in:
László Monda
2018-04-28 16:21:54 +02:00
parent b97841fdae
commit 8856c484b6
6 changed files with 28 additions and 12 deletions
+12 -6
View File
@@ -85,12 +85,6 @@ void LedDisplay_SetText(uint8_t length, const char* text)
}
}
void LedDisplay_SetCurrentKeymapText(void)
{
keymap_reference_t *currentKeymap = AllKeymaps + CurrentKeymapIndex;
LedDisplay_SetText(currentKeymap->abbreviationLen, currentKeymap->abbreviation);
}
void LedDisplay_SetLayer(layer_id_t layerId)
{
for (uint8_t i = 13; i <= 45; i += 16) {
@@ -119,3 +113,15 @@ void LedDisplay_UpdateIcons(void)
LedDisplay_SetIcon(i, ledIconStates[i]);
}
}
void LedDisplay_UpdateText(void)
{
keymap_reference_t *currentKeymap = AllKeymaps + CurrentKeymapIndex;
LedDisplay_SetText(currentKeymap->abbreviationLen, currentKeymap->abbreviation);
}
void LedDisplay_UpdateAll(void)
{
LedDisplay_UpdateIcons();
LedDisplay_UpdateText();
}