qmk_firmware

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

do60.h (782B)


      1 #pragma once
      2 
      3 #include "quantum.h"
      4 
      5 #define DO60_CAPS_LOCK_LED_PIN B2
      6 #define DO60_BACKLIGHT_PIN F4
      7 
      8 /* DO60 LEDs
      9  *   GPIO pads
     10  *   0 F7 not connected
     11  *   1 F6 not connected
     12  *   2 F5 RGB PWM Underglow
     13  *   3 F4 Backlight LED
     14  *   B2 Capslock LED
     15  *   B0 not connected
     16  */
     17 
     18 /*
     19 inline void do60_caps_led_on(void) {
     20     gpio_set_pin_output(DO60_CAPS_LOCK_LED_PIN);
     21     gpio_write_pin_low(DO60_CAPS_LOCK_LED_PIN);
     22 }
     23 inline void do60_bl_led_on(void) {
     24     gpio_set_pin_output(DO60_BACKLIGHT_PIN);
     25     gpio_write_pin_low(DO60_BACKLIGHT_PIN);
     26 }
     27 
     28 inline void do60_caps_led_off(void) {
     29     gpio_set_pin_input(DO60_CAPS_LOCK_LED_PIN);
     30 }
     31 inline void do60_bl_led_off(void) {
     32     gpio_set_pin_input(DO60_BACKLIGHT_PIN);
     33 }
     34 */
     35 
     36 inline void setdefaultrgb(void){ rgblight_sethsv(100,100,100); }