initial commit of vulpes minora firmware

This commit is contained in:
Sadek Baroudi 2023-06-03 20:09:38 -07:00
parent 041dd0ea85
commit 48618e23e7
17 changed files with 664 additions and 11 deletions

View File

@ -0,0 +1,158 @@
/*
Copyright 2012 Jun Wako <wakojun@gmail.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/>.
*/
#pragma once
#include "keyboards/fingerpunch/src/config.h"
#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET
/* key matrix size */
// Rows are doubled-up
#define MATRIX_ROWS 8
#define MATRIX_COLS 10
// For SPI
#define SPI_SCK_PIN GP22
#define SPI_MOSI_PIN GP23
#define SPI_MISO_PIN GP20
// wiring of each half
#define MATRIX_ROW_PINS { GP4, GP29, GP28, GP27 }
#define MATRIX_COL_PINS { GP5, GP6, GP7, GP8, GP9 }
/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION COL2ROW
// https://github.com/sadekbaroudi/vik/tree/master/pcb/pers60-cirque-leds or https://github.com/sadekbaroudi/vik/tree/master/pcb/pers60-pmw3360-leds
#ifdef FP_VIK_PERS60_MODULE
#define ENCODERS_PAD_A { GP14, GP3 }
#define ENCODERS_PAD_B { GP13, GP2 }
#define ENCODER_RESOLUTIONS { 2, 1 }
#define ENCODERS_PAD_A_RIGHT { GP14 }
#define ENCODERS_PAD_B_RIGHT { GP13 }
#define ENCODER_RESOLUTIONS_RIGHT { 2 }
// Switch the default for the PERS60 rotary encoder to scrolling
#define FP_ENC_1_LAYER_SCROLL_WHEEL 0
#define FP_ENC_1_LAYER_SUPER_TAB 5
#else
#define ENCODERS_PAD_A { GP14 }
#define ENCODERS_PAD_B { GP13 }
#define ENCODERS_PAD_A_RIGHT { GP14 }
#define ENCODERS_PAD_B_RIGHT { GP13 }
#endif
// Got help from https://www.eisbahn.jp/yoichiro/2022/08/luankey_pico_qmk_firmware.html
#define MASTER_LEFT
#define SPLIT_TRANSPORT_MIRROR
#define SPLIT_POINTING_ENABLE
#define SPLIT_LAYER_STATE_ENABLE
#define SPLIT_MODS_ENABLE
#define SPLIT_HAPTIC_ENABLE
#define SERIAL_PIO_USE_PIO1
#define SERIAL_USART_TX_PIN GP1 // USART TX pin
#define RGB_DI_PIN GP0
#ifdef RGBLIGHT_ENABLE
#define RGBLIGHT_SPLIT
#ifdef FP_VIK_PERS60_MODULE
#define RGBLED_SPLIT { 10, 6 }
#define RGBLED_NUM 16
#else
#define RGBLED_SPLIT { 6, 6 }
#define RGBLED_NUM 12
#endif
#define RGBLIGHT_HUE_STEP 16
#define RGBLIGHT_SAT_STEP 16
#define RGBLIGHT_VAL_STEP 16
#define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level for RGBLIGHT_ENABLE */
#define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
#define RGBLIGHT_EFFECT_ALTERNATING
#define RGBLIGHT_EFFECT_BREATHING
#define RGBLIGHT_EFFECT_CHRISTMAS
#define RGBLIGHT_EFFECT_KNIGHT
#define RGBLIGHT_EFFECT_RAINBOW_MOOD
#define RGBLIGHT_EFFECT_RAINBOW_SWIRL
#define RGBLIGHT_EFFECT_SNAKE
#define RGBLIGHT_EFFECT_STATIC_GRADIENT
#define RGBLIGHT_EFFECT_TWINKLE
#endif
/* Set 0 if debouncing isn't needed */
#define DEBOUNCE 5
#ifdef AUDIO_ENABLE
#define AUDIO_VOICES
#define AUDIO_PIN GP12
#define AUDIO_PWM_DRIVER PWMD6
#define AUDIO_PWM_CHANNEL RP2040_PWM_CHANNEL_A
#define AUDIO_ENABLE_TONE_MULTIPLEXING
#define AUDIO_TONE_MULTIPLEXING_RATE_DEFAULT 10
#define FP_AUDIO_MOUSE_BUTTONS
#define FP_AUDIO_CUT_COPY_PASTE
#define FP_AUDIO_SAVE
#define FP_STARTUP_DARK HALF_DOT_NOTE(_B5), QUARTER_NOTE(_B5), HALF_NOTE(_E6), HALF_NOTE(_REST), QUARTER_NOTE(_C6), QUARTER_NOTE(_REST), QUARTER_NOTE(_G5), QUARTER_NOTE(_E5), QUARTER_NOTE(_F5), QUARTER_NOTE(_GS5), QUARTER_NOTE(_G5), QUARTER_NOTE(_F5), WHOLE_NOTE(_G5),
#define STARTUP_SONG SONG(FP_STARTUP_DARK)
#define DEFAULT_LAYER_SONGS \
{ SONG(QWERTY_SOUND), SONG(COLEMAK_SOUND) }
#endif
#ifdef HAPTIC_ENABLE
#define FB_ERM_LRA 1
#define FB_BRAKEFACTOR 3 // For 1x:0, 2x:1, 3x:2, 4x:3, 6x:4, 8x:5, 16x:6, Disable Braking:7
#define FB_LOOPGAIN 1 // For Low:0, Medium:1, High:2, Very High:3
#define RATED_VOLTAGE 2
#define V_PEAK 2.8
#define V_RMS 2.0
#define F_LRA 150 // resonance freq
#define DRV_GREETING alert_750ms
#define FP_HAPTIC_MOUSE_BUTTONS
#define FP_HAPTIC_CUT_COPY_PASTE
#define FP_HAPTIC_SAVE
#endif
/* 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
#ifdef CIRQUE_ENABLE
// cirque trackpad config
#define CIRQUE_PINNACLE_SPI_CS_PIN GP21
// Uncomment 2 lines below to switch to relative mode and enable right click
// Note that tap to click doesn't work on the slave side unless you enable relative mode
// #define CIRQUE_PINNACLE_POSITION_MODE CIRQUE_PINNACLE_RELATIVE_MODE
// #define CIRQUE_PINNACLE_SECONDARY_TAP_ENABLE
#define CIRQUE_PINNACLE_TAP_ENABLE
#define POINTING_DEVICE_ROTATION_90
#define POINTING_DEVICE_TASK_THROTTLE_MS 5
#define POINTING_DEVICE_LEFT
#endif
#ifdef FP_TRACKBALL_ENABLE
// Trackball config
#define PMW33XX_CS_PIN GP21
#define PMW33XX_CPI 1000
#define PMW33XX_CS_DIVISOR 8
/* SPI config for pmw3360 sensor. */
#define SPI_DRIVER SPID0
// #define SPI_SCK_PAL_MODE 5 // already defined in chibios
// #define SPI_MOSI_PAL_MODE 5 // already defined in chibios
// #define SPI_MISO_PAL_MODE 5 // already defined in chibios
#define POINTING_DEVICE_LEFT
#endif

