mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-07-16 21:01:31 +00:00
Update 5075.c
This commit is contained in:
parent
da18fe3f2b
commit
a3b9f61486
@ -164,6 +164,15 @@ void led_init_ports(void) {
|
|||||||
writePinLow(LED_WIN_LOCK_PIN);
|
writePinLow(LED_WIN_LOCK_PIN);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void housekeeping_task_kb(void) {
|
||||||
|
/* Execute every 1ms */
|
||||||
|
static uint32_t last_time = 0;
|
||||||
|
if (timer_elapsed32(last_time) >= 1) {
|
||||||
|
last_time = timer_read32();
|
||||||
|
writePin(LED_MAC_OS_PIN, default_layer_state & ((1<<MAC_B)|(1<<MAC_W)));
|
||||||
|
writePin(LED_WIN_LOCK_PIN, keymap_config.no_gui);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
bool dip_switch_update_kb(uint8_t index, bool active) {
|
bool dip_switch_update_kb(uint8_t index, bool active) {
|
||||||
if (!dip_switch_update_user(index, active)) {
|
if (!dip_switch_update_user(index, active)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user