Add initial neodox support (#378)

* Added Neodox keyboard

* Refactor

---------

Co-authored-by: Pastitas <github@embermail.org>
This commit is contained in:
Pastitas 2023-02-23 03:16:46 +01:00 committed by GitHub
parent f71ee6074f
commit d4976853a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
15 changed files with 680 additions and 0 deletions

0
keyboards/neodox/.noci Normal file
View File

71
keyboards/neodox/config.h Normal file
View File

@ -0,0 +1,71 @@
/*
Copyright 2023 Pastitas
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/>.
*/
#pragma once
#include "config_common.h"
/* key matrix size */
// Rows are doubled-up
#define MATRIX_ROWS 10
#define MATRIX_COLS 7
// wiring of each half
#define MATRIX_ROW_PINS { D4, D7, E6, B4, B5 }
#define MATRIX_COL_PINS { F5, F6, F7, B1, B3, B2, B6 }
// #define MATRIX_COL_PINS { B6, B2, B3, B1, F7, F6, F5} //uncomment this line and comment line above if you need to reverse left-to-right key order
/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION COL2ROW
/* define if matrix has ghost */
//#define MATRIX_HAS_GHOST
/* number of backlight levels */
// #define BACKLIGHT_LEVELS 3
/* Set 0 if debouncing isn't needed */
#define DEBOUNCE 5
/* serial.c configuration for split keyboard */
#define SOFT_SERIAL_PIN D0
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */
#define LOCKING_RESYNC_ENABLE
/* ws2812 RGB LED */
#define RGB_DI_PIN C6
#define RGBLED_NUM 1 // Number of LEDs
/*
* Feature disable options
* These options are also useful to firmware size reduction.
*/
/* disable debug print */
// #define NO_DEBUG
/* disable print */
// #define NO_PRINT
/* disable action features */
//#define NO_ACTION_LAYER
//#define NO_ACTION_TAPPING
//#define NO_ACTION_ONESHOT

100
keyboards/neodox/info.json Normal file
View File

@ -0,0 +1,100 @@
{
"keyboard_name": "Neodox",
"manufacturer": "Pastitas",
"url": "",
"maintainer": "qmk",
"usb": {
"vid": "0x4D44",
"pid": "0x5244",
"device_version": "1.0.0"
},
"layouts": {
"LAYOUT": {
"layout": [
{"label":"_Nav || `", "x":0, "y":0.375, "w":1.25},
{"label":"1", "x":1.25, "y":0.375},
{"label":"2", "x":2.25, "y":0.125},
{"label":"3", "x":3.25, "y":0},
{"label":"4", "x":4.25, "y":0.125},
{"label":"5", "x":5.25, "y":0.25},
{"label":"6", "x":12.25, "y":0.25},
{"label":"7", "x":13.25, "y":0.125},
{"label":"8", "x":14.25, "y":0},
{"label":"9", "x":15.25, "y":0.125},
{"label":"0", "x":16.25, "y":0.375},
{"label":"_Nav || -", "x":17.25, "y":0.375, "w":1.25},
{"label":"Tab", "x":0, "y":1.375, "w":1.25},
{"label":"Q", "x":1.25, "y":1.375},
{"label":"W", "x":2.25, "y":1.125},
{"label":"E", "x":3.25, "y":1},
{"label":"R", "x":4.25, "y":1.125},
{"label":"T", "x":5.25, "y":1.25},
{"label":"MO(_SYMB)", "x":6.25, "y":0.75},
{"label":"MO(_SYMB)", "x":11.25, "y":0.75},
{"label":"Y", "x":12.25, "y":1.25},
{"label":"U", "x":13.25, "y":1.125},
{"label":"I", "x":14.25, "y":1},
{"label":"O", "x":15.25, "y":1.125},
{"label":"P", "x":16.25, "y":1.375},
{"label":"=", "x":17.25, "y":1.375, "w":1.25},
{"label":"Esc", "x":0, "y":2.375, "w":1.25},
{"label":"A", "x":1.25, "y":2.375},
{"label":"S", "x":2.25, "y":2.125},
{"label":"D", "x":3.25, "y":2},
{"label":"F", "x":4.25, "y":2.125},
{"label":"G", "x":5.25, "y":2.25},
{"label":"[", "x":6.25, "y":1.75, "h":1.5},
{"label":"]", "x":11.25, "y":1.75, "h":1.5},
{"label":"H", "x":12.25, "y":2.25},
{"label":"J", "x":13.25, "y":2.125},
{"label":"K", "x":14.25, "y":2},
{"label":"L", "x":15.25, "y":2.125},
{"label":";", "x":16.25, "y":2.375},
{"label":"'", "x":17.25, "y":2.375, "w":1.25},
{"label":"Shift", "x":0, "y":3.375, "w":1.25},
{"label":"Z", "x":1.25, "y":3.375},
{"label":"X", "x":2.25, "y":3.125},
{"label":"C", "x":3.25, "y":3},
{"label":"V", "x":4.25, "y":3.125},
{"label":"B", "x":5.25, "y":3.25},
{"label":"_Adjust/Page Up", "x":6.75, "y":3.75},
{"label":"Page Down", "x":7.75, "y":3.75},
{"label":"Home", "x":9.75, "y":3.75},
{"label":"_Adjust/End", "x":10.75, "y":3.75},
{"label":"N", "x":12.25, "y":3.25},
{"label":"M", "x":13.25, "y":3.125},
{"label":",", "x":14.25, "y":3},
{"label":",", "x":15.25, "y":3.125},
{"label":"\\", "x":16.25, "y":3.375},
{"label":"Shift", "x":17.25, "y":3.375, "w":1.25},
{"label":"LGUI", "x":0.25, "y":4.375},
{"label":"P+", "x":1.25, "y":4.375},
{"label":"P-", "x":2.25, "y":4.125},
{"label":"LAlt || P*", "x":3.25, "y":4},
{"label":"LCtrl || P/", "x":5.5, "y":5.25, "w":1.25},
{"label":"Backspace", "x":6.75, "y":4.75, "h":1.5},
{"label":"Delete", "x":7.75, "y":4.75, "h":1.5},
{"label":"Enter", "x":9.75, "y":4.75, "h":1.5},
{"label":"Space", "x":10.75, "y":4.75, "h":1.5},
{"label":"RAlt", "x":11.75, "y":5.25, "w":1.25},
{"label":"Left", "x":14.25, "y":4},
{"label":"Down", "x":15.25, "y":4.125},
{"label":"Up", "x":16.25, "y":4.375},
{"label":"Right", "x":17.25, "y":4.375}
]
}
}
}

View File

@ -0,0 +1,33 @@
/*
Copyright 2023 Pastitas
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/>.
*/
#pragma once
/* Use I2C or Serial, not both */
#define USE_SERIAL
// #define USE_I2C
/* Select hand configuration */
#define MASTER_LEFT
// #define MASTER_RIGHT
// #define EE_HANDS
#undef RGBLED_NUM
#define RGBLIGHT_ANIMATIONS
#define RGBLED_NUM 14
#define RGBLIGHT_HUE_STEP 8
#define RGBLIGHT_SAT_STEP 8
#define RGBLIGHT_VAL_STEP 8

View File

@ -0,0 +1,104 @@
/*
Copyright 2023 Pastitas
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
// Each layer gets a name for readability, which is then used in the keymap matrix below.
// The underscores don't mean anything - you can have a layer called STUFF or any other name.
// Layer names don't all need to be of the same length, obviously, and you can also skip them
// entirely and just use numbers.
#define _QWERTY 0
#define _SYMB 1
#define _NAV 2
#define _ADJUST 3
enum custom_keycodes {
QWERTY = SAFE_RANGE,
SYMB,
NAV,
ADJUST,
};
// Shortcut to make keymap more readable
#define SYM_L MO(_SYMB)
#define KC_ALAS LALT_T(KC_PAST)
#define KC_CTPL LCTL_T(KC_BSLS)
#define KC_NAGR LT(_NAV, KC_GRV)
#define KC_NAMI LT(_NAV, KC_MINS)
#define KC_ADEN LT(_ADJUST, KC_END)
#define KC_ADPU LT(_ADJUST, KC_PGUP)
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[_QWERTY] = LAYOUT(
//┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐
KC_NAGR ,KC_1 ,KC_2 ,KC_3 ,KC_4 ,KC_5 , KC_6 ,KC_7 ,KC_8 ,KC_9 ,KC_0 ,KC_NAMI ,
//├────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┤
KC_TAB ,KC_Q ,KC_W ,KC_E ,KC_R ,KC_T ,SYM_L , SYM_L ,KC_Y ,KC_U ,KC_I ,KC_O ,KC_P ,KC_EQL ,
//├────────┼────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┼────────┤
KC_ESC ,KC_A ,KC_S ,KC_D ,KC_F ,KC_G ,KC_LBRC , KC_RBRC ,KC_H ,KC_J ,KC_K ,KC_L ,KC_SCLN ,KC_QUOT ,
//├────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
KC_LSFT ,KC_Z ,KC_X ,KC_C ,KC_V ,KC_B ,KC_ADPU ,KC_PGDN , KC_HOME ,KC_ADEN ,KC_N ,KC_M ,KC_COMM ,KC_DOT ,KC_SLSH ,KC_RSFT ,
//├────────┼────────┼────────┼────────┼────┬───┴────┬───┼────────┼────────┤ ├────────┼────────┼───┬────┴───┬────┼────────┼────────┼────────┼────────┤
KC_LGUI ,KC_PPLS ,KC_PMNS ,KC_ALAS , KC_CTPL , KC_BSPC ,KC_DEL , KC_ENT ,KC_SPC , KC_RALT , KC_LEFT ,KC_DOWN ,KC_UP ,KC_RGHT
//└────────┴────────┴────────┴────────┘ └────────┘ └────────┴────────┘ └────────┴────────┘ └────────┘ └────────┴────────┴────────┴────────┘
),
[_SYMB] = LAYOUT(
//┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐
_______ ,KC_F1 ,KC_F2 ,KC_F3 ,KC_F4 ,KC_F5 , KC_F6 ,KC_F7 ,KC_F8 ,KC_F9 ,KC_F10 ,XXXXXXX ,
//├────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┤
_______ ,KC_EXLM ,KC_AT ,KC_LCBR ,KC_RCBR ,KC_PIPE ,_______ , _______ ,KC_PSLS ,KC_P7 ,KC_P8 ,KC_P9 ,KC_PMNS ,XXXXXXX ,
//├────────┼────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┼────────┤
_______ ,KC_HASH ,KC_DLR ,KC_LBRC ,KC_RBRC ,KC_GRV ,_______ , _______ ,KC_PAST ,KC_P4 ,KC_P5 ,KC_P6 ,KC_PPLS ,XXXXXXX ,
//├────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
_______ ,KC_PERC ,KC_CIRC ,KC_LPRN ,KC_RPRN ,KC_TILD ,_______ ,_______ , _______ ,_______ ,XXXXXXX ,KC_P1 ,KC_P2 ,KC_P3 ,KC_PENT ,XXXXXXX ,
//├────────┼────────┼────────┼────────┼────┬───┴────┬───┼────────┼────────┤ ├────────┼────────┼───┬────┴───┬────┼────────┼────────┼────────┼────────┤
_______ ,_______ ,_______ ,_______ , _______ , _______ ,_______ , _______ ,_______ , KC_P0 , KC_P0 ,KC_PDOT ,KC_PENT ,XXXXXXX
//└────────┴────────┴────────┴────────┘ └────────┘ └────────┴────────┘ └────────┴────────┘ └────────┘ └────────┴────────┴────────┴────────┘
),
[_NAV] = LAYOUT(
//┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐
_______ ,_______ ,_______ ,_______ ,_______ ,_______ , _______ ,_______ ,_______ ,_______ ,_______ ,_______ ,
//├────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┤
XXXXXXX ,XXXXXXX ,KC_MS_U ,XXXXXXX ,KC_WH_U ,XXXXXXX ,_______ , _______ ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,
//├────────┼────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┼────────┤
XXXXXXX ,KC_MS_L ,KC_MS_D ,KC_MS_R ,KC_WH_D ,XXXXXXX ,_______ , _______ ,KC_LEFT ,KC_DOWN ,KC_UP ,KC_RIGHT,XXXXXXX ,XXXXXXX ,
//├────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,_______ ,_______ , _______ ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,
//├────────┼────────┼────────┼────────┼────┬───┴────┬───┼────────┼────────┤ ├────────┼────────┼───┬────┴───┬────┼────────┼────────┼────────┼────────┤
XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX , KC_BTN1 , KC_BTN2 ,_______ , _______ ,_______ , XXXXXXX , XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX
//└────────┴────────┴────────┴────────┘ └────────┘ └────────┴────────┘ └────────┴────────┘ └────────┘ └────────┴────────┴────────┴────────┘
),
[_ADJUST] = LAYOUT(
//┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐
XXXXXXX ,KC_F1 ,KC_F2 ,KC_F3 ,KC_F4 ,KC_F5 , KC_F6 ,KC_F7 ,KC_F8 ,KC_F9 ,KC_F10 ,XXXXXXX ,
//├────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┤
XXXXXXX ,QK_BOOT,RGB_M_P ,RGB_TOG ,RGB_MOD ,RGB_HUD ,RGB_HUI , RGB_SAD ,RGB_SAI ,RGB_VAD ,RGB_VAI ,XXXXXXX ,XXXXXXX ,XXXXXXX ,
//├────────┼────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┼────────┤
XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX , XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,
//├────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,_______ ,XXXXXXX , XXXXXXX ,_______ ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,
//├────────┼────────┼────────┼────────┼────┬───┴────┬───┼────────┼────────┤ ├────────┼────────┼───┬────┴───┬────┼────────┼────────┼────────┼────────┤
XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX , XXXXXXX , XXXXXXX ,XXXXXXX , XXXXXXX ,XXXXXXX , XXXXXXX , XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX
//└────────┴────────┴────────┴────────┘ └────────┘ └────────┴────────┘ └────────┴────────┘ └────────┘ └────────┴────────┴────────┴────────┘
)
};

View File

@ -0,0 +1 @@
# The default keymap for Neodox

View File

@ -0,0 +1,44 @@
/*
Copyright 2023 Pastitas
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/>.
*/
#pragma once
/* Use I2C or Serial, not both */
#define USE_SERIAL
// #define USE_I2C
/* Select hand configuration */
//#define MASTER_LEFT
// #define MASTER_RIGHT
#define EE_HANDS
//#undef RGBLED_NUM
//#define RGBLIGHT_ANIMATIONS
//#define RGBLED_NUM 1
//#define RGBLIGHT_HUE_STEP 8
//#define RGBLIGHT_SAT_STEP 8
//#define RGBLIGHT_VAL_STEP 8
/* unique Vial keyboard ID and secure unlock combination Tab + Escape */
#define VIAL_KEYBOARD_UID {0x20, 0xF7, 0x6C, 0x9E, 0x87, 0x38, 0x78, 0x22}
#define VIAL_UNLOCK_COMBO_ROWS {1, 2}
#define VIAL_UNLOCK_COMBO_COLS {0, 0}
/* For reducing RAM and EEPROM usage when using Vial*/
#define VIAL_TAP_DANCE_ENTRIES 4
#define VIAL_COMBO_ENTRIES 4
#define VIAL_KEY_OVERRIDE_ENTRIES 4

View File

@ -0,0 +1,88 @@
#include QMK_KEYBOARD_H
// Each layer gets a name for readability, which is then used in the keymap matrix below.
// The underscores don't mean anything - you can have a layer called STUFF or any other name.
// Layer names don't all need to be of the same length, obviously, and you can also skip them
// entirely and just use numbers.
#define _QWERTY 0
#define _SYMB 1
#define _NAV 2
#define _ADJUST 3
enum custom_keycodes {
QWERTY = SAFE_RANGE,
SYMB,
NAV,
ADJUST,
};
// Shortcut to make keymap more readable
#define SYM_L MO(_SYMB)
#define KC_ALAS LALT_T(KC_PAST)
#define KC_CTPL LCTL_T(KC_BSLS)
#define KC_NAGR LT(_NAV, KC_GRV)
#define KC_NAMI LT(_NAV, KC_MINS)
#define KC_ADEN LT(_ADJUST, KC_END)
#define KC_ADPU LT(_ADJUST, KC_PGUP)
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[_QWERTY] = LAYOUT(
//┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐
KC_NAGR ,KC_1 ,KC_2 ,KC_3 ,KC_4 ,KC_5 , KC_6 ,KC_7 ,KC_8 ,KC_9 ,KC_0 ,KC_NAMI ,
//├────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┤
KC_TAB ,KC_Q ,KC_W ,KC_E ,KC_R ,KC_T ,SYM_L , SYM_L ,KC_Y ,KC_U ,KC_I ,KC_O ,KC_P ,KC_EQL ,
//├────────┼────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┼────────┤
KC_ESC ,KC_A ,KC_S ,KC_D ,KC_F ,KC_G ,KC_LBRC , KC_RBRC ,KC_H ,KC_J ,KC_K ,KC_L ,KC_SCLN ,KC_QUOT ,
//├────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
KC_LSFT ,KC_Z ,KC_X ,KC_C ,KC_V ,KC_B ,KC_ADPU ,KC_PGDN , KC_HOME ,KC_ADEN ,KC_N ,KC_M ,KC_COMM ,KC_DOT ,KC_SLSH ,KC_RSFT ,
//├────────┼────────┼────────┼────────┼────┬───┴────┬───┼────────┼────────┤ ├────────┼────────┼───┬────┴───┬────┼────────┼────────┼────────┼────────┤
KC_LGUI ,KC_PPLS ,KC_PMNS ,KC_ALAS , KC_CTPL , KC_BSPC ,KC_DEL , KC_ENT ,KC_SPC , KC_RALT , KC_LEFT ,KC_DOWN ,KC_UP ,KC_RGHT
//└────────┴────────┴────────┴────────┘ └────────┘ └────────┴────────┘ └────────┴────────┘ └────────┘ └────────┴────────┴────────┴────────┘
),
[_SYMB] = LAYOUT(
//┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐
_______ ,KC_F1 ,KC_F2 ,KC_F3 ,KC_F4 ,KC_F5 , KC_F6 ,KC_F7 ,KC_F8 ,KC_F9 ,KC_F10 ,XXXXXXX ,
//├────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┤
_______ ,KC_EXLM ,KC_AT ,KC_LCBR ,KC_RCBR ,KC_PIPE ,_______ , _______ ,KC_PSLS ,KC_P7 ,KC_P8 ,KC_P9 ,KC_PMNS ,XXXXXXX ,
//├────────┼────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┼────────┤
_______ ,KC_HASH ,KC_DLR ,KC_LBRC ,KC_RBRC ,KC_GRV ,_______ , _______ ,KC_PAST ,KC_P4 ,KC_P5 ,KC_P6 ,KC_PPLS ,XXXXXXX ,
//├────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
_______ ,KC_PERC ,KC_CIRC ,KC_LPRN ,KC_RPRN ,KC_TILD ,_______ ,_______ , _______ ,_______ ,XXXXXXX ,KC_P1 ,KC_P2 ,KC_P3 ,KC_PENT ,XXXXXXX ,
//├────────┼────────┼────────┼────────┼────┬───┴────┬───┼────────┼────────┤ ├────────┼────────┼───┬────┴───┬────┼────────┼────────┼────────┼────────┤
_______ ,_______ ,_______ ,_______ , _______ , _______ ,_______ , _______ ,_______ , KC_P0 , KC_P0 ,KC_PDOT ,KC_PENT ,XXXXXXX
//└────────┴────────┴────────┴────────┘ └────────┘ └────────┴────────┘ └────────┴────────┘ └────────┘ └────────┴────────┴────────┴────────┘
),
[_NAV] = LAYOUT(
//┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐
_______ ,_______ ,_______ ,_______ ,_______ ,_______ , _______ ,_______ ,_______ ,_______ ,_______ ,_______ ,
//├────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┤
XXXXXXX ,XXXXXXX ,KC_MS_U ,XXXXXXX ,KC_WH_U ,XXXXXXX ,_______ , _______ ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,
//├────────┼────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┼────────┤
XXXXXXX ,KC_MS_L ,KC_MS_D ,KC_MS_R ,KC_WH_D ,XXXXXXX ,_______ , _______ ,KC_LEFT ,KC_DOWN ,KC_UP ,KC_RIGHT,XXXXXXX ,XXXXXXX ,
//├────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,_______ ,_______ , _______ ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,
//├────────┼────────┼────────┼────────┼────┬───┴────┬───┼────────┼────────┤ ├────────┼────────┼───┬────┴───┬────┼────────┼────────┼────────┼────────┤
XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX , KC_BTN1 , KC_BTN2 ,_______ , _______ ,_______ , XXXXXXX , XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX
//└────────┴────────┴────────┴────────┘ └────────┘ └────────┴────────┘ └────────┴────────┘ └────────┘ └────────┴────────┴────────┴────────┘
),
[_ADJUST] = LAYOUT(
//┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐
XXXXXXX ,KC_F1 ,KC_F2 ,KC_F3 ,KC_F4 ,KC_F5 , KC_F6 ,KC_F7 ,KC_F8 ,KC_F9 ,KC_F10 ,XXXXXXX ,
//├────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┤
XXXXXXX ,RESET ,RGB_M_P ,RGB_TOG ,RGB_MOD ,RGB_HUD ,RGB_HUI , RGB_SAD ,RGB_SAI ,RGB_VAD ,RGB_VAI ,XXXXXXX ,XXXXXXX ,XXXXXXX ,
//├────────┼────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┼────────┤
XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX , XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,
//├────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,_______ ,XXXXXXX , XXXXXXX ,_______ ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,
//├────────┼────────┼────────┼────────┼────┬───┴────┬───┼────────┼────────┤ ├────────┼────────┼───┬────┴───┬────┼────────┼────────┼────────┼────────┤
XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX , XXXXXXX , XXXXXXX ,XXXXXXX , XXXXXXX ,XXXXXXX , XXXXXXX , XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX
//└────────┴────────┴────────┴────────┘ └────────┘ └────────┴────────┘ └────────┴────────┘ └────────┘ └────────┴────────┴────────┴────────┘
)
};