View File

@ -0,0 +1,37 @@
[
{
"type" : "single",
"name" : "CIRQUE_ENABLE",
"user_input": "Do you have a cirque?"
},
{
"type" : "single",
"name" : "FP_TRACKBALL_ENABLE",
"user_input": "Do you have a trackball?"
},
{
"type" : "single",
"name" : "RGBLIGHT_ENABLE",
"user_input": "Do you have leds for underglow?"
},
{
"type" : "single",
"name" : "FP_VIK_PERS60_MODULE",
"user_input": "Do you have a scroll wheel VIK module installed with LEDs?"
},
{
"type" : "single",
"name" : "ENCODER_ENABLE",
"user_input": "Do you have one or more rotary encoders?"
},
{
"type" : "single",
"name" : "AUDIO_ENABLE",
"user_input": "Do you have an audio buzzer?"
},
{
"type" : "single",
"name" : "HAPTIC_ENABLE",
"user_input": "Do you have a haptic feedback?"
}
]

View File

@ -0,0 +1,25 @@
/*
* Copyright 2022 Charly Delay <charly@codesink.dev> (@0xcharly)
*
* 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
#define HAL_USE_SPI TRUE
#define HAL_USE_I2C TRUE
#define HAL_USE_PWM TRUE
#define HAL_USE_PAL TRUE
#include_next "halconf.h"

View File

@ -0,0 +1,11 @@
{
"manufacturer": "sadekbaroudi",
"keyboard_name": "vulpes minora",
"url": "https://github.com/sadekbaroudi/vulpes-minora/",
"maintainer": "Sadek Baroudi <sadekbaroudi@gmail.com>",
"usb": {
"vid": "0xFEFE",
"pid": "0x1110",
"device_version": "1.0.0"
}
}

View File

@ -0,0 +1,141 @@
#include QMK_KEYBOARD_H
// Defines names for use in layer keycodes and the keymap
enum layer_names {
_QWERTY,
_COLEMAK,
_LOWER,
_RAISE,
_ADJUST
};
#define LOWER MO(_LOWER)
#define RAISE MO(_RAISE)
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/* Qwerty
*
* ,-----------------------------------------. ,-----------------------------------------.
* | Esc | Q | W | E | R | T | | Y | U | I | O | P | \ |
* |------+------+------+------+------+------| |------+------+------+------+------+------|
* | Tab | A | S | D | F | G | | H | J | K | L | ; | ' |
* |------+------+------+------+------+------| |------+------+------+------+------+------|
* | Shft | Z | X | C | V | B | | N | M | , | . | / | Ctrl |
* `-----------------------------------------' `-----------------------------------------'
* ,------. ,--------------------. ,--------------------. ,------.
* | MUTE | | LOWER| Enter| Del | |BckSpc| Space| RAISE| | MUTE |
* `------' `--------------------' `--------------------. `------'
* ,--------------------. ,--------------------.
* | Undo | Redo2| Redo | | Vol- | Mute | Vol+ | // 3 way thumb switch
* `--------------------' `--------------------.
*/
// Default config uses home row mods. So hold each of the keys on the home row to use ctrl, gui, alt, or shift
[_QWERTY] = LAYOUT_ximi(
KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSLS,
KC_TAB, LCTL_T(KC_A), LGUI_T(KC_S), LALT_T(KC_D), LSFT_T(KC_F), KC_G, KC_H, RSFT_T(KC_J), RALT_T(KC_K), RGUI_T(KC_L), RCTL_T(KC_SCLN), KC_QUOT,
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RCTL,
KC_MUTE, LOWER, KC_ENT, KC_DEL, KC_BSPC, KC_SPC, RAISE, KC_MUTE,
C(KC_Z), C(S(KC_Z)), C(KC_Y), KC_VOLD, KC_MUTE, KC_VOLU
),
/* Colemak
*
* ,-----------------------------------------. ,-----------------------------------------.
* | Esc | Q | W | F | P | B | | J | L | U | Y | ; | \ |
* |------+------+------+------+------+------| |------+------+------+------+------+------|
* | Tab | A | R | S | T | G | | M | N | E | I | O | ' |
* |------+------+------+------+------+------| |------+------+------+------+------+------|
* | Shft | Z | X | C | D | V | | K | H | , | . | / | Ctrl |
* `--------------------+--------------------' `-----------------------------------------'
* ,------. ,--------------------. ,--------------------. ,------.
* | MUTE | | LOWER| Enter| ' | |BckSpc| Space| RAISE| | MUTE |
* `------' `--------------------' `--------------------. `------'
* ,--------------------. ,--------------------.
* | Undo | Redo2| Redo | | Vol- | Mute | Vol+ | // 3 way thumb switch
* `--------------------' `--------------------.
*/
// Default config uses home row mods. So hold each of the keys on the home row to use ctrl, gui, alt, or shift
[_COLEMAK] = LAYOUT_ximi(
KC_ESC, KC_Q, KC_W, KC_F, KC_P, KC_B, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, KC_BSLS,
KC_TAB, LCTL_T(KC_A), LGUI_T(KC_R), LALT_T(KC_S), LSFT_T(KC_T), KC_G, KC_M, RSFT_T(KC_N), RALT_T(KC_E), RGUI_T(KC_I), RCTL_T(KC_O), KC_QUOT,
KC_LSFT, KC_Z, KC_X, KC_C, KC_D, KC_V, KC_K, KC_H, KC_COMM, KC_DOT, KC_SLSH, KC_RCTL,
KC_MUTE, LOWER, KC_ENT, KC_QUOT, KC_BSPC, KC_SPC, RAISE, KC_MUTE,
C(KC_Z), C(S(KC_Z)), C(KC_Y), KC_VOLD, KC_MUTE, KC_VOLU
),
/* Raise
*
* ,-----------------------------------------. ,-----------------------------------------.
* | ____ | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | ____ |
* |------+------+------+------+------+------| |------+------+------+------+------+------|
* | ____ | Left | Down | Up | Right| Tab | | | - | = | [ | ] | ____ |
* |------+------+------+------+------+------| |------+------+------+------+------+------|
* | ____ | Ctrl| ` | GUI | Alt | | | | | | \ | ' | ____ |
* `-----------------------------------------' `-----------------------------------------'
* ,------. ,--------------------. ,--------------------. ,------.
* | MUTE | | LOWER| | | | | | RAISE| | MUTE |
* `------' `--------------------' `--------------------. `------'
* ,--------------------. ,--------------------.
* | Undo | Redo2| Redo | | Vol- | Mute | Vol+ | // 3 way thumb switch
* `--------------------' `--------------------.
*/
[_RAISE] = LAYOUT_ximi(
_______, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, _______,
_______, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, KC_TAB, _______, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, _______,
_______, KC_LCTL, KC_GRV, KC_LGUI, KC_LALT, _______, _______, _______, _______, KC_BSLS, KC_QUOT, _______,
_______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______
),
/* Lower
*
* ,-----------------------------------------. ,-----------------------------------------.
* | ____ | ! | @ | # | $ | % | | ^ | & | * | ( | ) | ____ |
* |------+------+------+------+------+------| |------+------+------+------+------+------|
* | ____ | Esc | | | | | | | _ | + | { | } | ____ |
* |------+------+------+------+------+------| |------+------+------+------+------+------|
* | ____ | Caps| ~ | |Reset |Btldr | | | | | | | ' | ____ |
* `-----------------------------------------' `-----------------------------------------'
* ,------. ,--------------------. ,--------------------. ,------.
* | MUTE | | LOWER| | | | Del | | RAISE| | MUTE |
* `------' `--------------------' `--------------------. `------'
* ,--------------------. ,--------------------.
* | Undo | Redo2| Redo | | Vol- | Mute | Vol+ | // 3 way thumb switch
* `--------------------' `--------------------.
*/
[_LOWER] = LAYOUT_ximi(
_______, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, _______,
_______, KC_ESC, _______, _______, _______, _______, _______, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, _______,
_______, KC_CAPS, KC_TILD, _______, QK_RBT, QK_BOOT, _______, _______, _______, KC_PIPE, KC_DQT, _______,
_______, _______, _______, _______, KC_DEL, _______, _______, _______,
_______, _______, _______, _______, _______, _______
),
/* Adjust (Lower + Raise)
*
* ,-----------------------------------------. ,-----------------------------------------.
* | ____ | RGB_T| RGB_R| RGB_F| |QWERTY| | F1 | F2 | F3 | F4 | F5 | ____ |
* |------+------+------+------+------+------| |------+------+------+------+------+------|
* | ____ | SPD_I| HUE_I| SAT_I| VAL_I|COLEMK| | F6 | F7 | F8 | F9 | F10 | ____ |
* |------+------+------+------+------+------| |------+------+------+------+------+------|
* | ____ | SPD_D| HUE_D| SAT_D| VAL_D| | | F11 | F12 | |Reset | Btldr| ____ |
* `-----------------------------------------' `-----------------------------------------'
* ,------. ,--------------------. ,--------------------. ,------.
* | MUTE | | LOWER| | | | | | RAISE| | MUTE |
* `------' `--------------------' `--------------------. `------'
* ,--------------------. ,--------------------.
* | Undo | Redo2| Redo | | Vol- | Mute | Vol+ | // 3 way thumb switch
* `--------------------' `--------------------.
*/
[_ADJUST] = LAYOUT_ximi(
_______, RGB_TOG, RGB_RMOD, RGB_MOD, _______, TO(_QWERTY), KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, _______,
_______, RGB_SPI, RGB_HUI, RGB_SAI, RGB_VAI, TO(_COLEMAK), KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, _______,
_______, RGB_SPD, RGB_HUD, RGB_SAD, RGB_VAD, _______, KC_F11, KC_F12, _______, QK_RBT, QK_BOOT, _______,
_______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______
)
};

