forked from mirrors/qmk_firmware
wip
This commit is contained in:
parent
b281d88c6f
commit
5ba8a76da5
161 changed files with 56 additions and 1779 deletions
|
@ -15,20 +15,6 @@
|
||||||
*/
|
*/
|
||||||
#include "kbd6x.h"
|
#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) {
|
void led_set_kb(uint8_t usb_led) {
|
||||||
if (usb_led & (1 << USB_LED_CAPS_LOCK)) {
|
if (usb_led & (1 << USB_LED_CAPS_LOCK)) {
|
||||||
DDRB |= (1 << 6);
|
DDRB |= (1 << 6);
|
||||||
|
@ -37,6 +23,4 @@ void led_set_kb(uint8_t usb_led) {
|
||||||
DDRB &= ~(1 << 6);
|
DDRB &= ~(1 << 6);
|
||||||
PORTB &= ~(1 << 6);
|
PORTB &= ~(1 << 6);
|
||||||
}
|
}
|
||||||
|
|
||||||
led_set_user(usb_led);
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,11 +7,8 @@ void led_set_kb(uint8_t usb_led) {
|
||||||
} else {
|
} else {
|
||||||
writePinHigh(B2);
|
writePinHigh(B2);
|
||||||
}
|
}
|
||||||
|
|
||||||
led_set_user(usb_led);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void matrix_init_kb(void) {
|
void matrix_init_kb(void) {
|
||||||
setPinOutput(B2);
|
setPinOutput(B2);
|
||||||
matrix_init_user();
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,11 +7,8 @@ void led_set_kb(uint8_t usb_led) {
|
||||||
} else {
|
} else {
|
||||||
writePinHigh(B2);
|
writePinHigh(B2);
|
||||||
}
|
}
|
||||||
|
|
||||||
led_set_user(usb_led);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void matrix_init_kb(void) {
|
void matrix_init_kb(void) {
|
||||||
setPinOutput(B2);
|
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_off(void);
|
||||||
extern inline void scroll_led_on(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) {
|
void led_set_kb(uint8_t usb_led) {
|
||||||
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
|
// 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 {
|
} else {
|
||||||
scroll_led_off();
|
scroll_led_off();
|
||||||
}
|
}
|
||||||
|
|
||||||
led_set_user(usb_led);
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,8 +24,6 @@ void matrix_init_kb(void) {
|
||||||
|
|
||||||
setPinOutput(B2);
|
setPinOutput(B2);
|
||||||
setPinOutput(E6);
|
setPinOutput(E6);
|
||||||
|
|
||||||
matrix_init_user();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void led_set_kb(uint8_t usb_led) {
|
void led_set_kb(uint8_t usb_led) {
|
||||||
|
@ -44,21 +42,4 @@ void led_set_kb(uint8_t usb_led) {
|
||||||
} else {
|
} else {
|
||||||
writePinHigh(B2);
|
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, 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
|
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)
|
void suspend_power_down_kb(void)
|
||||||
{
|
{
|
||||||
rgb_matrix_set_suspend_state(true);
|
rgb_matrix_set_suspend_state(true);
|
||||||
suspend_power_down_user();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void suspend_wakeup_init_kb(void)
|
void suspend_wakeup_init_kb(void)
|
||||||
{
|
{
|
||||||
rgb_matrix_set_suspend_state(false);
|
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)
|
// Sinking setup (5V -> LED/Res -> Pin)
|
||||||
|
|
||||||
setPinOutput(B4);
|
setPinOutput(B4);
|
||||||
|
|
||||||
matrix_init_user();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void led_set_kb(uint8_t usb_led) {
|
void led_set_kb(uint8_t usb_led) {
|
||||||
|
@ -34,21 +32,4 @@ void led_set_kb(uint8_t usb_led) {
|
||||||
} else {
|
} else {
|
||||||
writePinHigh(B4);
|
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();
|
|
||||||
}
|
|
||||||
|
|
||||||
*/
|
|
||||||
|
|
|
@ -16,15 +16,8 @@
|
||||||
|
|
||||||
#include QMK_KEYBOARD_H
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
void matrix_init_kb(void){
|
|
||||||
setPinOutput(B2);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool led_update_kb(led_t led_state) {
|
bool led_update_kb(led_t led_state) {
|
||||||
bool res = led_update_user(led_state);
|
writePin(B2, !led_state.caps_lock);
|
||||||
if(res) {
|
return true;
|
||||||
writePin(B2, !led_state.caps_lock);
|
|
||||||
}
|
|
||||||
return res;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -14,31 +14,3 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
#include "ergodicity.h"
|
#include "ergodicity.h"
|
||||||
|
|
||||||
// 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_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
|
|
||||||
|
|
||||||
led_set_user(usb_led);
|
|
||||||
}
|
|
||||||
|
|
||||||
*/
|
|
||||||
|
|
|
@ -1,22 +1 @@
|
||||||
#include "levinson.h"
|
#include "levinson.h"
|
||||||
|
|
||||||
#ifdef SSD1306OLED
|
|
||||||
void led_set_kb(uint8_t usb_led) {
|
|
||||||
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
|
|
||||||
led_set_user(usb_led);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void matrix_init_kb(void) {
|
|
||||||
|
|
||||||
// // green led on
|
|
||||||
// DDRD |= (1<<5);
|
|
||||||
// PORTD &= ~(1<<5);
|
|
||||||
|
|
||||||
// // orange led on
|
|
||||||
// DDRB |= (1<<0);
|
|
||||||
// PORTB &= ~(1<<0);
|
|
||||||
|
|
||||||
matrix_init_user();
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
|
@ -1,22 +1 @@
|
||||||
#include "levinson.h"
|
#include "levinson.h"
|
||||||
|
|
||||||
#ifdef SSD1306OLED
|
|
||||||
void led_set_kb(uint8_t usb_led) {
|
|
||||||
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
|
|
||||||
led_set_user(usb_led);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void matrix_init_kb(void) {
|
|
||||||
|
|
||||||
// // green led on
|
|
||||||
// DDRD |= (1<<5);
|
|
||||||
// PORTD &= ~(1<<5);
|
|
||||||
|
|
||||||
// // orange led on
|
|
||||||
// DDRB |= (1<<0);
|
|
||||||
// PORTB &= ~(1<<0);
|
|
||||||
|
|
||||||
matrix_init_user();
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
|
@ -1,22 +1 @@
|
||||||
#include "levinson.h"
|
#include "levinson.h"
|
||||||
|
|
||||||
#ifdef SSD1306OLED
|
|
||||||
void led_set_kb(uint8_t usb_led) {
|
|
||||||
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
|
|
||||||
led_set_user(usb_led);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void matrix_init_kb(void) {
|
|
||||||
|
|
||||||
// // green led on
|
|
||||||
// DDRD |= (1<<5);
|
|
||||||
// PORTD &= ~(1<<5);
|
|
||||||
|
|
||||||
// // orange led on
|
|
||||||
// DDRB |= (1<<0);
|
|
||||||
// PORTB &= ~(1<<0);
|
|
||||||
|
|
||||||
matrix_init_user();
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
|
@ -1,22 +1 @@
|
||||||
#include "rev1.h"
|
#include "rev1.h"
|
||||||
|
|
||||||
#ifdef SSD1306OLED
|
|
||||||
void led_set_kb(uint8_t usb_led) {
|
|
||||||
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
|
|
||||||
led_set_user(usb_led);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void matrix_init_kb(void) {
|
|
||||||
|
|
||||||
// // green led on
|
|
||||||
// DDRD |= (1<<5);
|
|
||||||
// PORTD &= ~(1<<5);
|
|
||||||
|
|
||||||
// // orange led on
|
|
||||||
// DDRB |= (1<<0);
|
|
||||||
// PORTB &= ~(1<<0);
|
|
||||||
|
|
||||||
matrix_init_user();
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
|
@ -1,21 +1 @@
|
||||||
#include "rev2.h"
|
#include "rev2.h"
|
||||||
|
|
||||||
#ifdef SSD1306OLED
|
|
||||||
void led_set_kb(uint8_t usb_led) {
|
|
||||||
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
|
|
||||||
led_set_user(usb_led);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void matrix_init_kb(void) {
|
|
||||||
|
|
||||||
// // green led on
|
|
||||||
// DDRD |= (1<<5);
|
|
||||||
// PORTD &= ~(1<<5);
|
|
||||||
|
|
||||||
// // orange led on
|
|
||||||
// DDRB |= (1<<0);
|
|
||||||
// PORTB &= ~(1<<0);
|
|
||||||
|
|
||||||
matrix_init_user();
|
|
||||||
};
|
|
||||||
|
|
|
@ -1,21 +1 @@
|
||||||
#include "rev3.h"
|
#include "rev3.h"
|
||||||
|
|
||||||
#ifdef SSD1306OLED
|
|
||||||
void led_set_kb(uint8_t usb_led) {
|
|
||||||
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
|
|
||||||
led_set_user(usb_led);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void matrix_init_kb(void) {
|
|
||||||
|
|
||||||
// // green led on
|
|
||||||
// DDRD |= (1<<5);
|
|
||||||
// PORTD &= ~(1<<5);
|
|
||||||
|
|
||||||
// // orange led on
|
|
||||||
// DDRB |= (1<<0);
|
|
||||||
// PORTB &= ~(1<<0);
|
|
||||||
|
|
||||||
matrix_init_user();
|
|
||||||
};
|
|
||||||
|
|
|
@ -1,5 +1 @@
|
||||||
#include "quefrency.h"
|
#include "quefrency.h"
|
||||||
|
|
||||||
void matrix_init_kb(void) {
|
|
||||||
matrix_init_user();
|
|
||||||
};
|
|
||||||
|
|
|
@ -1,14 +1 @@
|
||||||
#include "rev1.h"
|
#include "rev1.h"
|
||||||
|
|
||||||
void matrix_init_kb(void) {
|
|
||||||
|
|
||||||
// // green led on
|
|
||||||
// DDRD |= (1<<5);
|
|
||||||
// PORTD &= ~(1<<5);
|
|
||||||
|
|
||||||
// // orange led on
|
|
||||||
// DDRB |= (1<<0);
|
|
||||||
// PORTB &= ~(1<<0);
|
|
||||||
|
|
||||||
matrix_init_user();
|
|
||||||
};
|
|
||||||
|
|
|
@ -1,8 +1 @@
|
||||||
#include "tragicforce68.h"
|
#include "tragicforce68.h"
|
||||||
|
|
||||||
void matrix_init_kb(void) {
|
|
||||||
// put your keyboard start-up code here
|
|
||||||
// runs once when the firmware starts up
|
|
||||||
|
|
||||||
matrix_init_user();
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,18 +1,5 @@
|
||||||
#include "wavelet.h"
|
#include "wavelet.h"
|
||||||
|
|
||||||
void matrix_init_kb(void) {
|
|
||||||
|
|
||||||
// // green led on
|
|
||||||
// DDRD |= (1<<5);
|
|
||||||
// PORTD &= ~(1<<5);
|
|
||||||
|
|
||||||
// // orange led on
|
|
||||||
// DDRB |= (1<<0);
|
|
||||||
// PORTB &= ~(1<<0);
|
|
||||||
|
|
||||||
matrix_init_user();
|
|
||||||
};
|
|
||||||
|
|
||||||
#ifdef SWAP_HANDS_ENABLE
|
#ifdef SWAP_HANDS_ENABLE
|
||||||
__attribute__ ((weak))
|
__attribute__ ((weak))
|
||||||
const keypos_t hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = {
|
const keypos_t hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
|
|
@ -14,31 +14,3 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
#include "maypad.h"
|
#include "maypad.h"
|
||||||
|
|
||||||
// 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_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
|
|
||||||
|
|
||||||
led_set_user(usb_led);
|
|
||||||
}
|
|
||||||
|
|
||||||
*/
|
|
||||||
|
|
|
@ -67,20 +67,10 @@ void blink_all_leds(void)
|
||||||
|
|
||||||
void matrix_init_kb(void) {
|
void matrix_init_kb(void) {
|
||||||
blink_all_leds();
|
blink_all_leds();
|
||||||
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) {
|
void led_set_kb(uint8_t usb_led) {
|
||||||
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
|
|
||||||
|
|
||||||
//Copyright 2014 Warren Janssens <warren.janssens@gmail.com>
|
//Copyright 2014 Warren Janssens <warren.janssens@gmail.com>
|
||||||
uint8_t leds = 0xF0;
|
uint8_t leds = 0xF0;
|
||||||
if (usb_led & 1 << USB_LED_NUM_LOCK)
|
if (usb_led & 1 << USB_LED_NUM_LOCK)
|
||||||
|
@ -90,9 +80,6 @@ void led_set_kb(uint8_t usb_led) {
|
||||||
if (usb_led & 1 << USB_LED_SCROLL_LOCK)
|
if (usb_led & 1 << USB_LED_SCROLL_LOCK)
|
||||||
leds &= ~0x20;
|
leds &= ~0x20;
|
||||||
PORTD = (PORTD & 0x0F) | leds;
|
PORTD = (PORTD & 0x0F) | leds;
|
||||||
|
|
||||||
led_set_user(usb_led);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -46,12 +46,10 @@ static void select_rows(uint8_t row);
|
||||||
|
|
||||||
__attribute__ ((weak))
|
__attribute__ ((weak))
|
||||||
void matrix_init_kb(void) {
|
void matrix_init_kb(void) {
|
||||||
matrix_init_user();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
__attribute__ ((weak))
|
__attribute__ ((weak))
|
||||||
void matrix_scan_kb(void) {
|
void matrix_scan_kb(void) {
|
||||||
matrix_scan_user();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
__attribute__ ((weak))
|
__attribute__ ((weak))
|
||||||
|
|
|
@ -8,15 +8,6 @@ void matrix_init_kb(void) {
|
||||||
DDRF |= (1<<1); // ScrLock LED
|
DDRF |= (1<<1); // ScrLock LED
|
||||||
DDRF |= (1<<2); // NumLock LED
|
DDRF |= (1<<2); // NumLock LED
|
||||||
DDRF |= (1<<3); // CapsLock LED
|
DDRF |= (1<<3); // CapsLock LED
|
||||||
|
|
||||||
matrix_init_user();
|
|
||||||
}
|
|
||||||
|
|
||||||
void matrix_scan_kb(void) {
|
|
||||||
// put your looping keyboard code here
|
|
||||||
// runs every cycle (a lot)
|
|
||||||
|
|
||||||
matrix_scan_user();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void led_init_ports() {
|
void led_init_ports() {
|
||||||
|
|
|
@ -14,23 +14,3 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
#include "kira75.h"
|
#include "kira75.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) {
|
|
||||||
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
|
|
||||||
|
|
||||||
led_set_user(usb_led);
|
|
||||||
}
|
|
||||||
|
|
|
@ -29,21 +29,8 @@ void matrix_init_kb(void) {
|
||||||
// runs once when the firmware starts up
|
// runs once when the firmware starts up
|
||||||
setPinOutput(CAPS_PIN);
|
setPinOutput(CAPS_PIN);
|
||||||
setPinOutput(SCROLL_PIN);
|
setPinOutput(SCROLL_PIN);
|
||||||
|
|
||||||
matrix_init_user();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
|
|
||||||
void matrix_scan_kb(void) {
|
|
||||||
// put your looping keyboard code here
|
|
||||||
// runs every cycle (a lot)
|
|
||||||
|
|
||||||
matrix_scan_user();
|
|
||||||
}
|
|
||||||
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* LED pin configuration
|
/* LED pin configuration
|
||||||
* Scroll Lock: Low PE6
|
* Scroll Lock: Low PE6
|
||||||
* Caps Lock: Low PB0
|
* Caps Lock: Low PB0
|
||||||
|
@ -60,8 +47,6 @@ void led_set_kb(uint8_t usb_led) {
|
||||||
} else {
|
} else {
|
||||||
writePinHigh(SCROLL_PIN);
|
writePinHigh(SCROLL_PIN);
|
||||||
}
|
}
|
||||||
|
|
||||||
led_set_user(usb_led);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void backlight_init_ports(void) {
|
void backlight_init_ports(void) {
|
||||||
|
|
|
@ -48,13 +48,9 @@ static const pin_t col_pins[MATRIX_COLS] = MATRIX_COL_PINS;
|
||||||
static matrix_row_t raw_matrix[MATRIX_ROWS]; // raw values
|
static matrix_row_t raw_matrix[MATRIX_ROWS]; // raw values
|
||||||
static matrix_row_t matrix[MATRIX_ROWS]; // debounced values
|
static matrix_row_t matrix[MATRIX_ROWS]; // debounced values
|
||||||
|
|
||||||
__attribute__((weak)) void matrix_init_quantum(void) { matrix_init_kb(); }
|
__attribute__((weak)) void matrix_init_kb(void) {}
|
||||||
|
|
||||||
__attribute__((weak)) void matrix_scan_quantum(void) { matrix_scan_kb(); }
|
__attribute__((weak)) void matrix_scan_kb(void) {}
|
||||||
|
|
||||||
__attribute__((weak)) void matrix_init_kb(void) { matrix_init_user(); }
|
|
||||||
|
|
||||||
__attribute__((weak)) void matrix_scan_kb(void) { matrix_scan_user(); }
|
|
||||||
|
|
||||||
__attribute__((weak)) void matrix_init_user(void) {}
|
__attribute__((weak)) void matrix_init_user(void) {}
|
||||||
|
|
||||||
|
|
|
@ -19,14 +19,6 @@ void matrix_init_kb(void) {
|
||||||
// put your keyboard start-up code here
|
// put your keyboard start-up code here
|
||||||
// runs once when the firmware starts up
|
// runs once when the firmware starts up
|
||||||
led_init_ports();
|
led_init_ports();
|
||||||
matrix_init_user();
|
|
||||||
}
|
|
||||||
|
|
||||||
void matrix_scan_kb(void) {
|
|
||||||
// put your looping keyboard code here
|
|
||||||
// runs every cycle (a lot)
|
|
||||||
|
|
||||||
matrix_scan_user();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void led_init_ports(void) {
|
void led_init_ports(void) {
|
||||||
|
@ -40,7 +32,3 @@ void led_init_ports(void) {
|
||||||
* Side1: Low B3
|
* Side1: Low B3
|
||||||
* Side2: Low B2
|
* Side2: Low B2
|
||||||
*/
|
*/
|
||||||
void led_set_kb(uint8_t usb_led) {
|
|
||||||
led_set_user(usb_led);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
|
@ -55,14 +55,10 @@ __attribute__ ((weak))
|
||||||
void matrix_scan_user(void) {}
|
void matrix_scan_user(void) {}
|
||||||
|
|
||||||
__attribute__ ((weak))
|
__attribute__ ((weak))
|
||||||
void matrix_init_kb(void) {
|
void matrix_init_kb(void) {}
|
||||||
matrix_init_user();
|
|
||||||
}
|
|
||||||
|
|
||||||
__attribute__ ((weak))
|
__attribute__ ((weak))
|
||||||
void matrix_scan_kb(void) {
|
void matrix_scan_kb(void) {}
|
||||||
matrix_scan_user();
|
|
||||||
}
|
|
||||||
|
|
||||||
inline
|
inline
|
||||||
uint8_t matrix_rows(void) {
|
uint8_t matrix_rows(void) {
|
||||||
|
|
|
@ -14,24 +14,3 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
#include "mini.h"
|
#include "mini.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) {
|
|
||||||
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
|
|
||||||
|
|
||||||
led_set_user(usb_led);
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
|
@ -14,25 +14,3 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
#include "kona_classic.h"
|
#include "kona_classic.h"
|
||||||
|
|
||||||
void matrix_init_kb(void) {
|
|
||||||
// put your keyboard start-up code here
|
|
||||||
// runs once when the firmware starts up
|
|
||||||
led_init_ports();
|
|
||||||
matrix_init_user();
|
|
||||||
}
|
|
||||||
|
|
||||||
void matrix_scan_kb(void) {
|
|
||||||
// put your looping keyboard code here
|
|
||||||
// runs every cycle (a lot)
|
|
||||||
|
|
||||||
matrix_scan_user();
|
|
||||||
}
|
|
||||||
|
|
||||||
void led_init_ports(void) {
|
|
||||||
// DDRB |= (1<<6) | (1<<7); // OUT
|
|
||||||
}
|
|
||||||
|
|
||||||
void led_set_kb(uint8_t usb_led) {
|
|
||||||
// led_set_user(usb_led);
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,22 +1 @@
|
||||||
#include "kudox.h"
|
#include "kudox.h"
|
||||||
|
|
||||||
|
|
||||||
#ifdef SSD1306OLED
|
|
||||||
void led_set_kb(uint8_t usb_led) {
|
|
||||||
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
|
|
||||||
led_set_user(usb_led);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void matrix_init_kb(void) {
|
|
||||||
|
|
||||||
// // green led on
|
|
||||||
// DDRD |= (1<<5);
|
|
||||||
// PORTD &= ~(1<<5);
|
|
||||||
|
|
||||||
// // orange led on
|
|
||||||
// DDRB |= (1<<0);
|
|
||||||
// PORTB &= ~(1<<0);
|
|
||||||
|
|
||||||
matrix_init_user();
|
|
||||||
};
|
|
||||||
|
|
|
@ -1,22 +1 @@
|
||||||
#include "kudox_game.h"
|
#include "kudox_game.h"
|
||||||
|
|
||||||
|
|
||||||
#ifdef SSD1306OLED
|
|
||||||
void led_set_kb(uint8_t usb_led) {
|
|
||||||
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
|
|
||||||
led_set_user(usb_led);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void matrix_init_kb(void) {
|
|
||||||
|
|
||||||
// // green led on
|
|
||||||
// DDRD |= (1<<5);
|
|
||||||
// PORTD &= ~(1<<5);
|
|
||||||
|
|
||||||
// // orange led on
|
|
||||||
// DDRB |= (1<<0);
|
|
||||||
// PORTB &= ~(1<<0);
|
|
||||||
|
|
||||||
matrix_init_user();
|
|
||||||
};
|
|
||||||
|
|
|
@ -20,6 +20,4 @@ void matrix_init_kb(void) {
|
||||||
// Turn status LED on
|
// Turn status LED on
|
||||||
setPinOutput(C14);
|
setPinOutput(C14);
|
||||||
writePinHigh(C14);
|
writePinHigh(C14);
|
||||||
|
|
||||||
matrix_init_user();
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,9 +1 @@
|
||||||
#include "launchpad.h"
|
#include "launchpad.h"
|
||||||
|
|
||||||
void matrix_init_kb(void) {
|
|
||||||
// Undo init of RX LED, we use that port currently
|
|
||||||
//DDRB &= ~(1<<0);
|
|
||||||
|
|
||||||
matrix_init_user();
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
|
@ -1,15 +1 @@
|
||||||
#include "lets_split.h"
|
#include "lets_split.h"
|
||||||
|
|
||||||
void matrix_init_kb(void) {
|
|
||||||
|
|
||||||
// // green led on
|
|
||||||
// DDRD |= (1<<5);
|
|
||||||
// PORTD &= ~(1<<5);
|
|
||||||
|
|
||||||
// // orange led on
|
|
||||||
// DDRB |= (1<<0);
|
|
||||||
// PORTB &= ~(1<<0);
|
|
||||||
|
|
||||||
matrix_init_user();
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
|
@ -1,23 +1 @@
|
||||||
#include "lets_split.h"
|
#include "lets_split.h"
|
||||||
|
|
||||||
|
|
||||||
#ifdef SSD1306OLED
|
|
||||||
void led_set_kb(uint8_t usb_led) {
|
|
||||||
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
|
|
||||||
led_set_user(usb_led);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void matrix_init_kb(void) {
|
|
||||||
|
|
||||||
// // green led on
|
|
||||||
// DDRD |= (1<<5);
|
|
||||||
// PORTD &= ~(1<<5);
|
|
||||||
|
|
||||||
// // orange led on
|
|
||||||
// DDRB |= (1<<0);
|
|
||||||
// PORTB &= ~(1<<0);
|
|
||||||
|
|
||||||
matrix_init_user();
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
|
@ -1,22 +1 @@
|
||||||
#include "lets_split.h"
|
#include "lets_split.h"
|
||||||
|
|
||||||
|
|
||||||
#ifdef SSD1306OLED
|
|
||||||
void led_set_kb(uint8_t usb_led) {
|
|
||||||
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
|
|
||||||
led_set_user(usb_led);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void matrix_init_kb(void) {
|
|
||||||
|
|
||||||
// // green led on
|
|
||||||
// DDRD |= (1<<5);
|
|
||||||
// PORTD &= ~(1<<5);
|
|
||||||
|
|
||||||
// // orange led on
|
|
||||||
// DDRB |= (1<<0);
|
|
||||||
// PORTB &= ~(1<<0);
|
|
||||||
|
|
||||||
matrix_init_user();
|
|
||||||
};
|
|
||||||
|
|
|
@ -4,27 +4,10 @@
|
||||||
#include "lfk65_hs.h"
|
#include "lfk65_hs.h"
|
||||||
#include "keymap.h"
|
#include "keymap.h"
|
||||||
|
|
||||||
void matrix_init_kb(void)
|
|
||||||
{
|
|
||||||
matrix_init_user();
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
void matrix_scan_kb(void)
|
|
||||||
{
|
|
||||||
matrix_scan_user();
|
|
||||||
}
|
|
||||||
|
|
||||||
bool process_record_kb(uint16_t keycode, keyrecord_t* record)
|
bool process_record_kb(uint16_t keycode, keyrecord_t* record)
|
||||||
{
|
{
|
||||||
/* FIXME(skullydazed):
|
|
||||||
* Originally this code always ran no matter what process_record_user() did.
|
|
||||||
* With this PR it will only run if process_record_user() returns true. We
|
|
||||||
* should think through the implications here.
|
|
||||||
*/
|
|
||||||
if (keycode == RESET) {
|
if (keycode == RESET) {
|
||||||
reset_keyboard_kb();
|
reset_keyboard_kb();
|
||||||
} else {
|
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,8 +24,6 @@ const Layer_Info layer_info[] = {
|
||||||
|
|
||||||
void matrix_init_kb(void)
|
void matrix_init_kb(void)
|
||||||
{
|
{
|
||||||
matrix_init_user();
|
|
||||||
|
|
||||||
// Configure the Layer LED
|
// Configure the Layer LED
|
||||||
// Set up 16 bit PWM: Fast PWM, mode 15, inverted
|
// Set up 16 bit PWM: Fast PWM, mode 15, inverted
|
||||||
TCCR1A = 0b11111110;
|
TCCR1A = 0b11111110;
|
||||||
|
@ -102,7 +100,6 @@ void matrix_scan_kb(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
matrix_scan_user();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void click(uint16_t freq, uint16_t duration){
|
void click(uint16_t freq, uint16_t duration){
|
||||||
|
@ -119,11 +116,6 @@ void click(uint16_t freq, uint16_t duration){
|
||||||
|
|
||||||
bool process_record_kb(uint16_t keycode, keyrecord_t* record)
|
bool process_record_kb(uint16_t keycode, keyrecord_t* record)
|
||||||
{
|
{
|
||||||
/* FIXME(skullydazed):
|
|
||||||
* Originally this code always ran no matter what process_record_user() did.
|
|
||||||
* With this PR it will only run if process_record_user() returns true. We
|
|
||||||
* should think through the implications here.
|
|
||||||
*/
|
|
||||||
if (click_toggle && record->event.pressed){
|
if (click_toggle && record->event.pressed){
|
||||||
click(click_hz, click_time);
|
click(click_hz, click_time);
|
||||||
}
|
}
|
||||||
|
@ -223,7 +215,6 @@ void led_set_kb(uint8_t usb_led)
|
||||||
}
|
}
|
||||||
#endif // CAPSLOCK_LED
|
#endif // CAPSLOCK_LED
|
||||||
#endif // ISS_ENABLE
|
#endif // ISS_ENABLE
|
||||||
led_set_user(usb_led);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// LFK lighting info
|
// LFK lighting info
|
||||||
|
|
|
@ -27,7 +27,6 @@ void matrix_init_kb(void)
|
||||||
{
|
{
|
||||||
// put your keyboard start-up code here
|
// put your keyboard start-up code here
|
||||||
// runs once when the firmware starts up
|
// runs once when the firmware starts up
|
||||||
matrix_init_user();
|
|
||||||
set_rgb(31, 0x00, 0x00, 0x00); // Caps lock
|
set_rgb(31, 0x00, 0x00, 0x00); // Caps lock
|
||||||
set_rgb(32, 0xFF, 0x00, 0x00); // Layer indicator, start red
|
set_rgb(32, 0xFF, 0x00, 0x00); // Layer indicator, start red
|
||||||
#ifndef AUDIO_ENABLE
|
#ifndef AUDIO_ENABLE
|
||||||
|
@ -89,7 +88,6 @@ void matrix_scan_kb(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
matrix_scan_user();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void click(uint16_t freq, uint16_t duration){
|
void click(uint16_t freq, uint16_t duration){
|
||||||
|
@ -106,11 +104,6 @@ void click(uint16_t freq, uint16_t duration){
|
||||||
|
|
||||||
bool process_record_kb(uint16_t keycode, keyrecord_t* record)
|
bool process_record_kb(uint16_t keycode, keyrecord_t* record)
|
||||||
{
|
{
|
||||||
/* FIXME(skullydazed):
|
|
||||||
* Originally this code always ran no matter what process_record_user() did.
|
|
||||||
* With this PR it will only run if process_record_user() returns true. We
|
|
||||||
* should think through the implications here.
|
|
||||||
*/
|
|
||||||
if (click_toggle && record->event.pressed){
|
if (click_toggle && record->event.pressed){
|
||||||
click(click_hz, click_time);
|
click(click_hz, click_time);
|
||||||
}
|
}
|
||||||
|
@ -196,7 +189,6 @@ void led_set_kb(uint8_t usb_led)
|
||||||
}else{
|
}else{
|
||||||
set_rgb(31, 0x00, 0x00, 0x00);
|
set_rgb(31, 0x00, 0x00, 0x00);
|
||||||
}
|
}
|
||||||
led_set_user(usb_led);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Lighting info, see lighting.h for details
|
// Lighting info, see lighting.h for details
|
||||||
|
|
|
@ -13,8 +13,6 @@ uint16_t click_time = CLICK_MS;
|
||||||
uint8_t click_toggle = CLICK_ENABLED;
|
uint8_t click_toggle = CLICK_ENABLED;
|
||||||
|
|
||||||
void matrix_init_kb(void) {
|
void matrix_init_kb(void) {
|
||||||
matrix_init_user();
|
|
||||||
|
|
||||||
#ifndef AUDIO_ENABLE
|
#ifndef AUDIO_ENABLE
|
||||||
// If we're not using the audio pin, drive it low
|
// If we're not using the audio pin, drive it low
|
||||||
setPinOutput(C6);
|
setPinOutput(C6);
|
||||||
|
@ -64,8 +62,6 @@ void matrix_scan_kb(void) {
|
||||||
twi_last_ready++;
|
twi_last_ready++;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
matrix_scan_user();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void click(uint16_t freq, uint16_t duration) {
|
void click(uint16_t freq, uint16_t duration) {
|
||||||
|
@ -83,11 +79,6 @@ void click(uint16_t freq, uint16_t duration) {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool process_record_kb(uint16_t keycode, keyrecord_t* record) {
|
bool process_record_kb(uint16_t keycode, keyrecord_t* record) {
|
||||||
/* FIXME(skullydazed):
|
|
||||||
* Originally this code always ran no matter what process_record_user() did.
|
|
||||||
* With this PR it will only run if process_record_user() returns true. We
|
|
||||||
* should think through the implications here.
|
|
||||||
*/
|
|
||||||
if (click_toggle && record->event.pressed) {
|
if (click_toggle && record->event.pressed) {
|
||||||
click(click_hz, click_time);
|
click(click_hz, click_time);
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,9 +30,6 @@ const Layer_Info layer_info[] = {
|
||||||
|
|
||||||
void matrix_init_kb(void)
|
void matrix_init_kb(void)
|
||||||
{
|
{
|
||||||
// put your keyboard start-up code here
|
|
||||||
// runs once when the firmware starts up
|
|
||||||
matrix_init_user();
|
|
||||||
set_rgb(31, 0x00, 0x00, 0x00); // Caps lock
|
set_rgb(31, 0x00, 0x00, 0x00); // Caps lock
|
||||||
set_rgb(32, 0xFF, 0x00, 0x00); // Layer indicator, start red
|
set_rgb(32, 0xFF, 0x00, 0x00); // Layer indicator, start red
|
||||||
#ifndef AUDIO_ENABLE
|
#ifndef AUDIO_ENABLE
|
||||||
|
@ -95,7 +92,6 @@ void matrix_scan_kb(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
matrix_scan_user();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void click(uint16_t freq, uint16_t duration){
|
void click(uint16_t freq, uint16_t duration){
|
||||||
|
@ -112,11 +108,6 @@ void click(uint16_t freq, uint16_t duration){
|
||||||
|
|
||||||
bool process_record_kb(uint16_t keycode, keyrecord_t* record)
|
bool process_record_kb(uint16_t keycode, keyrecord_t* record)
|
||||||
{
|
{
|
||||||
/* FIXME(skullydazed):
|
|
||||||
* Originally this code always ran no matter what process_record_user() did.
|
|
||||||
* With this PR it will only run if process_record_user() returns true. We
|
|
||||||
* should think through the implications here.
|
|
||||||
*/
|
|
||||||
if (click_toggle && record->event.pressed){
|
if (click_toggle && record->event.pressed){
|
||||||
click(click_hz, click_time);
|
click(click_hz, click_time);
|
||||||
}
|
}
|
||||||
|
@ -205,7 +196,6 @@ void led_set_kb(uint8_t usb_led)
|
||||||
}else{
|
}else{
|
||||||
set_rgb(31, 0x00, 0x00, 0x00);
|
set_rgb(31, 0x00, 0x00, 0x00);
|
||||||
}
|
}
|
||||||
led_set_user(usb_led);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Lighting info, see lighting.h for details
|
// Lighting info, see lighting.h for details
|
||||||
|
|
|
@ -15,8 +15,6 @@ uint8_t click_toggle = CLICK_ENABLED;
|
||||||
|
|
||||||
void matrix_init_kb(void)
|
void matrix_init_kb(void)
|
||||||
{
|
{
|
||||||
matrix_init_user();
|
|
||||||
|
|
||||||
#ifdef AUDIO_ENABLE
|
#ifdef AUDIO_ENABLE
|
||||||
// audio_init() sets PB5 to output and drives it low, which breaks our matrix
|
// audio_init() sets PB5 to output and drives it low, which breaks our matrix
|
||||||
// so reset PB5 to input
|
// so reset PB5 to input
|
||||||
|
@ -38,7 +36,6 @@ void matrix_scan_kb(void)
|
||||||
#ifdef WATCHDOG_ENABLE
|
#ifdef WATCHDOG_ENABLE
|
||||||
wdt_reset();
|
wdt_reset();
|
||||||
#endif
|
#endif
|
||||||
matrix_scan_user();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void click(uint16_t freq, uint16_t duration){
|
void click(uint16_t freq, uint16_t duration){
|
||||||
|
@ -55,11 +52,6 @@ void click(uint16_t freq, uint16_t duration){
|
||||||
|
|
||||||
bool process_record_kb(uint16_t keycode, keyrecord_t* record)
|
bool process_record_kb(uint16_t keycode, keyrecord_t* record)
|
||||||
{
|
{
|
||||||
/* FIXME(skullydazed):
|
|
||||||
* Originally this code always ran no matter what process_record_user() did.
|
|
||||||
* With this PR it will only run if process_record_user() returns true. We
|
|
||||||
* should think through the implications here.
|
|
||||||
*/
|
|
||||||
// Test code that turns on the switch led for the key that is pressed
|
// Test code that turns on the switch led for the key that is pressed
|
||||||
// set_backlight_by_keymap(record->event.key.col, record->event.key.row);
|
// set_backlight_by_keymap(record->event.key.col, record->event.key.row);
|
||||||
if (click_toggle && record->event.pressed){
|
if (click_toggle && record->event.pressed){
|
||||||
|
@ -137,13 +129,6 @@ void reset_keyboard_kb(){
|
||||||
reset_keyboard();
|
reset_keyboard();
|
||||||
}
|
}
|
||||||
|
|
||||||
void led_set_kb(uint8_t usb_led)
|
|
||||||
{
|
|
||||||
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
|
|
||||||
|
|
||||||
led_set_user(usb_led);
|
|
||||||
}
|
|
||||||
|
|
||||||
// LFK lighting info
|
// LFK lighting info
|
||||||
const uint8_t switch_matrices[] = {0, 1};
|
const uint8_t switch_matrices[] = {0, 1};
|
||||||
const uint8_t rgb_matrices[] = {6, 7};
|
const uint8_t rgb_matrices[] = {6, 7};
|
||||||
|
|
|
@ -65,12 +65,10 @@ static uint8_t matrix_master_scan(void);
|
||||||
|
|
||||||
__attribute__ ((weak))
|
__attribute__ ((weak))
|
||||||
void matrix_init_kb(void) {
|
void matrix_init_kb(void) {
|
||||||
matrix_init_user();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
__attribute__ ((weak))
|
__attribute__ ((weak))
|
||||||
void matrix_scan_kb(void) {
|
void matrix_scan_kb(void) {
|
||||||
matrix_scan_user();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
__attribute__ ((weak))
|
__attribute__ ((weak))
|
||||||
|
|
|
@ -20,14 +20,6 @@ void matrix_init_kb(void) {
|
||||||
// put your keyboard start-up code here
|
// put your keyboard start-up code here
|
||||||
// runs once when the firmware starts up
|
// runs once when the firmware starts up
|
||||||
led_init_ports();
|
led_init_ports();
|
||||||
matrix_init_user();
|
|
||||||
}
|
|
||||||
|
|
||||||
void matrix_scan_kb(void) {
|
|
||||||
// put your looping keyboard code here
|
|
||||||
// runs every cycle (a lot)
|
|
||||||
|
|
||||||
matrix_scan_user();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void led_init_ports(void) {
|
void led_init_ports(void) {
|
||||||
|
@ -37,8 +29,7 @@ void led_init_ports(void) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void led_set_kb(uint8_t usb_led) {
|
void led_set_kb(uint8_t usb_led) {
|
||||||
// led_set_user(usb_led);
|
if (usb_led & (1<<USB_LED_NUM_LOCK)) {
|
||||||
if (usb_led & (1<<USB_LED_NUM_LOCK)) {
|
|
||||||
// Turn numlock on
|
// Turn numlock on
|
||||||
PORTD |= (1<<2);
|
PORTD |= (1<<2);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -1,5 +1 @@
|
||||||
#include "m10a.h"
|
#include "m10a.h"
|
||||||
|
|
||||||
void matrix_init_kb(void) {
|
|
||||||
matrix_init_user();
|
|
||||||
}
|
|
|
@ -4,16 +4,9 @@
|
||||||
void matrix_init_kb(void) {
|
void matrix_init_kb(void) {
|
||||||
// put your keyboard start-up code here
|
// put your keyboard start-up code here
|
||||||
// runs once when the firmware starts up
|
// runs once when the firmware starts up
|
||||||
matrix_init_user();
|
|
||||||
led_init_ports();
|
led_init_ports();
|
||||||
};
|
};
|
||||||
|
|
||||||
void matrix_scan_kb(void) {
|
|
||||||
// put your looping keyboard code here
|
|
||||||
// runs every cycle (a lot)
|
|
||||||
matrix_scan_user();
|
|
||||||
};
|
|
||||||
|
|
||||||
void led_init_ports(void) {
|
void led_init_ports(void) {
|
||||||
// * Set our LED pins as output
|
// * Set our LED pins as output
|
||||||
DDRB &= ~(1<<5);
|
DDRB &= ~(1<<5);
|
||||||
|
@ -30,5 +23,4 @@ void led_set_kb(uint8_t usb_led) {
|
||||||
// Turn capslock off
|
// Turn capslock off
|
||||||
PORTF &= ~(1<<5);
|
PORTF &= ~(1<<5);
|
||||||
}
|
}
|
||||||
led_set_user(usb_led);
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,16 +4,9 @@
|
||||||
void matrix_init_kb(void) {
|
void matrix_init_kb(void) {
|
||||||
// put your keyboard start-up code here
|
// put your keyboard start-up code here
|
||||||
// runs once when the firmware starts up
|
// runs once when the firmware starts up
|
||||||
matrix_init_user();
|
|
||||||
led_init_ports();
|
led_init_ports();
|
||||||
};
|
};
|
||||||
|
|
||||||
void matrix_scan_kb(void) {
|
|
||||||
// put your looping keyboard code here
|
|
||||||
// runs every cycle (a lot)
|
|
||||||
matrix_scan_user();
|
|
||||||
};
|
|
||||||
|
|
||||||
void led_init_ports(void) {
|
void led_init_ports(void) {
|
||||||
// * Set our LED pins as output
|
// * Set our LED pins as output
|
||||||
DDRE |= (1 << 6);
|
DDRE |= (1 << 6);
|
||||||
|
@ -21,7 +14,3 @@ void led_init_ports(void) {
|
||||||
//Set output high, so the capslock led is off
|
//Set output high, so the capslock led is off
|
||||||
PORTE |= (1 << 6);
|
PORTE |= (1 << 6);
|
||||||
}
|
}
|
||||||
|
|
||||||
void led_set_kb(uint8_t usb_led) {
|
|
||||||
led_set_user(usb_led);
|
|
||||||
}
|
|
||||||
|
|
|
@ -19,32 +19,20 @@ void matrix_init_kb(void) {
|
||||||
// put your keyboard start-up code here
|
// put your keyboard start-up code here
|
||||||
// runs once when the firmware starts up
|
// runs once when the firmware starts up
|
||||||
|
|
||||||
matrix_init_user();
|
|
||||||
led_init_ports();
|
led_init_ports();
|
||||||
}
|
}
|
||||||
|
|
||||||
void matrix_scan_kb(void) {
|
|
||||||
// put your looping keyboard code here
|
|
||||||
// runs every cycle (a lot)
|
|
||||||
|
|
||||||
matrix_scan_user();
|
|
||||||
}
|
|
||||||
|
|
||||||
void led_init_ports(void) {
|
void led_init_ports(void) {
|
||||||
//Set led pin as output, then high (off)
|
//Set led pin as output, then high (off)
|
||||||
writePinHigh(C7);
|
writePinHigh(C7);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool led_update_kb(led_t led_state) {
|
bool led_update_kb(led_t led_state) {
|
||||||
bool res = led_update_user(led_state);
|
// writePin sets the pin high for 1 and low for 0.
|
||||||
if(res) {
|
// In this example the pins are inverted, setting
|
||||||
// writePin sets the pin high for 1 and low for 0.
|
// it low/0 turns it on, and high/1 turns the LED off.
|
||||||
// In this example the pins are inverted, setting
|
// This behavior depends on whether the LED is between the pin
|
||||||
// it low/0 turns it on, and high/1 turns the LED off.
|
// and VCC or the pin and GND.
|
||||||
// This behavior depends on whether the LED is between the pin
|
writePin(C7, !led_state.caps_lock);
|
||||||
// and VCC or the pin and GND.
|
|
||||||
writePin(C7, !led_state.caps_lock);
|
|
||||||
}
|
|
||||||
return res;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -20,17 +20,9 @@ void matrix_init_kb(void) {
|
||||||
// put your keyboard start-up code here
|
// put your keyboard start-up code here
|
||||||
// runs once when the firmware starts up
|
// runs once when the firmware starts up
|
||||||
|
|
||||||
matrix_init_user();
|
|
||||||
led_init_ports();
|
led_init_ports();
|
||||||
}
|
}
|
||||||
|
|
||||||
void matrix_scan_kb(void) {
|
|
||||||
// put your looping keyboard code here
|
|
||||||
// runs every cycle (a lot)
|
|
||||||
|
|
||||||
matrix_scan_user();
|
|
||||||
}
|
|
||||||
|
|
||||||
void led_init_ports(void) {
|
void led_init_ports(void) {
|
||||||
//Set led pin as output, then high (off)
|
//Set led pin as output, then high (off)
|
||||||
|
|
||||||
|
@ -48,11 +40,8 @@ void led_init_ports(void) {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool led_update_kb(led_t led_state) {
|
bool led_update_kb(led_t led_state) {
|
||||||
bool res = led_update_user(led_state);
|
writePin(B2, !led_state.num_lock);
|
||||||
if (res) {
|
writePin(B1, !led_state.caps_lock);
|
||||||
writePin(B2, !led_state.num_lock);
|
writePin(B3, !led_state.scroll_lock);
|
||||||
writePin(B1, !led_state.caps_lock);
|
return true;
|
||||||
writePin(B3, !led_state.scroll_lock);
|
|
||||||
}
|
|
||||||
return res;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,13 +1 @@
|
||||||
#include "ta65.h"
|
#include "ta65.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();
|
|
||||||
};
|
|
||||||
|
|
|
@ -15,15 +15,7 @@
|
||||||
*/
|
*/
|
||||||
#include "wasdat.h"
|
#include "wasdat.h"
|
||||||
|
|
||||||
// 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_init_kb(void) {
|
void matrix_init_kb(void) {
|
||||||
// put your keyboard start-up code here
|
|
||||||
// runs once when the firmware starts up
|
|
||||||
|
|
||||||
matrix_init_user();
|
|
||||||
led_init_ports();
|
led_init_ports();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -37,11 +29,8 @@ void led_init_ports(void) {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool led_update_kb(led_t led_state) {
|
bool led_update_kb(led_t led_state) {
|
||||||
if(led_update_user(led_state)) {
|
writePin(B0, !led_state.caps_lock);
|
||||||
writePin(B0, !led_state.caps_lock);
|
writePin(B1, !led_state.scroll_lock);
|
||||||
writePin(B1, !led_state.scroll_lock);
|
writePin(B2, !led_state.num_lock);
|
||||||
writePin(B2, !led_state.num_lock);
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,17 +4,9 @@ __attribute__ ((weak))
|
||||||
void matrix_init_kb(void) {
|
void matrix_init_kb(void) {
|
||||||
// put your keyboard start-up code here
|
// put your keyboard start-up code here
|
||||||
// runs once when the firmware starts up
|
// runs once when the firmware starts up
|
||||||
matrix_init_user();
|
|
||||||
led_init_ports();
|
led_init_ports();
|
||||||
};
|
};
|
||||||
|
|
||||||
__attribute__ ((weak))
|
|
||||||
void matrix_scan_kb(void) {
|
|
||||||
// put your looping keyboard code here
|
|
||||||
// runs every cycle (a lot)
|
|
||||||
matrix_scan_user();
|
|
||||||
};
|
|
||||||
|
|
||||||
__attribute__ ((weak))
|
__attribute__ ((weak))
|
||||||
void led_init_ports(void) {
|
void led_init_ports(void) {
|
||||||
// * Set our LED pins as output
|
// * Set our LED pins as output
|
||||||
|
@ -24,11 +16,8 @@ void led_init_ports(void) {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool led_update_kb(led_t led_state) {
|
bool led_update_kb(led_t led_state) {
|
||||||
bool runDefault = led_update_user(led_state);
|
writePin(B1, !led_state.num_lock);
|
||||||
if (runDefault) {
|
writePin(B2, !led_state.caps_lock);
|
||||||
writePin(B1, !led_state.num_lock);
|
writePin(B3, !led_state.scroll_lock);
|
||||||
writePin(B2, !led_state.caps_lock);
|
return true;
|
||||||
writePin(B3, !led_state.scroll_lock);
|
|
||||||
}
|
|
||||||
return runDefault;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,12 +34,10 @@ uint32_t row_masks[2]; //NOTE: If more than PA PB used in the future, adjust cod
|
||||||
|
|
||||||
__attribute__ ((weak))
|
__attribute__ ((weak))
|
||||||
void matrix_init_kb(void) {
|
void matrix_init_kb(void) {
|
||||||
matrix_init_user();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
__attribute__ ((weak))
|
__attribute__ ((weak))
|
||||||
void matrix_scan_kb(void) {
|
void matrix_scan_kb(void) {
|
||||||
matrix_scan_user();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
__attribute__ ((weak))
|
__attribute__ ((weak))
|
||||||
|
|
|
@ -34,12 +34,10 @@ uint32_t row_masks[2]; //NOTE: If more than PA PB used in the future, adjust cod
|
||||||
|
|
||||||
__attribute__ ((weak))
|
__attribute__ ((weak))
|
||||||
void matrix_init_kb(void) {
|
void matrix_init_kb(void) {
|
||||||
matrix_init_user();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
__attribute__ ((weak))
|
__attribute__ ((weak))
|
||||||
void matrix_scan_kb(void) {
|
void matrix_scan_kb(void) {
|
||||||
matrix_scan_user();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
__attribute__ ((weak))
|
__attribute__ ((weak))
|
||||||
|
|
|
@ -50,13 +50,7 @@ void rgblight_set(void) {
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void matrix_scan_kb(void) { matrix_scan_user(); }
|
|
||||||
|
|
||||||
void matrix_init_kb(void) {
|
void matrix_init_kb(void) {
|
||||||
matrix_init_user();
|
|
||||||
}
|
|
||||||
__attribute__((weak))
|
|
||||||
void matrix_init_user(void) {
|
|
||||||
#ifdef RGBLIGHT_ENABLE
|
#ifdef RGBLIGHT_ENABLE
|
||||||
rgblight_enable();
|
rgblight_enable();
|
||||||
#endif
|
#endif
|
||||||
|
@ -66,8 +60,7 @@ void matrix_init_user(void) {
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
__attribute__((weak))
|
void matrix_scan_kb(void) {
|
||||||
void matrix_scan_user(void) {
|
|
||||||
#ifdef RGBLIGHT_ENABLE
|
#ifdef RGBLIGHT_ENABLE
|
||||||
rgblight_task();
|
rgblight_task();
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -30,10 +30,6 @@ combo_t key_combos[COMBO_COUNT] = {
|
||||||
|
|
||||||
bool led_adjust_active = false;
|
bool led_adjust_active = false;
|
||||||
|
|
||||||
void matrix_init_kb(void) {
|
|
||||||
matrix_init_user();
|
|
||||||
}
|
|
||||||
|
|
||||||
void process_combo_event(uint8_t combo_index, bool pressed) {
|
void process_combo_event(uint8_t combo_index, bool pressed) {
|
||||||
if (combo_index == LED_ADJUST) {
|
if (combo_index == LED_ADJUST) {
|
||||||
led_adjust_active = pressed;
|
led_adjust_active = pressed;
|
||||||
|
|
|
@ -19,15 +19,6 @@ void matrix_init_kb(void) {
|
||||||
// put your keyboard start-up code here
|
// put your keyboard start-up code here
|
||||||
// runs once when the firmware starts up
|
// runs once when the firmware starts up
|
||||||
setPinOutput(B7);
|
setPinOutput(B7);
|
||||||
|
|
||||||
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) {
|
void led_set_kb(uint8_t usb_led) {
|
||||||
|
@ -38,6 +29,4 @@ void led_set_kb(uint8_t usb_led) {
|
||||||
}else {
|
}else {
|
||||||
writePinHigh(B7);
|
writePinHigh(B7);
|
||||||
}
|
}
|
||||||
|
|
||||||
led_set_user(usb_led);
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,7 +16,6 @@
|
||||||
#include "hannah910.h"
|
#include "hannah910.h"
|
||||||
|
|
||||||
void matrix_init_kb(void) {
|
void matrix_init_kb(void) {
|
||||||
matrix_init_user();
|
|
||||||
led_init_ports();
|
led_init_ports();
|
||||||
};
|
};
|
||||||
void led_init_ports(void) {
|
void led_init_ports(void) {
|
||||||
|
@ -32,10 +31,9 @@ void led_set_kb(uint8_t usb_led) {
|
||||||
} else {
|
} else {
|
||||||
writePinLow(B2);
|
writePinLow(B2);
|
||||||
}
|
}
|
||||||
led_set_user(usb_led);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t layer_state_set_user(uint32_t state)
|
uint32_t layer_state_set_kb(uint32_t state)
|
||||||
{
|
{
|
||||||
// if on layer 1, turn on D2 LED, otherwise off.
|
// if on layer 1, turn on D2 LED, otherwise off.
|
||||||
if (biton32(state) == 1) {
|
if (biton32(state) == 1) {
|
||||||
|
@ -57,5 +55,5 @@ uint32_t layer_state_set_user(uint32_t state)
|
||||||
writePinLow(D0);
|
writePinLow(D0);
|
||||||
}
|
}
|
||||||
|
|
||||||
return state;
|
return layer_state_set_user(state);
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,7 +19,6 @@
|
||||||
void matrix_init_kb(void) {
|
void matrix_init_kb(void) {
|
||||||
// put your keyboard start-up code here
|
// put your keyboard start-up code here
|
||||||
// runs once when the firmware starts up
|
// runs once when the firmware starts up
|
||||||
matrix_init_user();
|
|
||||||
led_init_ports();
|
led_init_ports();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -27,16 +26,14 @@ void led_init_ports(void) {
|
||||||
// * Set our LED pins as output
|
// * Set our LED pins as output
|
||||||
setPinOutput(B3);
|
setPinOutput(B3);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool led_update_kb(led_t led_state) {
|
bool led_update_kb(led_t led_state) {
|
||||||
bool res = led_update_user(led_state);
|
writePin(B3, led_state.caps_lock);
|
||||||
if(res) {
|
rgblight_set_effect_range(1, 30);
|
||||||
writePin(B3, led_state.caps_lock);
|
if (led_state.scroll_lock) {
|
||||||
rgblight_set_effect_range(1, 30);
|
rgblight_setrgb_at(255, 255, 255, 0);
|
||||||
if (led_state.scroll_lock) {
|
} else {
|
||||||
rgblight_setrgb_at(255, 255, 255, 0);
|
rgblight_setrgb_at(0, 0, 0, 0);
|
||||||
} else {
|
|
||||||
rgblight_setrgb_at(0, 0, 0, 0);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return res;
|
return true;
|
||||||
}
|
}
|
|
@ -78,12 +78,10 @@ static void select_col(uint8_t col);
|
||||||
|
|
||||||
__attribute__ ((weak))
|
__attribute__ ((weak))
|
||||||
void matrix_init_kb(void) {
|
void matrix_init_kb(void) {
|
||||||
matrix_init_user();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
__attribute__ ((weak))
|
__attribute__ ((weak))
|
||||||
void matrix_scan_kb(void) {
|
void matrix_scan_kb(void) {
|
||||||
matrix_scan_user();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
__attribute__ ((weak))
|
__attribute__ ((weak))
|
||||||
|
|
|
@ -36,10 +36,6 @@ void matrix_init_kb(void)
|
||||||
// we should get a flashing red light
|
// we should get a flashing red light
|
||||||
wdt_enable(WDTO_500MS);
|
wdt_enable(WDTO_500MS);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// put your keyboard start-up code here
|
|
||||||
// runs once when the firmware starts up
|
|
||||||
matrix_init_user();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void matrix_scan_kb(void)
|
void matrix_scan_kb(void)
|
||||||
|
@ -71,29 +67,17 @@ void matrix_scan_kb(void)
|
||||||
twi_last_ready++;
|
twi_last_ready++;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
matrix_scan_user();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
|
bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
|
||||||
// Test code that turns on the switch led for the key that is pressed
|
// Test code that turns on the switch led for the key that is pressed
|
||||||
// set_backlight_by_keymap(record->event.key.col, record->event.key.row);
|
// set_backlight_by_keymap(record->event.key.col, record->event.key.row);
|
||||||
/* FIXME(skullydazed):
|
|
||||||
* Originally this code always ran no matter what process_record_user() did.
|
|
||||||
* With this PR it will only run if process_record_user() returns true. We
|
|
||||||
* should think through the implications here.
|
|
||||||
*/
|
|
||||||
if (keycode == RESET) {
|
if (keycode == RESET) {
|
||||||
reset_keyboard_kb();
|
reset_keyboard_kb();
|
||||||
} else {
|
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void led_set_kb(uint8_t usb_led) {
|
|
||||||
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
|
|
||||||
led_set_user(usb_led);
|
|
||||||
}
|
|
||||||
|
|
||||||
void reset_keyboard_kb(){
|
void reset_keyboard_kb(){
|
||||||
#ifdef WATCHDOG_ENABLE
|
#ifdef WATCHDOG_ENABLE
|
||||||
MCUSR = 0;
|
MCUSR = 0;
|
||||||
|
|
|
@ -14,23 +14,3 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
#include "meishi.h"
|
#include "meishi.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) {
|
|
||||||
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
|
|
||||||
|
|
||||||
led_set_user(usb_led);
|
|
||||||
}
|
|
||||||
|
|
|
@ -14,31 +14,3 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
#include "meishi2.h"
|
#include "meishi2.h"
|
||||||
|
|
||||||
// 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_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
|
|
||||||
|
|
||||||
led_set_user(usb_led);
|
|
||||||
}
|
|
||||||
|
|
||||||
*/
|
|
||||||
|
|
|
@ -14,23 +14,3 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
#include "meme.h"
|
#include "meme.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) {
|
|
||||||
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
|
|
||||||
|
|
||||||
led_set_user(usb_led);
|
|
||||||
}
|
|
||||||
|
|
|
@ -14,31 +14,3 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
#include "meson.h"
|
#include "meson.h"
|
||||||
|
|
||||||
// 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_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
|
|
||||||
|
|
||||||
led_set_user(usb_led);
|
|
||||||
}
|
|
||||||
|
|
||||||
*/
|
|
||||||
|
|
|
@ -14,23 +14,3 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
#include "miniaxe.h"
|
#include "miniaxe.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) {
|
|
||||||
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
|
|
||||||
|
|
||||||
led_set_user(usb_led);
|
|
||||||
}
|
|
||||||
|
|
|
@ -50,12 +50,10 @@ static matrix_row_t matrix[MATRIX_ROWS];
|
||||||
|
|
||||||
__attribute__ ((weak))
|
__attribute__ ((weak))
|
||||||
void matrix_init_kb(void) {
|
void matrix_init_kb(void) {
|
||||||
matrix_init_user();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
__attribute__ ((weak))
|
__attribute__ ((weak))
|
||||||
void matrix_scan_kb(void) {
|
void matrix_scan_kb(void) {
|
||||||
matrix_scan_user();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
__attribute__ ((weak))
|
__attribute__ ((weak))
|
||||||
|
|
|
@ -14,7 +14,6 @@ void led_init(void) {
|
||||||
void matrix_init_kb(void) {
|
void matrix_init_kb(void) {
|
||||||
// put your keyboard start-up code here
|
// put your keyboard start-up code here
|
||||||
// runs once when the firmware starts up
|
// runs once when the firmware starts up
|
||||||
matrix_init_user();
|
|
||||||
uart_init();
|
uart_init();
|
||||||
led_init();
|
led_init();
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,21 +1 @@
|
||||||
#include "miuni32.h"
|
#include "miuni32.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) {
|
|
||||||
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
|
|
||||||
|
|
||||||
led_set_user(usb_led);
|
|
||||||
}
|
|
||||||
|
|
|
@ -21,18 +21,7 @@
|
||||||
void matrix_init_kb(void) {
|
void matrix_init_kb(void) {
|
||||||
/* the bootloader can leave LEDs on, so */
|
/* the bootloader can leave LEDs on, so */
|
||||||
set_all_leds_to(0, 0, 0);
|
set_all_leds_to(0, 0, 0);
|
||||||
matrix_init_user();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void matrix_scan_kb(void) {
|
void matrix_scan_kb(void) {
|
||||||
matrix_scan_user();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
__attribute__ ((weak))
|
|
||||||
void matrix_scan_user(void) {
|
|
||||||
}
|
|
||||||
|
|
||||||
__attribute__ ((weak))
|
|
||||||
void matrix_init_user(void) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
|
@ -98,9 +98,9 @@ __attribute__((weak)) void matrix_init_quantum(void) { matrix_init_kb(); }
|
||||||
|
|
||||||
__attribute__((weak)) void matrix_scan_quantum(void) { matrix_scan_kb(); }
|
__attribute__((weak)) void matrix_scan_quantum(void) { matrix_scan_kb(); }
|
||||||
|
|
||||||
__attribute__((weak)) void matrix_init_kb(void) { matrix_init_user(); }
|
__attribute__((weak)) void matrix_init_kb(void) {}
|
||||||
|
|
||||||
__attribute__((weak)) void matrix_scan_kb(void) { matrix_scan_user(); }
|
__attribute__((weak)) void matrix_scan_kb(void) {}
|
||||||
|
|
||||||
__attribute__((weak)) void matrix_init_user(void) {}
|
__attribute__((weak)) void matrix_init_user(void) {}
|
||||||
|
|
||||||
|
|
|
@ -28,21 +28,8 @@ void matrix_init_kb(void) {
|
||||||
|
|
||||||
setPinOutput(CAPS_PIN);
|
setPinOutput(CAPS_PIN);
|
||||||
setPinOutput(SCROLL_PIN);
|
setPinOutput(SCROLL_PIN);
|
||||||
|
|
||||||
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) {
|
void led_set_kb(uint8_t usb_led) {
|
||||||
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
|
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
|
||||||
|
|
||||||
|
@ -57,6 +44,4 @@ void led_set_kb(uint8_t usb_led) {
|
||||||
} else {
|
} else {
|
||||||
writePinLow(SCROLL_PIN);
|
writePinLow(SCROLL_PIN);
|
||||||
}
|
}
|
||||||
|
|
||||||
led_set_user(usb_led);
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,15 +35,6 @@ void matrix_init_kb(void) {
|
||||||
fled_init();
|
fled_init();
|
||||||
via_eeprom_set_valid(true);
|
via_eeprom_set_valid(true);
|
||||||
#endif // VIA_ENABLE
|
#endif // VIA_ENABLE
|
||||||
|
|
||||||
matrix_init_user();
|
|
||||||
}
|
|
||||||
|
|
||||||
void matrix_scan_kb(void) {
|
|
||||||
// put your looping keyboard code here
|
|
||||||
// runs every cycle (a lot)
|
|
||||||
|
|
||||||
matrix_scan_user();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
|
bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
|
||||||
|
@ -54,7 +45,7 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
|
||||||
|
|
||||||
bool led_update_kb(led_t led_state) {
|
bool led_update_kb(led_t led_state) {
|
||||||
fled_lock_update(led_state);
|
fled_lock_update(led_state);
|
||||||
return led_update_user(led_state);
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
layer_state_t layer_state_set_kb(layer_state_t state) {
|
layer_state_t layer_state_set_kb(layer_state_t state) {
|
||||||
|
|
|
@ -1,5 +1 @@
|
||||||
#include "nafuda.h"
|
#include "nafuda.h"
|
||||||
|
|
||||||
void matrix_init_kb(void) {
|
|
||||||
matrix_init_user();
|
|
||||||
};
|
|
||||||
|
|
|
@ -1,12 +1,5 @@
|
||||||
#include "naked48.h"
|
#include "naked48.h"
|
||||||
|
|
||||||
/*#ifdef SSD1306OLED
|
|
||||||
void led_set_kb(uint8_t usb_led) {
|
|
||||||
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
|
|
||||||
//led_set_user(usb_led);
|
|
||||||
}
|
|
||||||
#endif*/
|
|
||||||
|
|
||||||
#ifdef RGB_MATRIX_ENABLE
|
#ifdef RGB_MATRIX_ENABLE
|
||||||
led_config_t g_led_config = { {
|
led_config_t g_led_config = { {
|
||||||
// Key Matrix to LED Index
|
// Key Matrix to LED Index
|
||||||
|
@ -30,7 +23,3 @@ void led_set_kb(uint8_t usb_led) {
|
||||||
4, 4, 4, 4, 4, 4, 4, 4
|
4, 4, 4, 4, 4, 4, 4, 4
|
||||||
} };
|
} };
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void matrix_init_kb(void) {
|
|
||||||
matrix_init_user();
|
|
||||||
};
|
|
|
@ -1,5 +1 @@
|
||||||
#include "naked60.h"
|
#include "naked60.h"
|
||||||
|
|
||||||
void matrix_init_kb(void) {
|
|
||||||
matrix_init_user();
|
|
||||||
};
|
|
||||||
|
|
|
@ -1,5 +1 @@
|
||||||
#include "rev1.h"
|
#include "rev1.h"
|
||||||
|
|
||||||
void matrix_init_kb(void) {
|
|
||||||
matrix_init_user();
|
|
||||||
};
|
|
||||||
|
|
|
@ -14,23 +14,3 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
#include "namecard2x4.h"
|
#include "namecard2x4.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) {
|
|
||||||
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
|
|
||||||
|
|
||||||
led_set_user(usb_led);
|
|
||||||
}
|
|
||||||
|
|
|
@ -16,15 +16,9 @@
|
||||||
#include "rev0.h"
|
#include "rev0.h"
|
||||||
|
|
||||||
void matrix_init_kb(void) {
|
void matrix_init_kb(void) {
|
||||||
// put your keyboard start-up code here
|
|
||||||
// runs once when the firmware starts up
|
|
||||||
|
|
||||||
//set the indicator LED pin to Output
|
//set the indicator LED pin to Output
|
||||||
setPinOutput(B5);
|
setPinOutput(B5);
|
||||||
//set HIGH for off.
|
//set HIGH for off.
|
||||||
writePinHigh(B5);
|
writePinHigh(B5);
|
||||||
|
|
||||||
//call any user functions
|
|
||||||
matrix_init_user();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -16,15 +16,9 @@
|
||||||
#include "rev2.h"
|
#include "rev2.h"
|
||||||
|
|
||||||
void matrix_init_kb(void) {
|
void matrix_init_kb(void) {
|
||||||
// put your keyboard start-up code here
|
|
||||||
// runs once when the firmware starts up
|
|
||||||
|
|
||||||
//set the indicator LED pin to Output
|
//set the indicator LED pin to Output
|
||||||
setPinOutput(B5);
|
setPinOutput(B5);
|
||||||
//set HIGH for off.
|
//set HIGH for off.
|
||||||
writePinHigh(B5);
|
writePinHigh(B5);
|
||||||
|
|
||||||
//call any user functions
|
|
||||||
matrix_init_user();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -16,15 +16,9 @@
|
||||||
#include "rev3.h"
|
#include "rev3.h"
|
||||||
|
|
||||||
void matrix_init_kb(void) {
|
void matrix_init_kb(void) {
|
||||||
// put your keyboard start-up code here
|
|
||||||
// runs once when the firmware starts up
|
|
||||||
|
|
||||||
//set the indicator LED pin to Output
|
//set the indicator LED pin to Output
|
||||||
setPinOutput(B5);
|
setPinOutput(B5);
|
||||||
//set HIGH for off.
|
//set HIGH for off.
|
||||||
writePinHigh(B5);
|
writePinHigh(B5);
|
||||||
|
|
||||||
//call any user functions
|
|
||||||
matrix_init_user();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -107,12 +107,10 @@ void matrix_scan_quantum(void) {
|
||||||
|
|
||||||
__attribute__ ((weak))
|
__attribute__ ((weak))
|
||||||
void matrix_init_kb(void) {
|
void matrix_init_kb(void) {
|
||||||
matrix_init_user();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
__attribute__ ((weak))
|
__attribute__ ((weak))
|
||||||
void matrix_scan_kb(void) {
|
void matrix_scan_kb(void) {
|
||||||
matrix_scan_user();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
__attribute__ ((weak))
|
__attribute__ ((weak))
|
||||||
|
|
|
@ -14,23 +14,3 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
#include "nek_type_a.h"
|
#include "nek_type_a.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) {
|
|
||||||
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
|
|
||||||
|
|
||||||
led_set_user(usb_led);
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,5 +1 @@
|
||||||
#include "newgame40.h"
|
#include "newgame40.h"
|
||||||
|
|
||||||
void matrix_init_kb(void) {
|
|
||||||
matrix_init_user();
|
|
||||||
}
|
|
||||||
|
|
|
@ -14,31 +14,3 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
#include "nightmare.h"
|
#include "nightmare.h"
|
||||||
|
|
||||||
// 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_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
|
|
||||||
|
|
||||||
led_set_user(usb_led);
|
|
||||||
}
|
|
||||||
|
|
||||||
*/
|
|
||||||
|
|
|
@ -14,6 +14,4 @@ void matrix_init_kb(void) {
|
||||||
// Turn status LED on
|
// Turn status LED on
|
||||||
setPinOutput(E6);
|
setPinOutput(E6);
|
||||||
writePinHigh(E6);
|
writePinHigh(E6);
|
||||||
|
|
||||||
matrix_init_user();
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,33 +23,12 @@ void matrix_init_kb(void) {
|
||||||
// put your keyboard start-up code here
|
// put your keyboard start-up code here
|
||||||
// runs once when the firmware starts up
|
// runs once when the firmware starts up
|
||||||
setPinOutput(C6);
|
setPinOutput(C6);
|
||||||
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) {
|
void led_set_kb(uint8_t usb_led) {
|
||||||
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
|
|
||||||
|
|
||||||
led_set_user(usb_led);
|
|
||||||
}
|
|
||||||
|
|
||||||
*/
|
|
||||||
|
|
||||||
void led_set_kb(uint8_t usb_led) {
|
|
||||||
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
|
|
||||||
if (IS_LED_ON(usb_led, USB_LED_NUM_LOCK)) {
|
if (IS_LED_ON(usb_led, USB_LED_NUM_LOCK)) {
|
||||||
writePinLow(C6);
|
writePinLow(C6);
|
||||||
} else {
|
} else {
|
||||||
writePinHigh(C6);
|
writePinHigh(C6);
|
||||||
}
|
}
|
||||||
led_set_user(usb_led);
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,34 +21,13 @@
|
||||||
|
|
||||||
|
|
||||||
void matrix_init_kb(void) {
|
void matrix_init_kb(void) {
|
||||||
// put your keyboard start-up code here
|
|
||||||
// runs once when the firmware starts up
|
|
||||||
setPinOutput(B1);
|
setPinOutput(B1);
|
||||||
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
|
|
||||||
|
|
||||||
led_set_user(usb_led);
|
|
||||||
}
|
|
||||||
|
|
||||||
*/
|
|
||||||
|
|
||||||
void led_set_kb(uint8_t usb_led) {
|
void led_set_kb(uint8_t usb_led) {
|
||||||
if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) {
|
if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) {
|
||||||
writePinLow(B1);
|
writePinLow(B1);
|
||||||
} else {
|
} else {
|
||||||
writePinHigh(B1);
|
writePinHigh(B1);
|
||||||
}
|
}
|
||||||
|
|
||||||
led_set_user(usb_led);
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,17 +21,12 @@
|
||||||
|
|
||||||
|
|
||||||
void matrix_init_kb(void) {
|
void matrix_init_kb(void) {
|
||||||
// put your keyboard start-up code here
|
|
||||||
// runs once when the firmware starts up
|
|
||||||
setPinOutput(D5);
|
setPinOutput(D5);
|
||||||
setPinOutput(D0);
|
setPinOutput(D0);
|
||||||
matrix_init_user();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool led_update_kb(led_t led_state) {
|
bool led_update_kb(led_t led_state) {
|
||||||
if(led_update_user(led_state)) {
|
writePin(D5, led_state.caps_lock);
|
||||||
writePin(D5, led_state.caps_lock);
|
writePin(D0, led_state.scroll_lock);
|
||||||
writePin(D0, led_state.scroll_lock);
|
|
||||||
}
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
|
@ -15,32 +15,10 @@
|
||||||
*/
|
*/
|
||||||
#include "x268.h"
|
#include "x268.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) {
|
void led_set_kb(uint8_t usb_led) {
|
||||||
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
|
|
||||||
|
|
||||||
led_set_user(usb_led);
|
|
||||||
}
|
|
||||||
|
|
||||||
void led_set_user(uint8_t usb_led) {
|
|
||||||
|
|
||||||
if (usb_led & (1 << USB_LED_CAPS_LOCK)) {
|
if (usb_led & (1 << USB_LED_CAPS_LOCK)) {
|
||||||
DDRB |= (1 << 0); PORTB |= (1 << 0);
|
DDRB |= (1 << 0); PORTB |= (1 << 0);
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
DDRB &= ~(1 << 0); PORTB &= ~(1 << 0);
|
DDRB &= ~(1 << 0); PORTB &= ~(1 << 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,19 +21,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
#include "orthodox.h"
|
#include "orthodox.h"
|
||||||
|
|
||||||
void matrix_init_kb(void) {
|
|
||||||
|
|
||||||
//// // green led on
|
|
||||||
//// DDRD |= (1<<5);
|
|
||||||
//// PORTD &= ~(1<<5);
|
|
||||||
|
|
||||||
//// // orange led on
|
|
||||||
//// DDRB |= (1<<0);
|
|
||||||
//// PORTB &= ~(1<<0);
|
|
||||||
|
|
||||||
matrix_init_user();
|
|
||||||
};
|
|
||||||
|
|
||||||
#ifdef SWAP_HANDS_ENABLE
|
#ifdef SWAP_HANDS_ENABLE
|
||||||
__attribute__ ((weak))
|
__attribute__ ((weak))
|
||||||
// swap-hands action needs a matrix to define the swap
|
// swap-hands action needs a matrix to define the swap
|
||||||
|
|
|
@ -21,19 +21,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
#include "orthodox.h"
|
#include "orthodox.h"
|
||||||
|
|
||||||
void matrix_init_kb(void) {
|
|
||||||
|
|
||||||
//// // green led on
|
|
||||||
//// DDRD |= (1<<5);
|
|
||||||
//// PORTD &= ~(1<<5);
|
|
||||||
|
|
||||||
//// // orange led on
|
|
||||||
//// DDRB |= (1<<0);
|
|
||||||
//// PORTB &= ~(1<<0);
|
|
||||||
|
|
||||||
matrix_init_user();
|
|
||||||
};
|
|
||||||
|
|
||||||
#ifdef SWAP_HANDS_ENABLE
|
#ifdef SWAP_HANDS_ENABLE
|
||||||
__attribute__ ((weak))
|
__attribute__ ((weak))
|
||||||
// swap-hands action needs a matrix to define the swap
|
// swap-hands action needs a matrix to define the swap
|
||||||
|
|
|
@ -21,19 +21,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
#include "orthodox.h"
|
#include "orthodox.h"
|
||||||
|
|
||||||
void matrix_init_kb(void) {
|
|
||||||
|
|
||||||
//// // green led on
|
|
||||||
//// DDRD |= (1<<5);
|
|
||||||
//// PORTD &= ~(1<<5);
|
|
||||||
|
|
||||||
//// // orange led on
|
|
||||||
//// DDRB |= (1<<0);
|
|
||||||
//// PORTB &= ~(1<<0);
|
|
||||||
|
|
||||||
matrix_init_user();
|
|
||||||
};
|
|
||||||
|
|
||||||
#ifdef SWAP_HANDS_ENABLE
|
#ifdef SWAP_HANDS_ENABLE
|
||||||
__attribute__ ((weak))
|
__attribute__ ((weak))
|
||||||
// swap-hands action needs a matrix to define the swap
|
// swap-hands action needs a matrix to define the swap
|
||||||
|
|
|
@ -14,31 +14,3 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
#include "rev0.h"
|
#include "rev0.h"
|
||||||
|
|
||||||
// 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_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
|
|
||||||
|
|
||||||
led_set_user(usb_led);
|
|
||||||
}
|
|
||||||
|
|
||||||
*/
|
|
||||||
|
|
|
@ -14,31 +14,3 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
#include "rev1.h"
|
#include "rev1.h"
|
||||||
|
|
||||||
// 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_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
|
|
||||||
|
|
||||||
led_set_user(usb_led);
|
|
||||||
}
|
|
||||||
|
|
||||||
*/
|
|
||||||
|
|
|
@ -14,31 +14,3 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
#include "pdxkbc.h"
|
#include "pdxkbc.h"
|
||||||
|
|
||||||
// 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_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
|
|
||||||
|
|
||||||
led_set_user(usb_led);
|
|
||||||
}
|
|
||||||
|
|
||||||
*/
|
|
||||||
|
|
|
@ -1,21 +1,12 @@
|
||||||
#include "ixora.h"
|
#include "ixora.h"
|
||||||
|
|
||||||
void matrix_init_kb(void) {
|
void matrix_init_kb(void) {
|
||||||
// put your keyboard start-up code here
|
|
||||||
// runs once when the firmware starts up
|
|
||||||
setPinOutput(A8);
|
setPinOutput(A8);
|
||||||
setPinOutput(A9);
|
setPinOutput(A9);
|
||||||
setPinOutput(A10);
|
setPinOutput(A10);
|
||||||
writePinLow(A8);
|
writePinLow(A8);
|
||||||
writePinLow(A9);
|
writePinLow(A9);
|
||||||
writePinLow(A10);
|
writePinLow(A10);
|
||||||
|
|
||||||
matrix_init_user();
|
|
||||||
}
|
|
||||||
|
|
||||||
void matrix_scan_kb(void) {
|
|
||||||
|
|
||||||
matrix_scan_user();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void led_set_kb(uint8_t usb_led) {
|
void led_set_kb(uint8_t usb_led) {
|
||||||
|
@ -34,5 +25,4 @@ void led_set_kb(uint8_t usb_led) {
|
||||||
} else {
|
} else {
|
||||||
writePinLow(A8);
|
writePinLow(A8);
|
||||||
}
|
}
|
||||||
led_set_user(usb_led);
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,31 +14,3 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
#include "booster.h"
|
#include "booster.h"
|
||||||
|
|
||||||
// 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_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
|
|
||||||
|
|
||||||
led_set_user(usb_led);
|
|
||||||
}
|
|
||||||
|
|
||||||
*/
|
|
||||||
|
|
|
@ -16,17 +16,7 @@
|
||||||
#include "phantom.h"
|
#include "phantom.h"
|
||||||
|
|
||||||
void matrix_init_kb(void) {
|
void matrix_init_kb(void) {
|
||||||
// put your keyboard start-up code here
|
|
||||||
// runs once when the firmware starts up
|
|
||||||
led_init_ports();
|
led_init_ports();
|
||||||
matrix_init_user();
|
|
||||||
}
|
|
||||||
|
|
||||||
void matrix_scan_kb(void) {
|
|
||||||
// put your looping keyboard code here
|
|
||||||
// runs every cycle (a lot)
|
|
||||||
|
|
||||||
matrix_scan_user();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void led_init_ports(void) {
|
void led_init_ports(void) {
|
||||||
|
@ -51,6 +41,4 @@ void led_set_kb(uint8_t usb_led) {
|
||||||
{
|
{
|
||||||
PORTB &= ~(1<<7); // LO
|
PORTB &= ~(1<<7); // LO
|
||||||
}
|
}
|
||||||
|
|
||||||
led_set_user(usb_led);
|
|
||||||
}
|
}
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue