qmk_firmware/keyboards/do60/do60.h

37 lines
782 B
C
Raw Permalink Normal View History

#pragma once
2017-12-08 08:12:41 +01:00
#include "quantum.h"
#define DO60_CAPS_LOCK_LED_PIN B2
#define DO60_BACKLIGHT_PIN F4
2017-12-08 08:12:41 +01:00
/* DO60 LEDs
* GPIO pads
* 0 F7 not connected
* 1 F6 not connected
* 2 F5 RGB PWM Underglow
* 3 F4 Backlight LED
2017-12-08 08:12:41 +01:00
* B2 Capslock LED
* B0 not connected
*/
/*
inline void do60_caps_led_on(void) {
gpio_set_pin_output(DO60_CAPS_LOCK_LED_PIN);
gpio_write_pin_low(DO60_CAPS_LOCK_LED_PIN);
}
inline void do60_bl_led_on(void) {
gpio_set_pin_output(DO60_BACKLIGHT_PIN);
gpio_write_pin_low(DO60_BACKLIGHT_PIN);
}
2017-12-08 08:12:41 +01:00
inline void do60_caps_led_off(void) {
gpio_set_pin_input(DO60_CAPS_LOCK_LED_PIN);
}
inline void do60_bl_led_off(void) {
gpio_set_pin_input(DO60_BACKLIGHT_PIN);
}
*/
2017-12-08 08:12:41 +01:00
inline void setdefaultrgb(void){ rgblight_sethsv(100,100,100); }