qmk_firmware

QMK firmware for my keyboards (Corne, Sweep Ferris) and trackball (Ploopy Adept)
Log | Files | Refs | Submodules | LICENSE

planck_ez.h (1480B)


      1 /* Copyright 2018 Jack Humbert <jack.humb@gmail.com>
      2  * Copyright 2015 ZSA Technology Labs Inc (@zsa)
      3  * Copyright 2020 Christopher Courtney, aka Drashna Jael're  (@drashna) <drashna@live.com>
      4  *
      5  * This program is free software: you can redistribute it and/or modify
      6  * it under the terms of the GNU General Public License as published by
      7  * the Free Software Foundation, either version 2 of the License, or
      8  * (at your option) any later version.
      9  *
     10  * This program is distributed in the hope that it will be useful,
     11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
     12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13  * GNU General Public License for more details.
     14  *
     15  * You should have received a copy of the GNU General Public License
     16  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
     17  */
     18 #pragma once
     19 
     20 #include "quantum.h"
     21 
     22 void planck_ez_right_led_on(void);
     23 void planck_ez_right_led_off(void);
     24 void planck_ez_right_led_level(uint8_t level);
     25 void planck_ez_left_led_on(void);
     26 void planck_ez_left_led_off(void);
     27 void planck_ez_left_led_level(uint8_t level);
     28 
     29 enum planck_ez_keycodes {
     30     LED_LEVEL = QK_KB_0,
     31     TOGGLE_LAYER_COLOR,
     32 };
     33 
     34 #ifndef WEBUSB_ENABLE
     35 #    define WEBUSB_PAIR KC_NO
     36 #endif
     37 
     38 typedef union {
     39   uint32_t raw;
     40   struct {
     41     uint8_t      led_level :3;
     42     bool         disable_layer_led   :1;
     43     bool         rgb_matrix_enable   :1;
     44   };
     45 } keyboard_config_t;
     46 
     47 extern keyboard_config_t keyboard_config;