wip
This commit is contained in:
@@ -15,20 +15,6 @@
|
||||
*/
|
||||
#include "kbd6x.h"
|
||||
|
||||
void matrix_init_kb(void) {
|
||||
// put your keyboard start-up code here
|
||||
// runs once when the firmware starts up
|
||||
|
||||
matrix_init_user();
|
||||
}
|
||||
|
||||
void matrix_scan_kb(void) {
|
||||
// put your looping keyboard code here
|
||||
// runs every cycle (a lot)
|
||||
|
||||
matrix_scan_user();
|
||||
}
|
||||
|
||||
void led_set_kb(uint8_t usb_led) {
|
||||
if (usb_led & (1 << USB_LED_CAPS_LOCK)) {
|
||||
DDRB |= (1 << 6);
|
||||
@@ -37,6 +23,4 @@ void led_set_kb(uint8_t usb_led) {
|
||||
DDRB &= ~(1 << 6);
|
||||
PORTB &= ~(1 << 6);
|
||||
}
|
||||
|
||||
led_set_user(usb_led);
|
||||
}
|
||||
|
||||
@@ -7,11 +7,8 @@ void led_set_kb(uint8_t usb_led) {
|
||||
} else {
|
||||
writePinHigh(B2);
|
||||
}
|
||||
|
||||
led_set_user(usb_led);
|
||||
}
|
||||
|
||||
void matrix_init_kb(void) {
|
||||
setPinOutput(B2);
|
||||
matrix_init_user();
|
||||
}
|
||||
|
||||
@@ -7,11 +7,8 @@ void led_set_kb(uint8_t usb_led) {
|
||||
} else {
|
||||
writePinHigh(B2);
|
||||
}
|
||||
|
||||
led_set_user(usb_led);
|
||||
}
|
||||
|
||||
void matrix_init_kb(void) {
|
||||
setPinOutput(B2);
|
||||
matrix_init_user();
|
||||
}
|
||||
|
||||
@@ -23,20 +23,6 @@ extern inline void num_led_on(void);
|
||||
extern inline void scroll_led_off(void);
|
||||
extern inline void scroll_led_on(void);
|
||||
|
||||
void matrix_init_kb(void) {
|
||||
// put your keyboard start-up code here
|
||||
// runs once when the firmware starts up
|
||||
|
||||
matrix_init_user();
|
||||
}
|
||||
|
||||
void matrix_scan_kb(void) {
|
||||
// put your looping keyboard code here
|
||||
// runs every cycle (a lot)
|
||||
|
||||
matrix_scan_user();
|
||||
}
|
||||
|
||||
void led_set_kb(uint8_t usb_led) {
|
||||
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
|
||||
|
||||
@@ -60,6 +46,4 @@ void led_set_kb(uint8_t usb_led) {
|
||||
} else {
|
||||
scroll_led_off();
|
||||
}
|
||||
|
||||
led_set_user(usb_led);
|
||||
}
|
||||
|
||||
@@ -24,8 +24,6 @@ void matrix_init_kb(void) {
|
||||
|
||||
setPinOutput(B2);
|
||||
setPinOutput(E6);
|
||||
|
||||
matrix_init_user();
|
||||
}
|
||||
|
||||
void led_set_kb(uint8_t usb_led) {
|
||||
@@ -44,21 +42,4 @@ void led_set_kb(uint8_t usb_led) {
|
||||
} else {
|
||||
writePinHigh(B2);
|
||||
}
|
||||
|
||||
led_set_user(usb_led);
|
||||
}
|
||||
|
||||
// Optional override functions below.
|
||||
// You can leave any or all of these undefined.
|
||||
// These are only required if you want to perform custom actions.
|
||||
|
||||
/*
|
||||
|
||||
void matrix_scan_kb(void) {
|
||||
// put your looping keyboard code here
|
||||
// runs every cycle (a lot)
|
||||
|
||||
matrix_scan_user();
|
||||
}
|
||||
|
||||
*/
|
||||
|
||||
@@ -74,20 +74,12 @@ led_config_t g_led_config = { {
|
||||
1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1,
|
||||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
|
||||
} };
|
||||
void matrix_init_kb(void) {
|
||||
matrix_init_user();
|
||||
}
|
||||
void matrix_scan_kb(void) {
|
||||
matrix_scan_user();
|
||||
}
|
||||
void suspend_power_down_kb(void)
|
||||
{
|
||||
rgb_matrix_set_suspend_state(true);
|
||||
suspend_power_down_user();
|
||||
}
|
||||
|
||||
void suspend_wakeup_init_kb(void)
|
||||
{
|
||||
rgb_matrix_set_suspend_state(false);
|
||||
suspend_wakeup_init_user();
|
||||
}
|
||||
|
||||
@@ -21,8 +21,6 @@ void matrix_init_kb(void) {
|
||||
// Sinking setup (5V -> LED/Res -> Pin)
|
||||
|
||||
setPinOutput(B4);
|
||||
|
||||
matrix_init_user();
|
||||
}
|
||||
|
||||
void led_set_kb(uint8_t usb_led) {
|
||||
@@ -34,21 +32,4 @@ void led_set_kb(uint8_t usb_led) {
|
||||
} else {
|
||||
writePinHigh(B4);
|
||||
}
|
||||
|
||||
led_set_user(usb_led);
|
||||
}
|
||||
|
||||
// Optional override functions below.
|
||||
// You can leave any or all of these undefined.
|
||||
// These are only required if you want to perform custom actions.
|
||||
|
||||
/*
|
||||
|
||||
void matrix_scan_kb(void) {
|
||||
// put your looping keyboard code here
|
||||
// runs every cycle (a lot)
|
||||
|
||||
matrix_scan_user();
|
||||
}
|
||||
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user