2019-07-02 18:22:56 +02:00
|
|
|
#pragma once
|
2016-08-27 17:40:50 +02:00
|
|
|
|
|
|
|
#include "quantum.h"
|
|
|
|
#include "led.h"
|
|
|
|
|
2016-11-13 06:42:07 +01:00
|
|
|
/* GH60 LEDs
|
2016-08-27 17:40:50 +02:00
|
|
|
* GPIO pads
|
|
|
|
* 0 F7 WASD LEDs
|
|
|
|
* 1 F6 ESC LED
|
|
|
|
* 2 F5 FN LED
|
|
|
|
* 3 F4 POKER Arrow LEDs
|
|
|
|
* B2 Capslock LED
|
|
|
|
* B0 not connected
|
|
|
|
*/
|
2020-11-21 20:11:24 +01:00
|
|
|
static inline void gh60_caps_led_on(void) { setPinOutput(B2); writePinLow(B2); }
|
|
|
|
static inline void gh60_poker_leds_on(void) { setPinOutput(F4); writePinLow(F4); }
|
|
|
|
static inline void gh60_fn_led_on(void) { setPinOutput(F5); writePinLow(F5); }
|
|
|
|
static inline void gh60_esc_led_on(void) { setPinOutput(F6); writePinLow(F6); }
|
|
|
|
static inline void gh60_wasd_leds_on(void) { setPinOutput(F7); writePinLow(F7); }
|
2016-08-27 17:40:50 +02:00
|
|
|
|
2020-11-21 20:11:24 +01:00
|
|
|
static inline void gh60_caps_led_off(void) { setPinInput(B2); }
|
|
|
|
static inline void gh60_poker_leds_off(void) { setPinInput(F4); }
|
|
|
|
static inline void gh60_fn_led_off(void) { setPinInput(F5); }
|
|
|
|
static inline void gh60_esc_led_off(void) { setPinInput(F6); }
|
|
|
|
static inline void gh60_wasd_leds_off(void) { setPinInput(F7); }
|