View File

@ -0,0 +1,21 @@
// Copyright 2023 Manna Harbour
// https://github.com/manna-harbour/miryoku
// 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
#define XXX KC_NO
#define LAYOUT_miryoku( \
K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, \
K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, \
K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, \
N30, K31, K32, K33, K34, K35, K36, K37, K38, N39 \
) \
LAYOUT_ximi( \
K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, \
K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, \
K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, \
XXX, K31, K32, K33, K34, K35, K36, K37, K38, XXX \
)

View File

@ -0,0 +1,4 @@
// Copyright 2022 Manna Harbour
// https://github.com/manna-harbour/miryoku
// 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/>.

View File

@ -0,0 +1,3 @@
// I added this because the splinkies I got were using a substituted flash, so changed to match my flash module per this:
// https://github.com/qmk/qmk_firmware/blob/master/docs/platformdev_rp2040.md#rp2040-second-stage-bootloader-selection
#define RP2040_FLASH_GENERIC_03H

View File

@ -0,0 +1,96 @@
/* Copyright 2021 Sadek Baroudi
*
* 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 "sadekbaroudi.h"
#include QMK_KEYBOARD_H
/*
* The `LAYOUT_luakeeb_base` macro is a template to allow the use of identical
* modifiers for the default layouts (eg ALPHA_ALT, Colemak, Dvorak, etc), so
* that there is no need to set them up for each layout, and modify all of
* them if I want to change them. This helps to keep consistency and ease
* of use. K## is a placeholder to pass through the individual keycodes
*/
// clang-format off
#define LAYOUT_vulpes_minora_base( \
K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, \
K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, \
K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, \
K33, K34, K35, K36, K37, K38 \
) \
LAYOUT_wrapper( \
K01, K02, K03, LT(_FUNCTION, K04), K05, K06, LT(_FUNCTION, K07), K08, K09, K0A, \
LCTL_T(K11), LGUI_T(K12), LALT_T(K13), LSFT_T(K14), K15, LT(_MOUSE, K16), RSFT_T(K17), RALT_T(K18), RGUI_T(K19), RCTL_T(K1A), \
K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, \
KC_MUTE, K33, LT(_NAVIGATION,K34), LT(_FUNCTION,K35), LT(_MEDIA,K36), LT(_SYMBOLS,K37), K38, KC_MUTE \
)
/* Re-pass though to allow templates to be used */
#define LAYOUT_vulpes_minora_base_wrapper(...) LAYOUT_vulpes_minora_base(__VA_ARGS__)
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[_ALPHA_ALT] = LAYOUT_vulpes_minora_base_wrapper(
_________________ALPHA_ALT_L1_________________, _________________ALPHA_ALT_R1_________________,
_________________ALPHA_ALT_L2_________________, _________________ALPHA_ALT_R2_________________,
_________________ALPHA_ALT_L3_________________, _________________ALPHA_ALT_R3_________________,
__ALPHA_ALT_THUMBS_6__
),
[_ALPHA] = LAYOUT_vulpes_minora_base_wrapper(
__________________ALPHA_L1____________________, __________________ALPHA_R1____________________,
__________________ALPHA_L2____________________, __________________ALPHA_R2____________________,
__________________ALPHA_L3____________________, __________________ALPHA_R3____________________,
__ALPHA_THUMBS_6__
),
[_NAVIGATION] = LAYOUT_wrapper(
________________NAVIGATION_1_______________, _________________NUMPAD_1__________________,
________________NAVIGATION_2_______________, _________________NUMPAD_2__________________,
________________NAVIGATION_3_______________, _________________NUMPAD_3__________________,
_______, _______, _______, KC_TAB, KC_BSPC, KC_SPACE, KC_DOT, _______
),
[_SYMBOLS] = LAYOUT_wrapper(
________________SYMBOLS_L1_________________, ________________SYMBOLS_R1_________________,
________________SYMBOLS_L2_________________, ________________SYMBOLS_R2_________________,
________________SYMBOLS_L3_________________, ________________SYMBOLS_R3_________________,
_______, _______, KC_ENT, KC_DEL, KC_BSPC, _______, _______, _______
),
[_FUNCTION] = LAYOUT_wrapper(
________________SHIFTNAV_1_________________, ________________FUNCTION_1_________________,
________________SHIFTNAV_2_________________, ________________FUNCTION_2_________________,
________________SHIFTNAV_3_________________, ________________FUNCTION_3_________________,
_______, _______, _______, _______, N_DEL_LINE, KC_SPACE, _______, _______
),
[_MEDIA] = LAYOUT_wrapper(
___________________RGB_1___________________, _________________MACROS_1__________________,
___________________RGB_2___________________, _________________MACROS_2__________________,
___________________RGB_3___________________, _________________MACROS_3__________________,
_______, _______, _______, _______, _______, _______, _______, _______
),
[_MOUSE] = LAYOUT_wrapper(
__________________MOUSE_1__________________, ___________________BLANK___________________,
__________________MOUSE_2__________________, ___________________BLANK___________________,
__________________MOUSE_3__________________, ___________________BLANK___________________,
_______, _______, KC_MS_BTN1, KC_MS_BTN3, KC_MS_BTN3, KC_MS_BTN2, _______, _______
)
};

