logo

qmk_firmware

custom branch of QMK firmware git clone https://anongit.hacktivis.me/git/qmk_firmware.git

org60.h (739B)


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