~ruther/qmk_firmware

ref: 2e0498080f79c0d79bfa4ae91405d6cf0c3d959b qmk_firmware/keyboards/massdrop/ctrl/ctrl.h -rw-r--r-- 445 bytes
2e049808 — James Young Migrate `LOCKING_*_ENABLE` to Data-Driven: K, Part 2 (#23769) 11 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#pragma once

#include "quantum.h"
#include "config_led.h"
#include "matrix.h"

#include "i2c_master.h"
#include "md_rgb_matrix.h" //For led keycodes
#include "usb/udi_cdc.h"
#include "usb/usb_hub.h"

#define TOGGLE_FLAG_AND_PRINT(var, name) { \
        if (var) { \
            dprintf(name " disabled\r\n"); \
            var = !var; \
        } else { \
            var = !var; \
            dprintf(name " enabled\r\n"); \
        } \
    }
Do not follow this link