View File

@ -0,0 +1,12 @@
#pragma once
#include_next "mcuconf.h"
#undef RP_SPI_USE_SPI0
#define RP_SPI_USE_SPI0 TRUE
#undef RP_I2C_USE_I2C1
#define RP_I2C_USE_I2C1 TRUE
#undef RP_PWM_USE_PWM6
#define RP_PWM_USE_PWM6 TRUE

View File

@ -0,0 +1,26 @@
# vulpes minora
* Keyboard Maintainer: sadekbaroudi
* Hardware Supported: vulpes minora
Make example for this keyboard (after setting up your build environment):
```
make fingerpunch/vulpes_minora:default RGBLIGHT_ENABLE=yes AUDIO_ENABLE=yes ENCODER_ENABLE=yes
```
Options are:
```
RGBLIGHT_ENABLE=yes
AUDIO_ENABLE=yes
HAPTIC_FEEDBACK=yes
ENCODER_ENABLE=yes
CIRQUE_ENABLE=yes
FP_TRACKBALL_ENABLE=yes
```
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.
## Build Guide
See:
https://github.com/sadekbaroudi/vulpes-minora/

View File

@ -0,0 +1,68 @@
# MCU name
MCU = RP2040
BOOTLOADER = rp2040
# Build Options
# change yes to no to disable
#
BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration
EXTRAKEY_ENABLE = yes # Audio control and System control
CONSOLE_ENABLE = no # Console for debug
COMMAND_ENABLE = no # Commands for debug and configuration
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
NKRO_ENABLE = no # USB Nkey Rollover
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
# Either do RGBLIGHT_ENABLE or RGB_MATRIX_ENABLE and RGB_MATRIX_DRIVER
RGBLIGHT_ENABLE ?= no
WS2812_DRIVER = vendor
MIDI_ENABLE = no # MIDI support
UNICODE_ENABLE = no # Unicode
BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches
ENCODER_ENABLE ?= no
EXTRAFLAGS += -flto # macros enable or disable
MOUSEKEY_ENABLE = yes
SPLIT_KEYBOARD = yes
SERIAL_DRIVER = vendor
#HAPTIC FEEDBACK
HAPTIC_ENABLE ?= no
HAPTIC_DRIVER = DRV2605L
AUDIO_ENABLE ?= no
AUDIO_DRIVER = pwm_hardware
ifeq ($(strip $(FP_VIK_PERS60_MODULE)), yes)
OPT_DEFS += -DFP_VIK_PERS60_MODULE
endif
ifeq ($(strip $(CIRQUE_ENABLE)), yes)
MOUSEKEY_ENABLE := yes # not required, but enabling for mouse button keys
POINTING_DEVICE_ENABLE := yes
POINTING_DEVICE_DRIVER := cirque_pinnacle_spi
OPT_DEFS += -DCIRQUE_ENABLE
endif
ifeq ($(strip $(FP_TRACKBALL_ENABLE)), yes)
MOUSEKEY_ENABLE := yes # not required, but enabling for mouse button keys
POINTING_DEVICE_ENABLE := yes
POINTING_DEVICE_DRIVER := pmw3360
QUANTUM_LIB_SRC += spi_master.c
OPT_DEFS += -DFP_TRACKBALL_ENABLE
endif
DEFERRED_EXEC_ENABLE = yes
SRC += keyboards/fingerpunch/src/fp.c \
keyboards/fingerpunch/src/fp_haptic.c \
keyboards/fingerpunch/src/fp_audio.c \
keyboards/fingerpunch/src/fp_keyhandler.c \
keyboards/fingerpunch/src/fp_encoder.c \
keyboards/fingerpunch/src/fp_pointing.c \
keyboards/fingerpunch/src/fp_rgb_common.c \
keyboards/fingerpunch/src/fp_rgblight.c \
keyboards/fingerpunch/src/fp_rgb_matrix.c

