Remerge 0.16.x' into firmware21
This commit is contained in:
@@ -200,6 +200,5 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
//#define NO_ACTION_LAYER
|
||||
//#define NO_ACTION_TAPPING
|
||||
//#define NO_ACTION_ONESHOT
|
||||
#define NO_ACTION_MACRO
|
||||
#define NO_ACTION_FUNCTION
|
||||
|
||||
//#define DEBUG_MATRIX_SCAN_RATE
|
||||
|
||||
@@ -76,7 +76,7 @@ void matrix_init_custom(void) {
|
||||
// Reads and stores a row, returning
|
||||
// whether a change occurred.
|
||||
static inline bool store_raw_matrix_row(uint8_t index) {
|
||||
matrix_row_t temp = read_cols(index);
|
||||
matrix_row_t temp = 0x3F & read_cols(index);
|
||||
if (raw_matrix[index] != temp) {
|
||||
raw_matrix[index] = temp;
|
||||
return true;
|
||||
|
||||
@@ -36,3 +36,5 @@ MOUSE_SHARED_EP = no
|
||||
# Disable unsupported hardware
|
||||
AUDIO_SUPPORTED = no
|
||||
BACKLIGHT_SUPPORTED = no
|
||||
|
||||
MOUSE_SHARED_EP = no
|
||||
|
||||
@@ -5,6 +5,6 @@
|
||||
"usb": {
|
||||
"vid": "0xFEED",
|
||||
"pid": "0x6465",
|
||||
"device_ver": "0x0001"
|
||||
"device_version": "0.0.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -75,8 +75,6 @@
|
||||
//#define NO_ACTION_LAYER
|
||||
//#define NO_ACTION_TAPPING
|
||||
//#define NO_ACTION_ONESHOT
|
||||
#define NO_ACTION_MACRO
|
||||
#define NO_ACTION_FUNCTION
|
||||
|
||||
#define DRIVER_ADDR_1 0b1110100
|
||||
#define DRIVER_ADDR_2 0b1110111
|
||||
@@ -142,10 +140,6 @@
|
||||
// #define RGB_MATRIX_LED_PROCESS_LIMIT 5
|
||||
// #define RGB_MATRIX_LED_FLUSH_LIMIT 26
|
||||
|
||||
#define IGNORE_MOD_TAP_INTERRUPT
|
||||
|
||||
#define TAPPING_TOGGLE 1
|
||||
|
||||
#define MOUSEKEY_INTERVAL 20
|
||||
#define MOUSEKEY_DELAY 0
|
||||
#define MOUSEKEY_TIME_TO_MAX 60
|
||||
|
||||
@@ -102,9 +102,9 @@ bool matrix_scan_custom(matrix_row_t current_matrix[]) {
|
||||
print("trying to reset mcp23018\n");
|
||||
mcp23018_init();
|
||||
if (!mcp23018_initd) {
|
||||
print("left side not responding\n");
|
||||
print("right side not responding\n");
|
||||
} else {
|
||||
print("left side attached\n");
|
||||
print("right side attached\n");
|
||||
#ifdef RGB_MATRIX_ENABLE
|
||||
rgb_matrix_init();
|
||||
#endif
|
||||
|
||||
@@ -19,9 +19,6 @@
|
||||
|
||||
|
||||
#include "moonlander.h"
|
||||
#ifdef WEBUSB_ENABLE
|
||||
# include "webusb.h"
|
||||
#endif
|
||||
|
||||
keyboard_config_t keyboard_config;
|
||||
|
||||
@@ -83,50 +80,9 @@ void moonlander_led_task(void) {
|
||||
wait_ms(155);
|
||||
}
|
||||
#endif
|
||||
#ifdef WEBUSB_ENABLE
|
||||
else if (webusb_state.pairing == true) {
|
||||
static uint8_t led_mask;
|
||||
|
||||
ML_LED_1(false);
|
||||
ML_LED_2(false);
|
||||
ML_LED_3(false);
|
||||
ML_LED_4(false);
|
||||
ML_LED_5(false);
|
||||
ML_LED_6(false);
|
||||
|
||||
if (!led_mask) {
|
||||
led_mask = 1;
|
||||
} else {
|
||||
led_mask++;
|
||||
if (led_mask > 12) led_mask = 1;
|
||||
}
|
||||
switch (led_mask) {
|
||||
case 1:
|
||||
case 12:
|
||||
ML_LED_1(true);
|
||||
break;
|
||||
case 2:
|
||||
case 11:
|
||||
ML_LED_2(true);
|
||||
break;
|
||||
case 3:
|
||||
case 10:
|
||||
ML_LED_3(true);
|
||||
break;
|
||||
case 4:
|
||||
case 9:
|
||||
ML_LED_4(true);
|
||||
break;
|
||||
case 5:
|
||||
case 8:
|
||||
ML_LED_5(true);
|
||||
break;
|
||||
case 6:
|
||||
case 7:
|
||||
ML_LED_6(true);
|
||||
break;
|
||||
}
|
||||
wait_ms(150);
|
||||
#if !defined(MOONLANDER_USER_LEDS)
|
||||
else {
|
||||
layer_state_set_kb(layer_state);
|
||||
}
|
||||
#endif
|
||||
#if !defined(MOONLANDER_USER_LEDS)
|
||||
@@ -174,8 +130,10 @@ layer_state_t layer_state_set_kb(layer_state_t state) {
|
||||
bool LED_3 = false;
|
||||
bool LED_4 = false;
|
||||
bool LED_5 = false;
|
||||
#if !defined(CAPS_LOCK_STATUS)
|
||||
bool LED_6 = false;
|
||||
|
||||
#endif
|
||||
|
||||
uint8_t layer = get_highest_layer(state);
|
||||
switch (layer) {
|
||||
case 1:
|
||||
@@ -430,11 +388,6 @@ bool led_update_kb(led_t led_state) {
|
||||
bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
|
||||
if (!process_record_user(keycode, record)) { return false; }
|
||||
switch (keycode) {
|
||||
#ifdef WEBUSB_ENABLE
|
||||
case WEBUSB_PAIR:
|
||||
if (!record->event.pressed && !webusb_state.pairing) layer_state_set_kb(layer_state);
|
||||
break;
|
||||
#endif
|
||||
#if !defined(MOONLANDER_USER_LEDS)
|
||||
case LED_LEVEL:
|
||||
if (record->event.pressed) {
|
||||
|
||||
@@ -31,7 +31,7 @@ By default, the Indicator LEDs are used to indicate the layer state for the keyb
|
||||
|
||||
### Oryx Configuration
|
||||
|
||||
To enable the features from Oryx (ZSA's Configurator), either compile the the `default` keymap, or add `#define ORYX_CONFIGURATOR` to your `config.h` file.
|
||||
To enable the features from Oryx (ZSA's Configurator), either compile the `default` keymap, or add `#define ORYX_CONFIGURATOR` to your `config.h` file.
|
||||
|
||||
This enables the front Indicator LEDs, and the `TOGGLE_LAYER_COLOR` keycode. The `TOGGLE_LAYER_COLOR` keycode toggles the customized LED map configured on Oryx.
|
||||
|
||||
|
||||
@@ -27,3 +27,5 @@ MOUSE_SHARED_EP = no
|
||||
#project specific files
|
||||
SRC += matrix.c
|
||||
QUANTUM_LIB_SRC += i2c_master.c
|
||||
|
||||
MOUSE_SHARED_EP = no
|
||||
|
||||
@@ -75,5 +75,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
//#define NO_ACTION_LAYER
|
||||
//#define NO_ACTION_TAPPING
|
||||
//#define NO_ACTION_ONESHOT
|
||||
//#define NO_ACTION_MACRO
|
||||
//#define NO_ACTION_FUNCTION
|
||||
|
||||
@@ -107,8 +107,6 @@
|
||||
//#define NO_ACTION_LAYER
|
||||
//#define NO_ACTION_TAPPING
|
||||
//#define NO_ACTION_ONESHOT
|
||||
//#define NO_ACTION_MACRO
|
||||
//#define NO_ACTION_FUNCTION
|
||||
|
||||
#define DRIVER_ADDR_1 0b1010000
|
||||
|
||||
|
||||
@@ -106,6 +106,7 @@ led_config_t g_led_config = { {
|
||||
1, 1, 1, 1, 1, 4, 1, 1, 1, 1, 1
|
||||
} };
|
||||
|
||||
<<<<<<< HEAD
|
||||
void suspend_power_down_kb(void) {
|
||||
rgb_matrix_set_color_all(0, 0, 0);
|
||||
rgb_matrix_set_suspend_state(true);
|
||||
@@ -120,6 +121,8 @@ void keyboard_post_init_kb(void) {
|
||||
rgb_matrix_enable_noeeprom();
|
||||
keyboard_post_init_user();
|
||||
}
|
||||
=======
|
||||
>>>>>>> qmk/master
|
||||
#endif
|
||||
|
||||
/* Left B9 Right B8 */
|
||||
@@ -241,7 +244,7 @@ layer_state_t layer_state_set_kb(layer_state_t state) {
|
||||
planck_ez_left_led_off();
|
||||
planck_ez_right_led_off();
|
||||
state = layer_state_set_user(state);
|
||||
uint8_t layer = biton32(state);
|
||||
uint8_t layer = get_highest_layer(state);
|
||||
switch (layer) {
|
||||
case 1:
|
||||
planck_ez_left_led_on();
|
||||
|
||||
@@ -16,7 +16,7 @@ NKRO_ENABLE = yes # Enable N-Key Rollover
|
||||
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
|
||||
AUDIO_ENABLE = yes # Audio output
|
||||
AUDIO_DRIVER = dac_additive
|
||||
RGBLIGHT_ENABLE = no
|
||||
RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight.
|
||||
|
||||
ENCODER_ENABLE = yes
|
||||
RGB_MATRIX_DRIVER = IS31FL3737
|
||||
@@ -28,3 +28,5 @@ LAYOUTS_HAS_RGB = no
|
||||
RGB_MATRIX_SUPPORTED = yes
|
||||
RGBLIGHT_SUPPORTED = no
|
||||
BAKCLIGHT_SUPPORTED = no
|
||||
|
||||
MOUSE_SHARED_EP = no
|
||||
|
||||
@@ -46,7 +46,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
* ,-----------------------------------------------------------------------------------.
|
||||
* | Tab | Q | W | E | R | T | Y | U | I | O | P | Bksp |
|
||||
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
||||
* | Esc | A | S | D | F | G | H | J | K | L | ; | " |
|
||||
* | Esc | A | S | D | F | G | H | J | K | L | ; | ' |
|
||||
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
||||
* | Shift| Z | X | C | V | B | N | M | , | . | / |Enter |
|
||||
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
||||
@@ -64,7 +64,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
* ,-----------------------------------------------------------------------------------.
|
||||
* | Tab | Q | W | F | P | G | J | L | U | Y | ; | Bksp |
|
||||
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
||||
* | Esc | A | R | S | T | D | H | N | E | I | O | " |
|
||||
* | Esc | A | R | S | T | D | H | N | E | I | O | ' |
|
||||
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
||||
* | Shift| Z | X | C | V | B | K | M | , | . | / |Enter |
|
||||
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
||||
@@ -80,7 +80,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
/* Dvorak
|
||||
* ,-----------------------------------------------------------------------------------.
|
||||
* | Tab | " | , | . | P | Y | F | G | C | R | L | Bksp |
|
||||
* | Tab | ' | , | . | P | Y | F | G | C | R | L | Bksp |
|
||||
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
||||
* | Esc | A | O | E | U | I | D | H | T | N | S | / |
|
||||
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
||||
|
||||
@@ -92,7 +92,7 @@ void set_layer_color(int layer) {
|
||||
}
|
||||
|
||||
void rgb_matrix_indicators_user(void) {
|
||||
if (g_suspend_state || keyboard_config.disable_layer_led) {
|
||||
if (keyboard_config.disable_layer_led) {
|
||||
return;
|
||||
}
|
||||
switch (biton32(layer_state)) {
|
||||
|
||||
@@ -3,5 +3,7 @@
|
||||
CONSOLE_ENABLE = no
|
||||
COMMAND_ENABLE = no
|
||||
MOUSEKEY_ENABLE = no
|
||||
RGBLIGHT_ENABLE = no
|
||||
RGB_MATRIX_ENABLE = yes
|
||||
WEBUSB_ENABLE = yes
|
||||
ORYX_ENABLE = yes
|
||||
|
||||
@@ -27,3 +27,23 @@ const uint8_t music_map[MATRIX_ROWS][MATRIX_COLS] = LAYOUT_planck_grid(
|
||||
12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23,
|
||||
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11
|
||||
);
|
||||
|
||||
#ifdef ENCODER_ENABLE
|
||||
bool encoder_update_kb(uint8_t index, bool clockwise) {
|
||||
if (!encoder_update_user(index, clockwise)) { return false; }
|
||||
if (get_highest_layer(layer_state) > 0) {
|
||||
if (clockwise) {
|
||||
tap_code_delay(KC_VOLU, 10);
|
||||
} else {
|
||||
tap_code_delay(KC_VOLD, 10);
|
||||
}
|
||||
} else {
|
||||
if (clockwise) {
|
||||
tap_code(KC_PGDN);
|
||||
} else {
|
||||
tap_code(KC_PGUP);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user