Refactor to use led config - Part 1 (#10905)
* Refactor to use led config * Refactor to use led config * Refactor to use led config * Refactor to use led config * Refactor to use led config
This commit is contained in:
@@ -35,6 +35,9 @@
|
||||
|
||||
#define DIODE_DIRECTION COL2ROW
|
||||
|
||||
#define LED_CAPS_LOCK_PIN B2
|
||||
#define LED_PIN_ON_STATE 0
|
||||
|
||||
#define RGB_DI_PIN F6
|
||||
#ifdef RGB_DI_PIN
|
||||
#define RGBLED_NUM 12
|
||||
|
||||
@@ -14,17 +14,3 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#include "xd84pro.h"
|
||||
|
||||
void keyboard_pre_init_kb(void) {
|
||||
led_init_ports();
|
||||
keyboard_pre_init_user();
|
||||
}
|
||||
void led_init_ports(void) {
|
||||
setPinOutput(B2);
|
||||
}
|
||||
bool led_update_kb(led_t led_state) {
|
||||
if (led_update_user(led_state)) {
|
||||
writePin(B2, !led_state.caps_lock);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
Reference in New Issue
Block a user