qmk_firmware

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

org60.h (739B)


      1 #pragma once
      2 
      3 #include "quantum.h"
      4 #include "led.h"
      5 
      6 #define ORG60_CAPS_LOCK_LED_PIN B2
      7 #define ORG60_BACKLIGHT_PIN F5
      8 
      9 /* Org60 LEDs
     10  *   GPIO pads
     11  *   0 F7 not connected
     12  *   1 F6 RGB PWM Underglow
     13  *   2 F5 Backlight LED
     14  *   3 F4 not connected
     15  *   B2 Capslock LED
     16  *   B0 not connected
     17  */
     18 inline void org60_caps_led_on(void) {
     19     gpio_set_pin_output(ORG60_CAPS_LOCK_LED_PIN);
     20     gpio_write_pin_low(ORG60_CAPS_LOCK_LED_PIN);
     21 }
     22 inline void org60_bl_led_on(void) {
     23     gpio_set_pin_output(ORG60_BACKLIGHT_PIN);
     24     gpio_write_pin_low(ORG60_BACKLIGHT_PIN);
     25 }
     26 
     27 inline void org60_caps_led_off(void) {
     28     gpio_set_pin_input(ORG60_CAPS_LOCK_LED_PIN);
     29 }
     30 inline void org60_bl_led_off(void) {
     31     gpio_set_pin_input(ORG60_BACKLIGHT_PIN);
     32 }