commit
a2ffdb4abd
@ -0,0 +1,41 @@ |
|||||||
|
/* Copyright 2020 Boardsource
|
||||||
|
* 2022 QMK / James Young (@noroadsleft) |
||||||
|
* |
||||||
|
* This program is free software: you can redistribute it and/or modify |
||||||
|
* it under the terms of the GNU General Public License as published by |
||||||
|
* the Free Software Foundation, either version 2 of the License, or |
||||||
|
* (at your option) any later version. |
||||||
|
* |
||||||
|
* This program is distributed in the hope that it will be useful, |
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||||
|
* GNU General Public License for more details. |
||||||
|
* |
||||||
|
* You should have received a copy of the GNU General Public License |
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/ |
||||||
|
#include QMK_KEYBOARD_H |
||||||
|
|
||||||
|
// Defines names for use in layer keycodes and the keymap
|
||||||
|
enum layer_names { |
||||||
|
_BASE, |
||||||
|
_FN |
||||||
|
}; |
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { |
||||||
|
/* Base */ |
||||||
|
[_BASE] = LAYOUT_ansi_split_bs_space( |
||||||
|
KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_BSPC, RGB_TOG, |
||||||
|
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, RGB_MOD, |
||||||
|
KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, MO(_FN), |
||||||
|
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_LSFT, KC_UP, |
||||||
|
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_SPC, KC_SPC, KC_LALT, KC_LCTL, KC_GRV, KC_LEFT, KC_DOWN, KC_RGHT |
||||||
|
), |
||||||
|
[_FN] = LAYOUT_ansi_split_bs_space( |
||||||
|
KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, KC_HOME, |
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MPLY, KC_VOLD, KC_VOLU, _______, KC_END, |
||||||
|
RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MUTE, _______, |
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, |
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ |
||||||
|
) |
||||||
|
}; |
@ -0,0 +1,41 @@ |
|||||||
|
/* Copyright 2020 Boardsource
|
||||||
|
* 2022 QMK / James Young (@noroadsleft) |
||||||
|
* |
||||||
|
* This program is free software: you can redistribute it and/or modify |
||||||
|
* it under the terms of the GNU General Public License as published by |
||||||
|
* the Free Software Foundation, either version 2 of the License, or |
||||||
|
* (at your option) any later version. |
||||||
|
* |
||||||
|
* This program is distributed in the hope that it will be useful, |
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||||
|
* GNU General Public License for more details. |
||||||
|
* |
||||||
|
* You should have received a copy of the GNU General Public License |
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/ |
||||||
|
#include QMK_KEYBOARD_H |
||||||
|
|
||||||
|
// Defines names for use in layer keycodes and the keymap
|
||||||
|
enum layer_names { |
||||||
|
_BASE, |
||||||
|
_FN |
||||||
|
}; |
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { |
||||||
|
/* Base */ |
||||||
|
[_BASE] = LAYOUT_iso_split_bs_space( |
||||||
|
KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_BSPC, RGB_TOG, |
||||||
|
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, RGB_MOD, |
||||||
|
KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_NUHS, KC_ENT, MO(_FN), |
||||||
|
KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_LSFT, KC_UP, |
||||||
|
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_SPC, KC_SPC, KC_LALT, KC_LCTL, KC_GRV, KC_LEFT, KC_DOWN, KC_RGHT |
||||||
|
), |
||||||
|
[_FN] = LAYOUT_iso_split_bs_space( |
||||||
|
KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, KC_HOME, |
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MPLY, KC_VOLD, KC_VOLU, KC_END, |
||||||
|
RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MUTE, _______, _______, |
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, |
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ |
||||||
|
) |
||||||
|
}; |
@ -0,0 +1,56 @@ |
|||||||
|
{ |
||||||
|
"keyboard_name": "wings42 rev1", |
||||||
|
"url": "", |
||||||
|
"maintainer": "yfuku", |
||||||
|
"layouts": { |
||||||
|
"LAYOUT_split_3x6_3": { |
||||||
|
"layout": [ |
||||||
|
{"label":"L00", "x":0, "y":0.875}, |
||||||
|
{"label":"L01", "x":1, "y":0.625}, |
||||||
|
{"label":"L02", "x":2, "y":0.375}, |
||||||
|
{"label":"L03", "x":3, "y":0}, |
||||||
|
{"label":"L04", "x":4, "y":0}, |
||||||
|
{"label":"L05", "x":5, "y":0.125}, |
||||||
|
{"label":"R00", "x":9, "y":0.125}, |
||||||
|
{"label":"R01", "x":10, "y":0}, |
||||||
|
{"label":"R02", "x":11, "y":0}, |
||||||
|
{"label":"R03", "x":12, "y":0.375}, |
||||||
|
{"label":"R04", "x":13, "y":0.625}, |
||||||
|
{"label":"R05", "x":14, "y":0.875}, |
||||||
|
|
||||||
|
{"label":"L10", "x":0, "y":1.875}, |
||||||
|
{"label":"L11", "x":1, "y":1.625}, |
||||||
|
{"label":"L12", "x":2, "y":1.375}, |
||||||
|
{"label":"L13", "x":3, "y":1}, |
||||||
|
{"label":"L14", "x":4, "y":1}, |
||||||
|
{"label":"L15", "x":5, "y":1.125}, |
||||||
|
{"label":"R10", "x":9, "y":1.125}, |
||||||
|
{"label":"R11", "x":10, "y":1}, |
||||||
|
{"label":"R12", "x":11, "y":1}, |
||||||
|
{"label":"R13", "x":12, "y":1.375}, |
||||||
|
{"label":"R14", "x":13, "y":1.625}, |
||||||
|
{"label":"R15", "x":14, "y":1.875}, |
||||||
|
|
||||||
|
{"label":"L20", "x":0, "y":2.875}, |
||||||
|
{"label":"L21", "x":1, "y":2.625}, |
||||||
|
{"label":"L22", "x":2, "y":2.375}, |
||||||
|
{"label":"L23", "x":3, "y":2}, |
||||||
|
{"label":"L24", "x":4, "y":2}, |
||||||
|
{"label":"L25", "x":5, "y":2.125}, |
||||||
|
{"label":"R20", "x":9, "y":2.125}, |
||||||
|
{"label":"R21", "x":10, "y":2}, |
||||||
|
{"label":"R22", "x":11, "y":2}, |
||||||
|
{"label":"R23", "x":12, "y":2.375}, |
||||||
|
{"label":"R24", "x":13, "y":2.625}, |
||||||
|
{"label":"R25", "x":14, "y":2.875}, |
||||||
|
|
||||||
|
{"label":"L30", "x":4, "y":3}, |
||||||
|
{"label":"L31", "x":5, "y":3.125}, |
||||||
|
{"label":"L32", "x":6, "y":3.375}, |
||||||
|
{"label":"R30", "x":8, "y":3.375}, |
||||||
|
{"label":"R31", "x":9, "y":3.125}, |
||||||
|
{"label":"R32", "x":10, "y":3} |
||||||
|
] |
||||||
|
} |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,60 @@ |
|||||||
|
{ |
||||||
|
"keyboard_name": "wings42 rev1_extkeys", |
||||||
|
"url": "", |
||||||
|
"maintainer": "yfuku", |
||||||
|
"layouts": { |
||||||
|
"LAYOUT": { |
||||||
|
"layout": [ |
||||||
|
{"label":"L00", "x":0, "y":0.875}, |
||||||
|
{"label":"L01", "x":1, "y":0.625}, |
||||||
|
{"label":"L02", "x":2, "y":0.375}, |
||||||
|
{"label":"L03", "x":3, "y":0}, |
||||||
|
{"label":"L04", "x":4, "y":0}, |
||||||
|
{"label":"L05", "x":5, "y":0.125}, |
||||||
|
{"label":"R00", "x":9, "y":0.125}, |
||||||
|
{"label":"R01", "x":10, "y":0}, |
||||||
|
{"label":"R02", "x":11, "y":0}, |
||||||
|
{"label":"R03", "x":12, "y":0.375}, |
||||||
|
{"label":"R04", "x":13, "y":0.625}, |
||||||
|
{"label":"R05", "x":14, "y":0.875}, |
||||||
|
|
||||||
|
{"label":"L10", "x":0, "y":1.875}, |
||||||
|
{"label":"L11", "x":1, "y":1.625}, |
||||||
|
{"label":"L12", "x":2, "y":1.375}, |
||||||
|
{"label":"L13", "x":3, "y":1}, |
||||||
|
{"label":"L14", "x":4, "y":1}, |
||||||
|
{"label":"L15", "x":5, "y":1.125}, |
||||||
|
{"label":"E01", "x":6, "y":1.625}, |
||||||
|
{"label":"E03", "x":8, "y":1.625}, |
||||||
|
{"label":"R10", "x":9, "y":1.125}, |
||||||
|
{"label":"R11", "x":10, "y":1}, |
||||||
|
{"label":"R12", "x":11, "y":1}, |
||||||
|
{"label":"R13", "x":12, "y":1.375}, |
||||||
|
{"label":"R14", "x":13, "y":1.625}, |
||||||
|
{"label":"R15", "x":14, "y":1.875}, |
||||||
|
|
||||||
|
{"label":"L20", "x":0, "y":2.875}, |
||||||
|
{"label":"L21", "x":1, "y":2.625}, |
||||||
|
{"label":"L22", "x":2, "y":2.375}, |
||||||
|
{"label":"L23", "x":3, "y":2}, |
||||||
|
{"label":"L24", "x":4, "y":2}, |
||||||
|
{"label":"L25", "x":5, "y":2.125}, |
||||||
|
{"label":"E02", "x":6, "y":2.625}, |
||||||
|
{"label":"E04", "x":8, "y":2.625}, |
||||||
|
{"label":"R20", "x":9, "y":2.125}, |
||||||
|
{"label":"R21", "x":10, "y":2}, |
||||||
|
{"label":"R22", "x":11, "y":2}, |
||||||
|
{"label":"R23", "x":12, "y":2.375}, |
||||||
|
{"label":"R24", "x":13, "y":2.625}, |
||||||
|
{"label":"R25", "x":14, "y":2.875}, |
||||||
|
|
||||||
|
{"label":"L30", "x":4, "y":3}, |
||||||
|
{"label":"L31", "x":5, "y":3.125}, |
||||||
|
{"label":"L32", "x":6, "y":3.375}, |
||||||
|
{"label":"R30", "x":8, "y":3.375}, |
||||||
|
{"label":"R31", "x":9, "y":3.125}, |
||||||
|
{"label":"R32", "x":10, "y":3} |
||||||
|
] |
||||||
|
} |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,60 @@ |
|||||||
|
{ |
||||||
|
"keyboard_name": "wings42 rev2", |
||||||
|
"url": "", |
||||||
|
"maintainer": "yfuku", |
||||||
|
"layouts": { |
||||||
|
"LAYOUT_split_3x6_3_2": { |
||||||
|
"layout": [ |
||||||
|
{"label":"L00", "x":0, "y":0.875}, |
||||||
|
{"label":"L01", "x":1, "y":0.625}, |
||||||
|
{"label":"L02", "x":2, "y":0.375}, |
||||||
|
{"label":"L03", "x":3, "y":0}, |
||||||
|
{"label":"L04", "x":4, "y":0}, |
||||||
|
{"label":"L05", "x":5, "y":0.125}, |
||||||
|
{"label":"R00", "x":9, "y":0.125}, |
||||||
|
{"label":"R01", "x":10, "y":0}, |
||||||
|
{"label":"R02", "x":11, "y":0}, |
||||||
|
{"label":"R03", "x":12, "y":0.375}, |
||||||
|
{"label":"R04", "x":13, "y":0.625}, |
||||||
|
{"label":"R05", "x":14, "y":0.875}, |
||||||
|
|
||||||
|
{"label":"L10", "x":0, "y":1.875}, |
||||||
|
{"label":"L11", "x":1, "y":1.625}, |
||||||
|
{"label":"L12", "x":2, "y":1.375}, |
||||||
|
{"label":"L13", "x":3, "y":1}, |
||||||
|
{"label":"L14", "x":4, "y":1}, |
||||||
|
{"label":"L15", "x":5, "y":1.125}, |
||||||
|
{"label":"L31", "x":6, "y":1.625}, |
||||||
|
{"label":"R33", "x":8, "y":1.625}, |
||||||
|
{"label":"R10", "x":9, "y":1.125}, |
||||||
|
{"label":"R11", "x":10, "y":1}, |
||||||
|
{"label":"R12", "x":11, "y":1}, |
||||||
|
{"label":"R13", "x":12, "y":1.375}, |
||||||
|
{"label":"R14", "x":13, "y":1.625}, |
||||||
|
{"label":"R15", "x":14, "y":1.875}, |
||||||
|
|
||||||
|
{"label":"L20", "x":0, "y":2.875}, |
||||||
|
{"label":"L21", "x":1, "y":2.625}, |
||||||
|
{"label":"L22", "x":2, "y":2.375}, |
||||||
|
{"label":"L23", "x":3, "y":2}, |
||||||
|
{"label":"L24", "x":4, "y":2}, |
||||||
|
{"label":"L25", "x":5, "y":2.125}, |
||||||
|
{"label":"L32", "x":6, "y":2.625}, |
||||||
|
{"label":"R34", "x":8, "y":2.625}, |
||||||
|
{"label":"R20", "x":9, "y":2.125}, |
||||||
|
{"label":"R21", "x":10, "y":2}, |
||||||
|
{"label":"R22", "x":11, "y":2}, |
||||||
|
{"label":"R23", "x":12, "y":2.375}, |
||||||
|
{"label":"R24", "x":13, "y":2.625}, |
||||||
|
{"label":"R25", "x":14, "y":2.875}, |
||||||
|
|
||||||
|
{"label":"L33", "x":4, "y":3}, |
||||||
|
{"label":"L34", "x":5, "y":3.125}, |
||||||
|
{"label":"L35", "x":6, "y":3.375}, |
||||||
|
{"label":"R30", "x":8, "y":3.375}, |
||||||
|
{"label":"R31", "x":9, "y":3.125}, |
||||||
|
{"label":"R32", "x":10, "y":3} |
||||||
|
] |
||||||
|
} |
||||||
|
} |
||||||
|
} |
@ -1,139 +0,0 @@ |
|||||||
/* Copyright 2021 @ Keychron (https://www.keychron.com)
|
|
||||||
* |
|
||||||
* This program is free software: you can redistribute it and/or modify |
|
||||||
* it under the terms of the GNU General Public License as published by |
|
||||||
* the Free Software Foundation, either version 2 of the License, or |
|
||||||
* (at your option) any later version. |
|
||||||
* |
|
||||||
* This program is distributed in the hope that it will be useful, |
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
||||||
* GNU General Public License for more details. |
|
||||||
* |
|
||||||
* You should have received a copy of the GNU General Public License |
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*/ |
|
||||||
|
|
||||||
#include <stdint.h> |
|
||||||
#include <stdbool.h> |
|
||||||
#include <string.h> |
|
||||||
#include "util.h" |
|
||||||
#include "matrix.h" |
|
||||||
#include "debounce.h" |
|
||||||
#include "quantum.h" |
|
||||||
|
|
||||||
#ifdef MATRIX_ROW_PINS |
|
||||||
static pin_t row_pins[MATRIX_ROWS] = MATRIX_ROW_PINS; |
|
||||||
#endif // MATRIX_ROW_PINS
|
|
||||||
#ifdef MATRIX_COL_PINS |
|
||||||
static pin_t col_pins[MATRIX_COLS] = MATRIX_COL_PINS; |
|
||||||
#endif // MATRIX_COL_PINS
|
|
||||||
|
|
||||||
#define ROWS_PER_HAND (MATRIX_ROWS) |
|
||||||
|
|
||||||
/* matrix state(1:on, 0:off) */ |
|
||||||
extern matrix_row_t raw_matrix[MATRIX_ROWS]; // raw values
|
|
||||||
extern matrix_row_t matrix[MATRIX_ROWS]; // debounced values
|
|
||||||
|
|
||||||
static inline void setPinOutput_writeLow(pin_t pin) { |
|
||||||
ATOMIC_BLOCK_FORCEON { |
|
||||||
setPinOutput(pin); |
|
||||||
writePinLow(pin); |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
static inline void setPinOutput_writeHigh(pin_t pin) { |
|
||||||
ATOMIC_BLOCK_FORCEON { |
|
||||||
setPinOutput(pin); |
|
||||||
writePinHigh(pin); |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
static inline void setPinInputHigh_atomic(pin_t pin) { |
|
||||||
ATOMIC_BLOCK_FORCEON { setPinInputHigh(pin); } |
|
||||||
} |
|
||||||
|
|
||||||
static inline uint8_t readMatrixPin(pin_t pin) { |
|
||||||
if (pin != NO_PIN) { |
|
||||||
return readPin(pin); |
|
||||||
} else { |
|
||||||
return 1; |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
static bool select_col(uint8_t col) { |
|
||||||
pin_t pin = col_pins[col]; |
|
||||||
if (pin != NO_PIN) { |
|
||||||
setPinOutput_writeLow(pin); |
|
||||||
return true; |
|
||||||
} |
|
||||||
return false; |
|
||||||
} |
|
||||||
|
|
||||||
static void unselect_col(uint8_t col) { |
|
||||||
pin_t pin = col_pins[col]; |
|
||||||
if (pin != NO_PIN) { |
|
||||||
setPinOutput_writeHigh(pin); |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
static void unselect_cols(void) { |
|
||||||
for (uint8_t x = 0; x < MATRIX_COLS; x++) { |
|
||||||
unselect_col(x); |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
void matrix_init_pins(void) { |
|
||||||
unselect_cols(); |
|
||||||
for (uint8_t x = 0; x < ROWS_PER_HAND; x++) { |
|
||||||
if (row_pins[x] != NO_PIN) { |
|
||||||
setPinInputHigh_atomic(row_pins[x]); |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
void matrix_read_rows_on_col(matrix_row_t current_matrix[], uint8_t current_col) { |
|
||||||
bool key_pressed = false; |
|
||||||
|
|
||||||
// Select col
|
|
||||||
if (!select_col(current_col)) { // select col
|
|
||||||
return; // skip NO_PIN col
|
|
||||||
} |
|
||||||
matrix_output_select_delay(); |
|
||||||
|
|
||||||
// For each row...
|
|
||||||
for (uint8_t row_index = 0; row_index < ROWS_PER_HAND; row_index++) { |
|
||||||
// Check row pin state
|
|
||||||
if (readMatrixPin(row_pins[row_index]) == 0) { |
|
||||||
// Pin LO, set col bit
|
|
||||||
current_matrix[row_index] |= (MATRIX_ROW_SHIFTER << current_col); |
|
||||||
key_pressed = true; |
|
||||||
} else { |
|
||||||
// Pin HI, clear col bit
|
|
||||||
current_matrix[row_index] &= ~(MATRIX_ROW_SHIFTER << current_col); |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
// Unselect col
|
|
||||||
unselect_col(current_col); |
|
||||||
matrix_output_unselect_delay(current_col, key_pressed); // wait for all Row signals to go HIGH
|
|
||||||
} |
|
||||||
|
|
||||||
void matrix_init_custom(void) { |
|
||||||
// initialize key pins
|
|
||||||
matrix_init_pins(); |
|
||||||
} |
|
||||||
|
|
||||||
bool matrix_scan_custom(matrix_row_t current_matrix[]) { |
|
||||||
matrix_row_t curr_matrix[MATRIX_ROWS] = {0}; |
|
||||||
|
|
||||||
// Set col, read rows
|
|
||||||
for (uint8_t current_col = 0; current_col < MATRIX_COLS; current_col++) { |
|
||||||
matrix_read_rows_on_col(curr_matrix, current_col); |
|
||||||
} |
|
||||||
|
|
||||||
bool changed = memcmp(current_matrix, curr_matrix, sizeof(curr_matrix)) != 0; |
|
||||||
if (changed) memcpy(current_matrix, curr_matrix, sizeof(curr_matrix)); |
|
||||||
|
|
||||||
return (uint8_t)changed; |
|
||||||
} |
|
@ -1,10 +1,97 @@ |
|||||||
{ |
{ |
||||||
"keyboard_name": "Mini1800", |
"keyboard_name": "Mini1800", |
||||||
"url": "", |
"url": "", |
||||||
"maintainer": "qmk", |
"maintainer": "lfkeyboards", |
||||||
"layouts": { |
"layouts": { |
||||||
"LAYOUT": { |
"LAYOUT": { |
||||||
"layout": [{"label":"Esc", "x":0, "y":0}, {"label":"!", "x":1, "y":0}, {"label":"@", "x":2, "y":0}, {"label":"#", "x":3, "y":0}, {"label":"$", "x":4, "y":0}, {"label":"%", "x":5, "y":0}, {"label":"^", "x":6, "y":0}, {"label":"&", "x":7, "y":0}, {"label":"*", "x":8, "y":0}, {"label":"(", "x":9, "y":0}, {"label":")", "x":10, "y":0}, {"label":"_", "x":11, "y":0}, {"label":"+", "x":12, "y":0}, {"label":"Back Space", "x":13, "y":0, "w":2}, {"label":"Num Lock", "x":15.5, "y":0}, {"label":"/", "x":16.5, "y":0}, {"label":"*", "x":17.5, "y":0}, {"label":"-", "x":18.5, "y":0}, {"label":"Tab", "x":0, "y":1, "w":1.5}, {"label":"Q", "x":1.5, "y":1}, {"label":"W", "x":2.5, "y":1}, {"label":"E", "x":3.5, "y":1}, {"label":"R", "x":4.5, "y":1}, {"label":"T", "x":5.5, "y":1}, {"label":"Y", "x":6.5, "y":1}, {"label":"U", "x":7.5, "y":1}, {"label":"I", "x":8.5, "y":1}, {"label":"O", "x":9.5, "y":1}, {"label":"P", "x":10.5, "y":1}, {"label":"{", "x":11.5, "y":1}, {"label":"}", "x":12.5, "y":1}, {"label":"|", "x":13.5, "y":1, "w":1.5}, {"label":"7", "x":15.5, "y":1}, {"label":"8", "x":16.5, "y":1}, {"label":"9", "x":17.5, "y":1}, {"label":"+", "x":18.5, "y":1}, {"label":"Caps Lock", "x":0, "y":2, "w":1.25}, {"label":"A", "x":1.75, "y":2}, {"label":"S", "x":2.75, "y":2}, {"label":"D", "x":3.75, "y":2}, {"label":"F", "x":4.75, "y":2}, {"label":"G", "x":5.75, "y":2}, {"label":"H", "x":6.75, "y":2}, {"label":"J", "x":7.75, "y":2}, {"label":"K", "x":8.75, "y":2}, {"label":"L", "x":9.75, "y":2}, {"label":":", "x":10.75, "y":2}, {"label":"\"", "x":11.75, "y":2}, {"label":"Enter", "x":12.75, "y":2, "w":2.25}, {"label":"4", "x":15.5, "y":2}, {"label":"5", "x":16.5, "y":2}, {"label":"6", "x":17.5, "y":2}, {"label":"+", "x":18.5, "y":2}, {"label":"Shift", "x":0, "y":3, "w":2.25}, {"label":"Z", "x":2.25, "y":3}, {"label":"X", "x":3.25, "y":3}, {"label":"C", "x":4.25, "y":3}, {"label":"V", "x":5.25, "y":3}, {"label":"B", "x":6.25, "y":3}, {"label":"N", "x":7.25, "y":3}, {"label":"M", "x":8.25, "y":3}, {"label":"<", "x":9.25, "y":3}, {"label":">", "x":10.25, "y":3}, {"label":"?", "x":11.25, "y":3}, {"label":"Shift", "x":12.25, "y":3, "w":1.75}, {"label":"1", "x":15.5, "y":3}, {"label":"2", "x":16.5, "y":3}, {"label":"3", "x":17.5, "y":3}, {"label":"Enter", "x":18.5, "y":3, "h":2}, {"label":"\u2191", "x":14.25, "y":3.25}, {"label":"Ctrl", "x":0, "y":4, "w":1.25}, {"label":"Win", "x":1.25, "y":4, "w":1.25}, {"label":"Alt", "x":2.5, "y":4, "w":1.25}, {"x":3.75, "y":4, "w":6.25}, {"label":"Alt", "x":10, "y":4}, {"label":"Fn", "x":11, "y":4}, {"label":"Ctrl", "x":12, "y":4}, {"label":"0", "x":16.5, "y":4}, {"label":".", "x":17.5, "y":4}, {"label":"\u2190", "x":13.25, "y":4.25}, {"label":"\u2193", "x":14.25, "y":4.25}, {"label":"\u2192", "x":15.25, "y":4.25}] |
"layout": [ |
||||||
|
{"label":"Esc", "x":0, "y":0}, |
||||||
|
{"label":"1!", "x":1, "y":0}, |
||||||
|
{"label":"2@", "x":2, "y":0}, |
||||||
|
{"label":"3#", "x":3, "y":0}, |
||||||
|
{"label":"4$", "x":4, "y":0}, |
||||||
|
{"label":"5%", "x":5, "y":0}, |
||||||
|
{"label":"6^", "x":6, "y":0}, |
||||||
|
{"label":"7&", "x":7, "y":0}, |
||||||
|
{"label":"8*", "x":8, "y":0}, |
||||||
|
{"label":"9(", "x":9, "y":0}, |
||||||
|
{"label":"0)", "x":10, "y":0}, |
||||||
|
{"label":"-_", "x":11, "y":0}, |
||||||
|
{"label":"=+", "x":12, "y":0}, |
||||||
|
{"label":"Back Space", "x":13, "y":0, "w":2}, |
||||||
|
{"label":"Num Lock", "x":15.5, "y":0}, |
||||||
|
{"label":"/", "x":16.5, "y":0}, |
||||||
|
{"label":"*", "x":17.5, "y":0}, |
||||||
|
{"label":"-", "x":18.5, "y":0}, |
||||||
|
|
||||||
|
{"label":"Tab", "x":0, "y":1, "w":1.5}, |
||||||
|
{"label":"Q", "x":1.5, "y":1}, |
||||||
|
{"label":"W", "x":2.5, "y":1}, |
||||||
|
{"label":"E", "x":3.5, "y":1}, |
||||||
|
{"label":"R", "x":4.5, "y":1}, |
||||||
|
{"label":"T", "x":5.5, "y":1}, |
||||||
|
{"label":"Y", "x":6.5, "y":1}, |
||||||
|
{"label":"U", "x":7.5, "y":1}, |
||||||
|
{"label":"I", "x":8.5, "y":1}, |
||||||
|
{"label":"O", "x":9.5, "y":1}, |
||||||
|
{"label":"P", "x":10.5, "y":1}, |
||||||
|
{"label":"[{", "x":11.5, "y":1}, |
||||||
|
{"label":"]}", "x":12.5, "y":1}, |
||||||
|
{"label":"\\|", "x":13.5, "y":1, "w":1.5}, |
||||||
|
{"label":"7", "x":15.5, "y":1}, |
||||||
|
{"label":"8", "x":16.5, "y":1}, |
||||||
|
{"label":"9", "x":17.5, "y":1}, |
||||||
|
{"label":"+", "x":18.5, "y":1}, |
||||||
|
|
||||||
|
{"label":"Caps Lock", "x":0, "y":2, "w":1.25}, |
||||||
|
{"label":"A", "x":1.75, "y":2}, |
||||||
|
{"label":"S", "x":2.75, "y":2}, |
||||||
|
{"label":"D", "x":3.75, "y":2}, |
||||||
|
{"label":"F", "x":4.75, "y":2}, |
||||||
|
{"label":"G", "x":5.75, "y":2}, |
||||||
|
{"label":"H", "x":6.75, "y":2}, |
||||||
|
{"label":"J", "x":7.75, "y":2}, |
||||||
|
{"label":"K", "x":8.75, "y":2}, |
||||||
|
{"label":"L", "x":9.75, "y":2}, |
||||||
|
{"label":";:", "x":10.75, "y":2}, |
||||||
|
{"label":"'\"", "x":11.75, "y":2}, |
||||||
|
{"label":"Enter", "x":12.75, "y":2, "w":2.25}, |
||||||
|
{"label":"4", "x":15.5, "y":2}, |
||||||
|
{"label":"5", "x":16.5, "y":2}, |
||||||
|
{"label":"6", "x":17.5, "y":2}, |
||||||
|
{"label":"+", "x":18.5, "y":2}, |
||||||
|
|
||||||
|
{"label":"Shift", "x":0, "y":3, "w":2.25}, |
||||||
|
{"label":"Z", "x":2.25, "y":3}, |
||||||
|
{"label":"X", "x":3.25, "y":3}, |
||||||
|
{"label":"C", "x":4.25, "y":3}, |
||||||
|
{"label":"V", "x":5.25, "y":3}, |
||||||
|
{"label":"B", "x":6.25, "y":3}, |
||||||
|
{"label":"N", "x":7.25, "y":3}, |
||||||
|
{"label":"M", "x":8.25, "y":3}, |
||||||
|
{"label":",<", "x":9.25, "y":3}, |
||||||
|
{"label":".>", "x":10.25, "y":3}, |
||||||
|
{"label":"/?", "x":11.25, "y":3}, |
||||||
|
{"label":"Shift", "x":12.25, "y":3, "w":1.75}, |
||||||
|
{"label":"\u2191", "x":14.25, "y":3.25}, |
||||||
|
{"label":"1", "x":15.5, "y":3}, |
||||||
|
{"label":"2", "x":16.5, "y":3}, |
||||||
|
{"label":"3", "x":17.5, "y":3}, |
||||||
|
{"label":"Enter", "x":18.5, "y":3, "h":2}, |
||||||
|
|
||||||
|
{"label":"Ctrl", "x":0, "y":4, "w":1.25}, |
||||||
|
{"label":"Win", "x":1.25, "y":4, "w":1.25}, |
||||||
|
{"label":"Alt", "x":2.5, "y":4, "w":1.25}, |
||||||
|
{"label":"Space", "x":3.75, "y":4, "w":6.25}, |
||||||
|
{"label":"Alt", "x":10, "y":4}, |
||||||
|
{"label":"Fn", "x":11, "y":4}, |
||||||
|
{"label":"Ctrl", "x":12, "y":4}, |
||||||
|
{"label":"\u2190", "x":13.25, "y":4.25}, |
||||||
|
{"label":"\u2193", "x":14.25, "y":4.25}, |
||||||
|
{"label":"\u2192", "x":15.25, "y":4.25}, |
||||||
|
{"label":"0", "x":16.5, "y":4}, |
||||||
|
{"label":".", "x":17.5, "y":4} |
||||||
|
] |
||||||
} |
} |
||||||
} |
} |
||||||
} |
} |
||||||
|
@ -1,40 +0,0 @@ |
|||||||
BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite
|
|
||||||
MOUSEKEY_ENABLE = no # Mouse keys
|
|
||||||
EXTRAKEY_ENABLE = yes # Audio control and System control
|
|
||||||
CONSOLE_ENABLE = no # Console for debug
|
|
||||||
COMMAND_ENABLE = no # Commands for debug and configuration
|
|
||||||
NKRO_ENABLE = yes
|
|
||||||
BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
|
|
||||||
AUDIO_ENABLE = yes # Audio output
|
|
||||||
RGBLIGHT_ENABLE = yes # Enable RGB underlight
|
|
||||||
RGBLIGHT_CUSTOM_DRIVER = yes # RGB code is implemented in lefkeyboards, not WS2812
|
|
||||||
SLEEP_LED_ENABLE = yes
|
|
||||||
|
|
||||||
ISSI_ENABLE = yes # If the I2C pullup resistors aren't install this must be disabled
|
|
||||||
WATCHDOG_ENABLE = yes # Resets keyboard if matrix_scan isn't run every 250ms
|
|
||||||
|
|
||||||
|
|
||||||
ifeq ($(strip $(ISSI_ENABLE)), yes) |
|
||||||
TMK_COMMON_DEFS += -DISSI_ENABLE
|
|
||||||
endif |
|
||||||
|
|
||||||
ifeq ($(strip $(WATCHDOG_ENABLE)), yes) |
|
||||||
TMK_COMMON_DEFS += -DWATCHDOG_ENABLE
|
|
||||||
endif |
|
||||||
|
|
||||||
|
|
||||||
# # Set the LFK78 hardware version. This is defined in rules.mk, but can be overidden here if desired
|
|
||||||
# #
|
|
||||||
# # RevB - first public release, uses atmega32u4, has audio, ISSI matrix split between RGB and backlight
|
|
||||||
# # RevC/D - at90usb1286, no audio, ISSI device 0 is backlight, 4 is RGB
|
|
||||||
# #
|
|
||||||
# # Set to B, C or D
|
|
||||||
# LFK_REV = D
|
|
||||||
|
|
||||||
# ifeq ($(LFK_REV), B)
|
|
||||||
# MCU = atmega32u4
|
|
||||||
# else
|
|
||||||
# MCU = at90usb1286
|
|
||||||
# endif
|
|
||||||
# OPT_DEFS += -DLFK_REV_$(LFK_REV)
|
|
||||||
# OPT_DEFS += -DUSB_PRODUCT=\"LFK_Rev$(LFK_REV)\"
|
|
@ -1,9 +0,0 @@ |
|||||||
ifeq ($(LFK_REV), A) |
|
||||||
MCU = at90usb1286
|
|
||||||
else |
|
||||||
MCU = at90usb646
|
|
||||||
endif |
|
||||||
|
|
||||||
ifeq ($(strip $(ISSI_ENABLE)), yes) |
|
||||||
# TMK_COMMON_DEFS += -DISSI_ENABLE
|
|
||||||
endif |
|
@ -1,12 +1,26 @@ |
|||||||
Mini1800 |
# Mini1800 |
||||||
=== |
|
||||||
|
|
||||||
Keyboard Maintainer: [LFKeyboards](https://github.com/lfkeyboards) |
* Keyboard Maintainer: [LFKeyboards](https://github.com/lfkeyboards) |
||||||
Hardware Supported: Mini1800 |
* Hardware Supported: |
||||||
Hardware Availability: [LFKeyboards.com](https://www.lfkeyboards.com/) |
* [Mini1800 RevA](reva/) - Green PCB with AT90USB1286 |
||||||
|
* [Mini1800 RevC](revc/) - Black PCB with AT90USB646; first public release |
||||||
|
* Hardware Availability: [LFKeyboards.com](https://www.lfkeyboards.com/) |
||||||
|
|
||||||
Make example for this keyboard (after setting up your build environment): |
Make example for this keyboard (after setting up your build environment): |
||||||
|
|
||||||
make lfkeyboards/mini1800:default |
make lfkeyboards/mini1800/reva:default |
||||||
|
make lfkeyboards/mini1800/revc:default |
||||||
|
|
||||||
See [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) then the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. |
Flashing example for this keyboard: |
||||||
|
|
||||||
|
make lfkeyboards/mini1800/reva:default:flash |
||||||
|
make lfkeyboards/mini1800/revc:default:flash |
||||||
|
|
||||||
|
## Bootloader |
||||||
|
|
||||||
|
To reset the board into bootloader mode, do one of the following: |
||||||
|
|
||||||
|
* **Physical reset button**: Briefly press the button on the bottom of the PCB (between Q and W keys) |
||||||
|
* **Keycode in keymap**: Press the key mapped to `RESET` if it is available (`Fn`+`Right Shift`, then tap `Enter` by default) |
||||||
|
|
||||||
|
See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs). |
||||||
|
@ -0,0 +1,7 @@ |
|||||||
|
ifeq ($(strip $(ISSI_ENABLE)), yes) |
||||||
|
TMK_COMMON_DEFS += -DISSI_ENABLE
|
||||||
|
endif |
||||||
|
|
||||||
|
ifeq ($(strip $(WATCHDOG_ENABLE)), yes) |
||||||
|
TMK_COMMON_DEFS += -DWATCHDOG_ENABLE
|
||||||
|
endif |
@ -0,0 +1,22 @@ |
|||||||
|
# Mini1800 RevA |
||||||
|
|
||||||
|
* Keyboard Maintainer: [LFKeyboards](https://github.com/lfkeyboards) |
||||||
|
* Hardware Supported: Mini1800 RevA (Green PCB with AT90USB1286) |
||||||
|
* Hardware Availability: [LFKeyboards.com](https://www.lfkeyboards.com/) |
||||||
|
|
||||||
|
Make example for this keyboard (after setting up your build environment): |
||||||
|
|
||||||
|
make lfkeyboards/mini1800/reva:default |
||||||
|
|
||||||
|
Flashing example for this keyboard: |
||||||
|
|
||||||
|
make lfkeyboards/mini1800/reva:default:flash |
||||||
|
|
||||||
|
## Bootloader |
||||||
|
|
||||||
|
To reset the board into bootloader mode, do one of the following: |
||||||
|
|
||||||
|
* **Physical reset button**: Briefly press the button on the bottom of the PCB (between Q and W keys) |
||||||
|
* **Keycode in keymap**: Press the key mapped to `RESET` if it is available (`Fn`+`Right Shift`, then tap `Enter` by default) |
||||||
|
|
||||||
|
See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs). |
@ -0,0 +1,29 @@ |
|||||||
|
# MCU name
|
||||||
|
MCU = at90usb1286
|
||||||
|
|
||||||
|
# Bootloader selection
|
||||||
|
BOOTLOADER = atmel-dfu
|
||||||
|
|
||||||
|
# Build Options
|
||||||
|
# change yes to no to disable
|
||||||
|
#
|
||||||
|
BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite
|
||||||
|
MOUSEKEY_ENABLE = no # Mouse keys
|
||||||
|
EXTRAKEY_ENABLE = yes # Audio control and System control
|
||||||
|
CONSOLE_ENABLE = no # Console for debug
|
||||||
|
COMMAND_ENABLE = no # Commands for debug and configuration
|
||||||
|
NKRO_ENABLE = yes # Enable N-Key Rollover
|
||||||
|
BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
|
||||||
|
RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
|
||||||
|
AUDIO_ENABLE = yes # Audio output
|
||||||
|
|
||||||
|
# RGB code is implemented in lfkeyboards, not WS2812
|
||||||
|
RGBLIGHT_CUSTOM_DRIVER = yes
|
||||||
|
BACKLIGHT_DRIVER = custom
|
||||||
|
SLEEP_LED_ENABLE = yes
|
||||||
|
|
||||||
|
ISSI_ENABLE = yes # If the I2C pullup resistors aren't install this must be disabled
|
||||||
|
WATCHDOG_ENABLE = yes # Resets keyboard if matrix_scan isn't run every 250ms
|
||||||
|
|
||||||
|
# Extra source files for IS3731 lighting
|
||||||
|
SRC = TWIlib.c issi.c lighting.c
|
@ -0,0 +1,7 @@ |
|||||||
|
ifeq ($(strip $(ISSI_ENABLE)), yes) |
||||||
|
TMK_COMMON_DEFS += -DISSI_ENABLE
|
||||||
|
endif |
||||||
|
|
||||||
|
ifeq ($(strip $(WATCHDOG_ENABLE)), yes) |
||||||
|
TMK_COMMON_DEFS += -DWATCHDOG_ENABLE
|
||||||
|
endif |
@ -0,0 +1,24 @@ |
|||||||
|
# Mini1800 RevC |
||||||
|
|
||||||
|
The first public release of the Mini1800. |
||||||
|
|
||||||
|
* Keyboard Maintainer: [LFKeyboards](https://github.com/lfkeyboards) |
||||||
|
* Hardware Supported: Mini1800 RevC (Black PCB with AT90USB646) |
||||||
|
* Hardware Availability: [LFKeyboards.com](https://www.lfkeyboards.com/) |
||||||
|
|
||||||
|
Make example for this keyboard (after setting up your build environment): |
||||||
|
|
||||||
|
make lfkeyboards/mini1800/revc:default |
||||||
|
|
||||||
|
Flashing example for this keyboard: |
||||||
|
|
||||||
|
make lfkeyboards/mini1800/revc:default:flash |
||||||
|
|
||||||
|
## Bootloader |
||||||
|
|
||||||
|
To reset the board into bootloader mode, do one of the following: |
||||||
|
|
||||||
|
* **Physical reset button**: Briefly press the button on the bottom of the PCB (between Q and W keys) |
||||||
|
* **Keycode in keymap**: Press the key mapped to `RESET` if it is available (`Fn`+`Right Shift`, then tap `Enter` by default) |
||||||
|
|
||||||
|
See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs). |
@ -0,0 +1,29 @@ |
|||||||
|
# MCU name
|
||||||
|
MCU = at90usb646
|
||||||
|
|
||||||
|
# Bootloader selection
|
||||||
|
BOOTLOADER = atmel-dfu
|
||||||
|
|
||||||
|
# Build Options
|
||||||
|
# change yes to no to disable
|
||||||
|
#
|
||||||
|
BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite
|
||||||
|
MOUSEKEY_ENABLE = no # Mouse keys
|
||||||
|
EXTRAKEY_ENABLE = yes # Audio control and System control
|
||||||
|
CONSOLE_ENABLE = no # Console for debug
|
||||||
|
COMMAND_ENABLE = no # Commands for debug and configuration
|
||||||
|
NKRO_ENABLE = yes # Enable N-Key Rollover
|
||||||
|
BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
|
||||||
|
RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
|
||||||
|
AUDIO_ENABLE = yes # Audio output
|
||||||
|
|
||||||
|
# RGB code is implemented in lfkeyboards, not WS2812
|
||||||
|
RGBLIGHT_CUSTOM_DRIVER = yes
|
||||||
|
BACKLIGHT_DRIVER = custom
|
||||||
|
SLEEP_LED_ENABLE = yes
|
||||||
|
|
||||||
|
ISSI_ENABLE = yes # If the I2C pullup resistors aren't install this must be disabled
|
||||||
|
WATCHDOG_ENABLE = yes # Resets keyboard if matrix_scan isn't run every 250ms
|
||||||
|
|
||||||
|
# Extra source files for IS3731 lighting
|
||||||
|
SRC = TWIlib.c issi.c lighting.c
|
@ -1,19 +0,0 @@ |
|||||||
# Set the LFK87 hardware version.
|
|
||||||
#
|
|
||||||
# RevA - Green PCB. at90usb1286 Only 3 exist
|
|
||||||
# RevB - We don't talk about RevB
|
|
||||||
# RevC - Black PCB. at90usb646 First public release
|
|
||||||
#
|
|
||||||
# Set to A or C
|
|
||||||
LFK_REV = C
|
|
||||||
|
|
||||||
BOOTLOADER = atmel-dfu
|
|
||||||
OPT_DEFS += -DLFK_TKL_REV_$(LFK_REV)
|
|
||||||
|
|
||||||
# Extra source files for IS3731 lighting
|
|
||||||
SRC = TWIlib.c issi.c lighting.c
|
|
||||||
|
|
||||||
# Build Options
|
|
||||||
# change yes to no to disable
|
|
||||||
#
|
|
||||||
BACKLIGHT_DRIVER = custom
|
|
Loading…
Reference in new issue