View File

@ -0,0 +1 @@
#include "vulpes_minora.h"

View File

@ -0,0 +1,25 @@
#pragma once
#include "quantum.h"
#define ___ KC_NO
#define LAYOUT_split_3x5_4( \
K01, K02, K03, K04, K05, K45, K44, K43, K42, K41, \
K11, K12, K13, K14, K15, K55, K54, K53, K52, K51, \
K21, K22, K23, K24, K25, K65, K64, K63, K62, K61, \
K32, K33, K34, K35, K75, K74, K73, K72 \
) \
{ \
{ K01, K02, K03, K04, K05 }, \
{ K11, K12, K13, K14, K15 }, \
{ K21, K22, K23, K24, K25 }, \
{ ___, K32, K33, K34, K35 }, \
{ K41, K42, K43, K44, K45 }, \
{ K51, K52, K53, K54, K55 }, \
{ K61, K62, K63, K64, K65 }, \
{ ___, K72, K73, K74, K75 } \
}
#define LAYOUT LAYOUT_split_3x5_4
#include "keyboards/fingerpunch/src/fp.h"

View File

@ -48,17 +48,36 @@
#define FP_ENC_0_LAYER_RGB_SAT 9
#define FP_ENC_0_LAYER_RGB_VAL 10
#define FP_ENC_1_LAYER_SUPER_TAB 3 // left - homing thumb layer
#define FP_ENC_1_LAYER_PGUP_PGDN 1
#define FP_ENC_1_LAYER_ZOOM 2
#define FP_ENC_1_LAYER_DPI_POINTING 5
#define FP_ENC_1_LAYER_SUPER_CTRL_TAB 0 // default - base layer
#define FP_ENC_1_LAYER_SCROLL_WHEEL 6
#define FP_ENC_1_LAYER_VOLUME 7
#define FP_ENC_1_LAYER_RGB_MODE 8
#define FP_ENC_1_LAYER_RGB_HUE 4 // left - reachy thumb layer
#define FP_ENC_1_LAYER_RGB_SAT 9
#define FP_ENC_1_LAYER_RGB_VAL 10
// override the default for the scroll wheel encoder on the vulpes minora
#if defined(KEYBOARD_fingerpunch_vulpes_minora) && defined(FP_VIK_PERS60_MODULE)
// vulpes minora with scroll wheel
#undef FP_ENC_1_LAYER_SCROLL_WHEEL
#undef FP_ENC_1_LAYER_SUPER_TAB
#define FP_ENC_1_LAYER_RGB_MODE 3 // left - homing thumb layer
#define FP_ENC_1_LAYER_PGUP_PGDN 1
#define FP_ENC_1_LAYER_ZOOM 2
#define FP_ENC_1_LAYER_DPI_POINTING 5
#define FP_ENC_1_LAYER_SCROLL_WHEEL 0 // default - base layer
#define FP_ENC_1_LAYER_SUPER_CTRL_TAB 6
#define FP_ENC_1_LAYER_VOLUME 7
#define FP_ENC_1_LAYER_SUPER_TAB 8
#define FP_ENC_1_LAYER_RGB_HUE 4 // left - reachy thumb layer
#define FP_ENC_1_LAYER_RGB_SAT 9
#define FP_ENC_1_LAYER_RGB_VAL 10
#else
// all other keyboards
#define FP_ENC_1_LAYER_SUPER_TAB 3 // left - homing thumb layer
#define FP_ENC_1_LAYER_PGUP_PGDN 1
#define FP_ENC_1_LAYER_ZOOM 2
#define FP_ENC_1_LAYER_DPI_POINTING 5
#define FP_ENC_1_LAYER_SUPER_CTRL_TAB 0 // default - base layer
#define FP_ENC_1_LAYER_SCROLL_WHEEL 6
#define FP_ENC_1_LAYER_VOLUME 7
#define FP_ENC_1_LAYER_RGB_MODE 8
#define FP_ENC_1_LAYER_RGB_HUE 4 // left - reachy thumb layer
#define FP_ENC_1_LAYER_RGB_SAT 9
#define FP_ENC_1_LAYER_RGB_VAL 10
#endif
// -------------------- Pointing config ------------------------

View File

@ -24,6 +24,7 @@
|| defined(KEYBOARD_fingerpunch_rockon_v3) \
|| defined(KEYBOARD_fingerpunch_rockon_bp) \
|| defined(KEYBOARD_fingerpunch_sweeeeep) \
|| defined(KEYBOARD_fingerpunch_vulpes_minora) \
|| defined(KEYBOARD_fingerpunch_ximi) \
|| defined(KEYBOARD_fingerpunch_personal_badwings) \
|| defined(KEYBOARD_fingerpunch_personal_klor) \

View File

@ -161,6 +161,11 @@ expanded before being used as arguments to the LAYOUT_xxx macro.
# define LAYOUT LAYOUT_kong
#endif
// Since kong uses the name LAYOUT_kong instead of LAYOUT
#if (!defined(LAYOUT) && defined(LAYOUT_vulpes_minora))
# define LAYOUT LAYOUT_vulpes_minora
#endif
// clang-format off
#define LAYOUT_ergodox_wrapper(...) LAYOUT_ergodox(__VA_ARGS__)
#define LAYOUT_ergodox_pretty_wrapper(...) LAYOUT_ergodox_pretty(__VA_ARGS__)