diff options
Diffstat (limited to 'keyboards/nullbitsco/nibble')
29 files changed, 0 insertions, 3050 deletions
diff --git a/keyboards/nullbitsco/nibble/big_led.c b/keyboards/nullbitsco/nibble/big_led.c deleted file mode 100644 index d66a808153..0000000000 --- a/keyboards/nullbitsco/nibble/big_led.c +++ /dev/null @@ -1,73 +0,0 @@ -/* Copyright 2021 Jay Greco - * - * 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 "big_led.h" - -void set_big_LED_rgb(uint8_t r_mode, uint8_t g_mode, uint8_t b_mode) { - set_big_LED_r(r_mode); - set_big_LED_g(g_mode); - set_big_LED_b(b_mode); -} - -void set_big_LED_r(uint8_t mode) { - switch(mode) { - case LED_ON: - setPinOutput(BIG_LED_R_PIN); - writePin(BIG_LED_R_PIN, GPIO_STATE_HIGH); - break; - - case LED_OFF: - setPinOutput(BIG_LED_R_PIN); - writePin(BIG_LED_R_PIN, GPIO_STATE_LOW); - break; - - default: - break; - } -} - -void set_big_LED_g(uint8_t mode) { - switch(mode) { - case LED_ON: - setPinOutput(BIG_LED_G_PIN); - writePin(BIG_LED_G_PIN, GPIO_STATE_HIGH); - break; - - case LED_OFF: - setPinOutput(BIG_LED_G_PIN); - writePin(BIG_LED_G_PIN, GPIO_STATE_LOW); - break; - - default: - break; - } -} - -void set_big_LED_b(uint8_t mode) { - switch(mode) { - case LED_ON: - setPinOutput(BIG_LED_B_PIN); - writePin(BIG_LED_B_PIN, GPIO_STATE_HIGH); - break; - - case LED_OFF: - setPinOutput(BIG_LED_B_PIN); - writePin(BIG_LED_B_PIN, GPIO_STATE_LOW); - break; - - default: - break; - } -} diff --git a/keyboards/nullbitsco/nibble/big_led.h b/keyboards/nullbitsco/nibble/big_led.h deleted file mode 100644 index 4ebcc35f08..0000000000 --- a/keyboards/nullbitsco/nibble/big_led.h +++ /dev/null @@ -1,35 +0,0 @@ -/* Copyright 2021 Jay Greco - * - * 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" - -/* Optional big LED pins */ -#define BIG_LED_R_PIN D7 -#define BIG_LED_G_PIN C6 -#define BIG_LED_B_PIN D0 - -#define LED_ON 2 -#define LED_OFF 0 - -#define GPIO_STATE_LOW 0 -#define GPIO_STATE_HIGH 1 - -void - set_big_LED_rgb(uint8_t r_mode, uint8_t g_mode, uint8_t b_mode), - set_big_LED_r(uint8_t mode), - set_big_LED_g(uint8_t mode), - set_big_LED_b(uint8_t mode); diff --git a/keyboards/nullbitsco/nibble/config.h b/keyboards/nullbitsco/nibble/config.h deleted file mode 100644 index c4461c5b20..0000000000 --- a/keyboards/nullbitsco/nibble/config.h +++ /dev/null @@ -1,53 +0,0 @@ -/* Copyright 2021 Jay Greco - * - * 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" - -/* Used to set host for remote KB if VUSB detect doesn't work. */ -// #define KEYBOARD_HOST // Force host mode -// #define KEYBOARD_REMOTE // Force remote mode - -// Workaround for freezing after MacOS sleep -#define NO_USB_STARTUP_CHECK - -/* key matrix size */ -#define MATRIX_ROWS 5 -#define MATRIX_COLS 16 -#define MATRIX_MUX_COLS 4 - -/* Set 0 if debouncing isn't needed */ -#define DEBOUNCE 10 - -/* - * Keyboard Matrix Assignments - * The nibble uses a demultiplexer for the cols. - * to free up more IOs for awesomeness! - * See matrix.c for more details. -*/ -#define MATRIX_ROW_PINS { B1, B3, B2, B6, D4 } -#define MATRIX_COL_MUX_PINS { F4, F5, F6, F7 } -#define MATRIX_COL_PINS { } - -/* Optional SMT LED pins */ -#define RGB_DI_PIN E6 -#define RGBLED_NUM 10 -#define RGBLIGHT_ANIMATIONS -#define RGBLIGHT_SLEEP - -/* Optional encoder pins */ -#define ENCODERS_PAD_A { B5 } -#define ENCODERS_PAD_B { B4 }
\ No newline at end of file diff --git a/keyboards/nullbitsco/nibble/info.json b/keyboards/nullbitsco/nibble/info.json deleted file mode 100644 index 33ae369936..0000000000 --- a/keyboards/nullbitsco/nibble/info.json +++ /dev/null @@ -1,242 +0,0 @@ -{ - "keyboard_name": "NIBBLE", - "manufacturer": "nullbits", - "url": "https://nullbits.co/nibble/", - "usb": { - "vid": "0x6E61", - "pid": "0x6060", - "device_version": "0.0.1" - }, - "layouts": { - "LAYOUT_all": { - "layout": [ - {"label":"Esc", "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":"+", "x":13, "y":0}, - {"label":"Backspace", "x":14, "y":0, "w":2}, - {"label":"Home", "x":16, "y":0}, - {"label":"ENC", "x":0, "y":1}, - {"label":"Tab", "x":1, "y":1, "w":1.5}, - {"label":"Q", "x":2.5, "y":1}, - {"label":"W", "x":3.5, "y":1}, - {"label":"E", "x":4.5, "y":1}, - {"label":"R", "x":5.5, "y":1}, - {"label":"T", "x":6.5, "y":1}, - {"label":"Y", "x":7.5, "y":1}, - {"label":"U", "x":8.5, "y":1}, - {"label":"I", "x":9.5, "y":1}, - {"label":"O", "x":10.5, "y":1}, - {"label":"P", "x":11.5, "y":1}, - {"label":"{", "x":12.5, "y":1}, - {"label":"}", "x":13.5, "y":1}, - {"label":"|", "x":14.5, "y":1, "w":1.5}, - {"label":"Delete", "x":16, "y":1}, - {"label":"M1", "x":0, "y":2}, - {"label":"Caps Lock", "x":1, "y":2, "w":1.25}, - {"label":"A", "x":2.75, "y":2}, - {"label":"S", "x":3.75, "y":2}, - {"label":"D", "x":4.75, "y":2}, - {"label":"F", "x":5.75, "y":2}, - {"label":"G", "x":6.75, "y":2}, - {"label":"H", "x":7.75, "y":2}, - {"label":"J", "x":8.75, "y":2}, - {"label":"K", "x":9.75, "y":2}, - {"label":"L", "x":10.75, "y":2}, - {"label":":", "x":11.75, "y":2}, - {"label":"\"", "x":12.75, "y":2}, - {"label":"Enter", "x":13.75, "y":2, "w":2.25}, - {"label":"PgUp", "x":16, "y":2}, - {"label":"M2", "x":0, "y":3}, - {"label":"Shift", "x":1, "y":3, "w":1.25}, - {"label":"ISO \\", "x":2.25, "y":3}, - {"label":"Z", "x":3.25, "y":3}, - {"label":"X", "x":4.25, "y":3}, - {"label":"C", "x":5.25, "y":3}, - {"label":"V", "x":6.25, "y":3}, - {"label":"B", "x":7.25, "y":3}, - {"label":"N", "x":8.25, "y":3}, - {"label":"M", "x":9.25, "y":3}, - {"label":"<", "x":10.25, "y":3}, - {"label":">", "x":11.25, "y":3}, - {"label":"?", "x":12.25, "y":3}, - {"label":"Shift", "x":13.25, "y":3, "w":1.75}, - {"label":"\u2191", "x":15, "y":3}, - {"label":"PgDn", "x":16, "y":3}, - {"label":"M3", "x":0, "y":4}, - {"label":"Ctrl", "x":1, "y":4, "w":1.25}, - {"label":"Win", "x":2.25, "y":4, "w":1.25}, - {"label":"Alt", "x":3.5, "y":4, "w":1.25}, - {"label":"Space", "x":4.75, "y":4, "w":6.25}, - {"label":"Fn", "x":11, "y":4}, - {"label":"Alt", "x":12, "y":4}, - {"label":"Ctrl", "x":13, "y":4}, - {"label":"\u2190", "x":14, "y":4}, - {"label":"\u2193", "x":15, "y":4}, - {"label":"\u2192", "x":16, "y":4} - ] - }, - "LAYOUT_ansi": { - "layout": [ - {"label":"Esc", "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":"+", "x":13, "y":0}, - {"label":"Backspace", "x":14, "y":0, "w":2}, - {"label":"~", "x":16, "y":0}, - {"x":0, "y":1}, - {"label":"Tab", "x":1, "y":1, "w":1.5}, - {"label":"Q", "x":2.5, "y":1}, - {"label":"W", "x":3.5, "y":1}, - {"label":"E", "x":4.5, "y":1}, - {"label":"R", "x":5.5, "y":1}, - {"label":"T", "x":6.5, "y":1}, - {"label":"Y", "x":7.5, "y":1}, - {"label":"U", "x":8.5, "y":1}, - {"label":"I", "x":9.5, "y":1}, - {"label":"O", "x":10.5, "y":1}, - {"label":"P", "x":11.5, "y":1}, - {"label":"{", "x":12.5, "y":1}, - {"label":"}", "x":13.5, "y":1}, - {"label":"|", "x":14.5, "y":1, "w":1.5}, - {"label":"Page Up", "x":16, "y":1}, - {"x":0, "y":2}, - {"label":"Caps Lock", "x":1, "y":2, "w":1.25}, - {"label":"A", "x":2.75, "y":2}, - {"label":"S", "x":3.75, "y":2}, - {"label":"D", "x":4.75, "y":2}, - {"label":"F", "x":5.75, "y":2}, - {"label":"G", "x":6.75, "y":2}, - {"label":"H", "x":7.75, "y":2}, - {"label":"J", "x":8.75, "y":2}, - {"label":"K", "x":9.75, "y":2}, - {"label":"L", "x":10.75, "y":2}, - {"label":":", "x":11.75, "y":2}, - {"label":"\"", "x":12.75, "y":2}, - {"label":"Enter", "x":13.75, "y":2, "w":2.25}, - {"label":"Page Down", "x":16, "y":2}, - {"x":0, "y":3}, - {"label":"Shift", "x":1, "y":3, "w":2.25}, - {"label":"Z", "x":3.25, "y":3}, - {"label":"X", "x":4.25, "y":3}, - {"label":"C", "x":5.25, "y":3}, - {"label":"V", "x":6.25, "y":3}, - {"label":"B", "x":7.25, "y":3}, - {"label":"N", "x":8.25, "y":3}, - {"label":"M", "x":9.25, "y":3}, - {"label":"<", "x":10.25, "y":3}, - {"label":">", "x":11.25, "y":3}, - {"label":"?", "x":12.25, "y":3}, - {"label":"Shift", "x":13.25, "y":3, "w":1.75}, - {"label":"\u2191", "x":15, "y":3}, - {"label":"End", "x":16, "y":3}, - {"x":0, "y":4}, - {"label":"Ctrl", "x":1, "y":4, "w":1.25}, - {"label":"Win", "x":2.25, "y":4, "w":1.25}, - {"label":"Alt", "x":3.5, "y":4, "w":1.25}, - {"label":"Space", "x":4.75, "y":4, "w":6.25}, - {"label":"Alt", "x":11, "y":4}, - {"label":"Fn", "x":12, "y":4}, - {"label":"Ctrl", "x":13, "y":4}, - {"label":"\u2190", "x":14, "y":4}, - {"label":"\u2193", "x":15, "y":4}, - {"label":"\u2192", "x":16, "y":4} - ] - }, - "LAYOUT_iso": { - "layout": [ - {"label":"Esc", "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":"+", "x":13, "y":0}, - {"label":"Backspace", "x":14, "y":0, "w":2}, - {"label":"Home", "x":16, "y":0}, - {"x":0, "y":1}, - {"label":"Tab", "x":1, "y":1, "w":1.5}, - {"label":"Q", "x":2.5, "y":1}, - {"label":"W", "x":3.5, "y":1}, - {"label":"E", "x":4.5, "y":1}, - {"label":"R", "x":5.5, "y":1}, - {"label":"T", "x":6.5, "y":1}, - {"label":"Y", "x":7.5, "y":1}, - {"label":"U", "x":8.5, "y":1}, - {"label":"I", "x":9.5, "y":1}, - {"label":"O", "x":10.5, "y":1}, - {"label":"P", "x":11.5, "y":1}, - {"label":"{", "x":12.5, "y":1}, - {"label":"}", "x":13.5, "y":1}, - {"label":"Delete", "x":16, "y":1}, - {"x":0, "y":2}, - {"label":"Caps Lock", "x":1, "y":2, "w":1.25}, - {"label":"A", "x":2.75, "y":2}, - {"label":"S", "x":3.75, "y":2}, - {"label":"D", "x":4.75, "y":2}, - {"label":"F", "x":5.75, "y":2}, - {"label":"G", "x":6.75, "y":2}, - {"label":"H", "x":7.75, "y":2}, - {"label":"J", "x":8.75, "y":2}, - {"label":"K", "x":9.75, "y":2}, - {"label":"L", "x":10.75, "y":2}, - {"label":":", "x":11.75, "y":2}, - {"label":"\"", "x":12.75, "y":2}, - {"label":"~", "x":13.75, "y":2}, - {"label":"Enter", "x":14.75, "y":1, "w":1.25, "h":2}, - {"label":"Page Up", "x":16, "y":2}, - {"x":0, "y":3}, - {"label":"Shift", "x":1, "y":3, "w":1.25}, - {"label":"|", "x":2.25, "y":3}, - {"label":"Z", "x":3.25, "y":3}, - {"label":"X", "x":4.25, "y":3}, - {"label":"C", "x":5.25, "y":3}, - {"label":"V", "x":6.25, "y":3}, - {"label":"B", "x":7.25, "y":3}, - {"label":"N", "x":8.25, "y":3}, - {"label":"M", "x":9.25, "y":3}, - {"label":"<", "x":10.25, "y":3}, - {"label":">", "x":11.25, "y":3}, - {"label":"?", "x":12.25, "y":3}, - {"label":"Shift", "x":13.25, "y":3, "w":1.75}, - {"label":"\u2191", "x":15, "y":3}, - {"label":"Page Down", "x":16, "y":3}, - {"x":0, "y":4}, - {"label":"Ctrl", "x":1, "y":4, "w":1.25}, - {"label":"Win", "x":2.25, "y":4, "w":1.25}, - {"label":"Alt", "x":3.5, "y":4, "w":1.25}, - {"label":"Space", "x":4.75, "y":4, "w":6.25}, - {"label":"Alt", "x":11, "y":4}, - {"label":"Fn", "x":12, "y":4}, - {"label":"Ctrl", "x":13, "y":4}, - {"label":"\u2190", "x":14, "y":4}, - {"label":"\u2193", "x":15, "y":4}, - {"label":"\u2192", "x":16, "y":4} - ] - } - } -} diff --git a/keyboards/nullbitsco/nibble/keymaps/default/keymap.c b/keyboards/nullbitsco/nibble/keymaps/default/keymap.c deleted file mode 100644 index 9337c82863..0000000000 --- a/keyboards/nullbitsco/nibble/keymaps/default/keymap.c +++ /dev/null @@ -1,131 +0,0 @@ -/* Copyright 2021 Jay Greco - * - * 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 - -enum layer_names { - _MA, - _FN -}; - -enum custom_keycodes { - KC_CUST = SAFE_RANGE, -}; - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - [_MA] = LAYOUT_ansi( - 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_HOME, - KC_F13, 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, KC_DEL, - KC_F14, KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_PGUP, - KC_F15, KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_PGDN, - KC_F16, KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, MO(_FN), KC_RALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT - ), - [_FN] = LAYOUT_ansi( - QK_BOOT, 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_END, - RGB_TOG, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ - ), - -}; - -bool process_record_user(uint16_t keycode, keyrecord_t *record) { - // Send keystrokes to host keyboard, if connected (see readme) - process_record_remote_kb(keycode, record); - switch(keycode) { - case KC_CUST: //custom macro - if (record->event.pressed) { - } - break; - - case RM_1: //remote macro 1 - if (record->event.pressed) { - } - break; - - case RM_2: //remote macro 2 - if (record->event.pressed) { - } - break; - - case RM_3: //remote macro 3 - if (record->event.pressed) { - } - break; - - case RM_4: //remote macro 4 - if (record->event.pressed) { - } - break; - - } -return true; -} - -// RGB config, for changing RGB settings on non-VIA firmwares -void change_RGB(bool clockwise) { - bool shift = get_mods() & MOD_MASK_SHIFT; - bool alt = get_mods() & MOD_MASK_ALT; - bool ctrl = get_mods() & MOD_MASK_CTRL; - - if (clockwise) { - if (alt) { - rgblight_increase_hue(); - } else if (ctrl) { - rgblight_increase_val(); - } else if (shift) { - rgblight_increase_sat(); - } else { - rgblight_step(); - } - - } else { - if (alt) { - rgblight_decrease_hue(); - } else if (ctrl) { - rgblight_decrease_val(); - } else if (shift) { - rgblight_decrease_sat(); - } else { - rgblight_step_reverse(); - } - } -} - -bool encoder_update_user(uint8_t index, bool clockwise) { - if (layer_state_is(1)) { - //change RGB settings - change_RGB(clockwise); - } - else { - if (clockwise) { - tap_code(KC_VOLU); - } else { - tap_code(KC_VOLD); - } - } - return true; -} - -void matrix_init_user(void) { - // Initialize remote keyboard, if connected (see readme) - matrix_init_remote_kb(); -} - -void matrix_scan_user(void) { - // Scan and parse keystrokes from remote keyboard, if connected (see readme) - matrix_scan_remote_kb(); -} diff --git a/keyboards/nullbitsco/nibble/keymaps/iso/keymap.c b/keyboards/nullbitsco/nibble/keymaps/iso/keymap.c deleted file mode 100644 index 866585b909..0000000000 --- a/keyboards/nullbitsco/nibble/keymaps/iso/keymap.c +++ /dev/null @@ -1,131 +0,0 @@ -/* Copyright 2021 Jay Greco - * - * 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 - -enum layer_names { - _MA, - _FN -}; - -enum custom_keycodes { - KC_CUST = SAFE_RANGE, -}; - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - [_MA] = LAYOUT_iso( - 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_HOME, - KC_F13, 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_DEL, - KC_F14, KC_CAPS, 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, KC_PGUP, - KC_F15, 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_RSFT, KC_UP, KC_PGDN, - KC_F16, KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, MO(_FN), KC_RALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT - ), - [_FN] = LAYOUT_iso( - QK_BOOT, 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_INS, - RGB_TOG, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ - ), - -}; - -bool process_record_user(uint16_t keycode, keyrecord_t *record) { - // Send keystrokes to host keyboard, if connected (see readme) - process_record_remote_kb(keycode, record); - switch(keycode) { - case KC_CUST: //custom macro - if (record->event.pressed) { - } - break; - - case RM_1: //remote macro 1 - if (record->event.pressed) { - } - break; - - case RM_2: //remote macro 2 - if (record->event.pressed) { - } - break; - - case RM_3: //remote macro 3 - if (record->event.pressed) { - } - break; - - case RM_4: //remote macro 4 - if (record->event.pressed) { - } - break; - - } -return true; -} - -// RGB config, for changing RGB settings on non-VIA firmwares -void change_RGB(bool clockwise) { - bool shift = get_mods() & MOD_MASK_SHIFT; - bool alt = get_mods() & MOD_MASK_ALT; - bool ctrl = get_mods() & MOD_MASK_CTRL; - - if (clockwise) { - if (alt) { - rgblight_increase_hue(); - } else if (ctrl) { - rgblight_increase_val(); - } else if (shift) { - rgblight_increase_sat(); - } else { - rgblight_step(); - } - - } else { - if (alt) { - rgblight_decrease_hue(); - } else if (ctrl) { - rgblight_decrease_val(); - } else if (shift) { - rgblight_decrease_sat(); - } else { - rgblight_step_reverse(); - } - } -} - -bool encoder_update_user(uint8_t index, bool clockwise) { - if (layer_state_is(1)) { - //change RGB settings - change_RGB(clockwise); - } - else { - if (clockwise) { - tap_code(KC_VOLU); - } else { - tap_code(KC_VOLD); - } - } - return true; -} - -void matrix_init_user(void) { - // Initialize remote keyboard, if connected (see readme) - matrix_init_remote_kb(); -} - -void matrix_scan_user(void) { - // Scan and parse keystrokes from remote keyboard, if connected (see readme) - matrix_scan_remote_kb(); -} diff --git a/keyboards/nullbitsco/nibble/keymaps/oled/keymap.c b/keyboards/nullbitsco/nibble/keymaps/oled/keymap.c deleted file mode 100644 index 39e6cd04ef..0000000000 --- a/keyboards/nullbitsco/nibble/keymaps/oled/keymap.c +++ /dev/null @@ -1,143 +0,0 @@ -/* Copyright 2021 Jay Greco - * - * 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 - -enum layer_names { - _MA, - _FN -}; - -enum custom_keycodes { - KC_CUST = SAFE_RANGE, -}; - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - [_MA] = LAYOUT_ansi( - 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_HOME, - KC_F13, 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, KC_DEL, - KC_F14, KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_PGUP, - KC_F15, KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_PGDN, - KC_F16, KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, MO(_FN), KC_RALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT - ), - [_FN] = LAYOUT_ansi( - QK_BOOT, 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_END, - RGB_TOG, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ - ), -}; - -#ifdef OLED_ENABLE -oled_rotation_t oled_init_user(oled_rotation_t rotation) { return OLED_ROTATION_180; } - -static void render_logo(void) { - static const char PROGMEM nibble_logo[] = { - 0x00, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xfe, 0xf8, 0xf0, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xfe, 0xff, 0xff, 0xff, 0xfe, 0x00, 0x00, 0x00, 0x00, 0xfe, 0xff, 0xff, - 0xff, 0xfe, 0x00, 0x00, 0x00, |