summaryrefslogtreecommitdiff
path: root/keyboards/dm9records/lain/lain.h
blob: ae0671a94330b6ac769d28499909f75f2e2c6010 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright 2022 Takuya Urakawa @hsgw (dm9records.com, 5z6p.com)
// SPDX-License-Identifier: GPL-2.0-or-later

#pragma once

#include "quantum.h"

typedef union {
    uint32_t raw;
    struct {
        bool led_enabled : 1;
    };
} keyboard_config_t;

extern keyboard_config_t lain_config;

void lain_set_led(uint8_t no, bool flag);
void lain_enable_leds(bool flag);
void lain_enable_leds_toggle(void);