View File

@ -0,0 +1,13 @@
# Default Redox keymap with Vial support
![Imgur](https://imgur.com/msHriYY.jpg)
This is the default Redox keymap with Vial enabled.
I have disabled several features to reduce the firmware size, including mousekey and rgblight - see rules.mk
I suggest reading the following links for advice on reducing firmware size.
https://docs.qmk.fm/#/squeezing_avr?id=squeezing-the-most-out-of-avr
https://get.vial.today/docs/firmware-size.html

View File

@ -0,0 +1,15 @@
VIA_ENABLE = yes
VIAL_ENABLE = yes
LTO_ENABLE = yes
MOUSEKEY_ENABLE = no
COMMAND_ENABLE = no # Commands for debug and configuration
RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight.
UNICODE_ENABLE = no
OLED_DRIVER_ENABLE = no
# must be disabled for VIA support
LEADER_ENABLE = no
MIDI_ENABLE = no
BLUETOOTH_ENABLE = no

View File

@ -0,0 +1,119 @@
{
"name": "Neodox",
"vendorId": "Pastitas",
"lighting": "qmk_rgblight",
"matrix": { "rows": 10, "cols": 7 },
"layouts": {
"keymap": [
[{ "x": 3.5 }, "0,3", { "x": 10.5 }, "5,3"],
[
{ "y": -0.875, "x": 2.5 },
"0,2",
{ "x": 1 },
"0,4",
{ "x": 8.5 },
"5,4",
{ "x": 1 },
"5,2"
],
[{ "y": -0.875, "x": 5.5 }, "0,5", { "x": 6.5 }, "5,5"],
[
{ "y": -0.875, "c": "#777777", "w": 1.5 },
"0,0",
{ "c": "#cccccc" },
"0,1",
{ "x": 14.5 },
"5,1",
{ "c": "#aaaaaa", "w": 1.5 },
"5,0"
],
[{ "y": -0.625, "x": 6.5, "c": "#cccccc" }, "0,6", { "x": 4.5 }, "5,6"],
[{ "y": -0.75, "x": 3.5 }, "1,3", { "x": 10.5 }, "6,3"],
[
{ "y": -0.875, "x": 2.5 },
"1,2",
{ "x": 1 },
"1,4",
{ "x": 8.5 },
"6,4",
{ "x": 1 },
"6,2"
],
[{ "y": -0.875, "x": 5.5 }, "1,5", { "x": 6.5 }, "6,5"],
[
{ "y": -0.875, "c": "#aaaaaa", "w": 1.5 },
"1,0",
{ "c": "#cccccc" },
"1,1",
{ "x": 14.5 },
"6,1",
{ "c": "#aaaaaa", "w": 1.5 },
"6,0"
],
[
{ "y": -0.625, "x": 6.5, "c": "#cccccc", "h": 1.5 },
"1,6",
{ "x": 4.5, "h": 1.5 },
"6,6"
],
[{ "y": -0.75, "x": 3.5 }, "2,3", { "x": 10.5 }, "7,3"],
[
{ "y": -0.875, "x": 2.5 },
"2,2",
{ "x": 1 },
"2,4",
{ "x": 8.5 },
"7,4",
{ "x": 1 },
"7,2"
],
[{ "y": -0.875, "x": 5.5 }, "2,5", { "x": 6.5 }, "7,5"],
[
{ "y": -0.875, "c": "#aaaaaa", "w": 1.5 },
"2,0",
{ "c": "#cccccc" },
"2,1",
{ "x": 14.5 },
"7,1",
{ "c": "#aaaaaa", "w": 1.5 },
"7,0"
],
[{ "y": -0.375, "x": 3.5, "c": "#cccccc" }, "3,3", { "x": 10.5 }, "8,3"],
[
{ "y": -0.875, "x": 2.5 },
"3,2",
{ "x": 1 },
"3,4",
{ "x": 8.5 },
"8,4",
{ "x": 1 },
"8,2"
],
[{ "y": -0.875, "x": 5.5 }, "3,5", { "x": 6.5 }, "8,5"],
[
{ "y": -0.875, "c": "#aaaaaa", "w": 1.5 },
"3,0",
{ "c": "#cccccc" },
"3,1",
{ "x": 14.5 },
"8,1",
{ "c": "#aaaaaa", "w": 1.5 },
"8,0"
],
[{ "y": -0.375, "x": 3.5 }, "4,3", { "x": 10.5 }, "9,3"],
[{ "y": -0.875, "x": 2.5 }, "4,2", { "x": 12.5 }, "9,2"],
[{ "y": -0.75, "x": 0.5 }, "4,0", "4,1", { "x": 14.5 }, "9,1", "9,0"],
[{ "y": -0.745, "x": 13.5 }, "9,4"],
[{ "y": -0.75, "x": 5.25 }, "4,4"],
[{ "r": 30, "rx": 6.5, "ry": 4.25, "y": -1, "x": 1 }, "2,6", "3,6"],
[
{ "x": 1, "c": "#777777", "h": 2 },
"4,5",
{ "c": "#aaaaaa", "h": 2 },
"4,6"
],
[{ "r": -30, "rx": 13, "y": -1, "x": -3 }, "8,6", "7,6"],
[{ "x": -3, "h": 2 }, "9,6", { "c": "#777777", "h": 2 }, "9,5"]
]
}
}

16
keyboards/neodox/neodox.c Normal file
View File

@ -0,0 +1,16 @@
/* Copyright 2023 Pastitas
* 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 "neodox.h"

47
keyboards/neodox/neodox.h Normal file
View File

@ -0,0 +1,47 @@
/* Copyright 2023 Pastitas
*
* 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/>.
*/
#pragma once
#include "quantum.h"
#ifdef USE_I2C
#include <stddef.h>
#ifdef __AVR__
#include <avr/io.h>
#include <avr/interrupt.h>
#endif
#endif
#define LAYOUT( \
k00, k01, k02, k03, k04, k05, k08, k09, k10, k11, k12, k13, \
k14, k15, k16, k17, k18, k19, k06, k07, k22, k23, k24, k25, k26, k27, \
k28, k29, k30, k31, k32, k33, k20, k21, k36, k37, k38, k39, k40, k41, \
k42, k43, k44, k45, k46, k47, k34, k48, k49, k35, k50, k51, k52, k53, k54, k55, \
k56, k57, k58, k59, k60, k61, k62, k63, k64, k65, k66, k67, k68, k69 \
) \
{ \
{ k00, k01, k02, k03, k04, k05, k06 }, \
{ k14, k15, k16, k17, k18, k19, k20 }, \
{ k28, k29, k30, k31, k32, k33, k34 }, \
{ k42, k43, k44, k45, k46, k47, k48 }, \
{ k56, k57, k58, k59, k60, k61, k62 }, \
{ k13, k12, k11, k10, k09, k08, k07 }, \
{ k27, k26, k25, k24, k23, k22, k21 }, \
{ k41, k40, k39, k38, k37, k36, k35 }, \
{ k55, k54, k53, k52, k51, k50, k49 }, \
{ k69, k68, k67, k66, k65, k64, k63 } \
}

View File

@ -0,0 +1,3 @@
# The Neodox keyboard
WIP

26
keyboards/neodox/rules.mk Normal file
View File

@ -0,0 +1,26 @@
# MCU name
MCU = atmega32u4
# Bootloader selection
BOOTLOADER = caterina
# Build Options
# change yes to no to disable
#
BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite
MOUSEKEY_ENABLE = yes # Mouse keys
EXTRAKEY_ENABLE = yes # Audio control and System control
CONSOLE_ENABLE = no # Console for debug
COMMAND_ENABLE = yes # Commands for debug and configuration
NKRO_ENABLE = no # Enable N-Key Rollover
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
AUDIO_ENABLE = no # Audio output
RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight.
SPLIT_KEYBOARD = yes
DEFAULT_FOLDER = redox/rev1/base
# Disable unsupported hardware
AUDIO_SUPPORTED = no
BACKLIGHT_SUPPORTED = no