first pass at svlinky test firmware
This commit is contained in:
parent
4d92684515
commit
3e1cfaa8e6
|
|
@ -0,0 +1,131 @@
|
|||
/*
|
||||
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 VIK SPI
|
||||
#define SPI_SCK_PIN GP14
|
||||
#define SPI_MOSI_PIN GP15
|
||||
#define SPI_MISO_PIN GP12
|
||||
|
||||
// wiring of each half
|
||||
#define MATRIX_ROW_PINS { GP29, GP28, GP27, GP26, GP22, GP20, GP23, GP21 }
|
||||
#define MATRIX_COL_PINS { GP0, GP1, GP2, GP3, GP4, GP5, GP6, GP7, GP8, GP9 }
|
||||
|
||||
/* COL2ROW or ROW2COL */
|
||||
#define DIODE_DIRECTION COL2ROW
|
||||
|
||||
#ifdef ENCODER_ENABLE
|
||||
#define ENCODERS_PAD_A { GP18 }
|
||||
#define ENCODERS_PAD_B { GP24 }
|
||||
#endif
|
||||
|
||||
#define RGB_DI_PIN GP16
|
||||
#ifdef RGBLIGHT_ENABLE
|
||||
#define RGBLED_NUM 10 // Arbitrary number, gets overridden by the vik module stuff below
|
||||
#define RGBLIGHT_HUE_STEP 16
|
||||
#define RGBLIGHT_SAT_STEP 16
|
||||
#define RGBLIGHT_VAL_STEP 16
|
||||
#define RGBLIGHT_LIMIT_VAL 130 /* 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 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 GP13
|
||||
// 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_TASK_THROTTLE_MS 5
|
||||
#endif
|
||||
|
||||
#ifdef FP_TRACKBALL_ENABLE
|
||||
// Trackball config
|
||||
#define PMW33XX_CS_PIN GP13
|
||||
#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
|
||||
#endif
|
||||
|
||||
// All the possible VIK modules, defined in rules.mk
|
||||
#if defined(FP_PER56_CIRQUE_LEDS)
|
||||
#undef RGBLED_NUM
|
||||
#define RGBLED_NUM 4
|
||||
#endif
|
||||
#if defined(FP_PER56_PMW3360_LEDS)
|
||||
#undef RGBLED_NUM
|
||||
#define RGBLED_NUM 4
|
||||
#endif
|
||||
#if defined(FP_PMW3360)
|
||||
// do nothing
|
||||
#endif
|
||||
#if defined(FP_WEACT_ST7735)
|
||||
// /* LCD config */
|
||||
#define DISPLAY_CS_PIN GP13
|
||||
#define DISPLAY_RST_PIN GP25 // unused pin, since it's handled with a circuit on the vik module
|
||||
#define DISPLAY_DC_PIN GP18
|
||||
|
||||
// To dynamically control the backlight with BL_TOGG keycode
|
||||
#define BACKLIGHT_PIN GP24
|
||||
#endif
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
[
|
||||
{
|
||||
"type" : "one-of",
|
||||
"names" : [
|
||||
"FP_PER56_CIRQUE_LEDS",
|
||||
"FP_PER56_PMW3360_LEDS",
|
||||
"FP_PMW3360",
|
||||
"FP_WEACT_ST7735"
|
||||
],
|
||||
"user_input": "Which VIK module are you testing? NONE, FP_PER56_CIRQUE_LEDS, FP_PER56_PMW3360_LEDS, FP_PMW3360, FP_WEACT_ST7735"
|
||||
},
|
||||
{
|
||||
"type" : "single",
|
||||
"name" : "HAPTIC_ENABLE",
|
||||
"user_input": "Do you have haptic feedback?"
|
||||
}
|
||||
]
|
||||
|
|
@ -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"
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"manufacturer": "sadekbaroudi",
|
||||
"keyboard_name": "svlinky",
|
||||
"url": "https://fingerpunch.xyz/product/svlinky/",
|
||||
"maintainer": "Sadek Baroudi <sadekbaroudi@gmail.com>",
|
||||
"usb": {
|
||||
"vid": "0xFEFE",
|
||||
"pid": "0x5177",
|
||||
"device_version": "1.0.0"
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,47 @@
|
|||
#include QMK_KEYBOARD_H
|
||||
|
||||
// Defines names for use in layer keycodes and the keymap
|
||||
enum layer_names {
|
||||
_QWERTY
|
||||
};
|
||||
|
||||
enum custom_keycodes {
|
||||
QWERTY = SAFE_RANGE
|
||||
};
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
|
||||
/* Qwerty
|
||||
*
|
||||
* ,---------------------------------------------------------------------.
|
||||
* | Q | W | E | R | T | Y | U | I | O | P |
|
||||
* |------+------+------+------+------|------+------+------+------+------|
|
||||
* | A | S | D | F | G | H | J | K | L | ; |
|
||||
* |------+------+------+------+------|------+------+------+------+------|
|
||||
* | Z | X | C | V | B | N | M | , | . | / |
|
||||
* |------+------+------+------+------|------+------+------+------+------|
|
||||
* | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
|
||||
* |------+------+------+------+------|------+------+------+------+------|
|
||||
* | Q | W | E | R | T | Y | U | I | O | P |
|
||||
* |------+------+------+------+------|------+------+------+------+------|
|
||||
* | A | S | D | F | G | H | J | K | L | ; |
|
||||
* |------+------+------+------+------|------+------+------+------+------|
|
||||
* | Z | X | C | V | B | N | M | , | . | / |
|
||||
* |------+------+------+------+------|------+------+------+------+------|
|
||||
* | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
|
||||
* `---------------------------------------------------------------------'
|
||||
*/
|
||||
|
||||
// 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_svlinky(
|
||||
KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,
|
||||
KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN,
|
||||
KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH,
|
||||
KC_0, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9,
|
||||
KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,
|
||||
KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN,
|
||||
KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH,
|
||||
KC_0, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9
|
||||
)
|
||||
};
|
||||
|
|
@ -0,0 +1,124 @@
|
|||
/* 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
|
||||
|
||||
// clang-format off
|
||||
#define LAYOUT_svlinky_base( \
|
||||
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, K30, \
|
||||
K31, K32, K33, K34, K35, K36, K37, K38, K39, K40, \
|
||||
K41, K42, K43, K44, K45, K46, K47, K48, K49, K50, \
|
||||
K51, K52, K53, K54, K55, K56, K57, K58, K59, K60, \
|
||||
K61, K62, K63, K64, K65, K66, K67, K68, K69, K70, \
|
||||
K71, K72, K73, K74, K75, K76, K77, K78, K79, K80 \
|
||||
) \
|
||||
LAYOUT_wrapper( \
|
||||
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, K30, \
|
||||
K31, K32, K33, K34, K35, K36, K37, K38, K39, K40, \
|
||||
K41, K42, K43, K44, K45, K46, K47, K48, K49, K50, \
|
||||
K51, K52, K53, K54, K55, K56, K57, K58, K59, K60, \
|
||||
K61, K62, K63, K64, K65, K66, K67, K68, K69, K70, \
|
||||
K71, K72, K73, K74, K75, K76, K77, K78, K79, K80 \
|
||||
)
|
||||
|
||||
/* Re-pass though to allow templates to be used */
|
||||
#define LAYOUT_svlinky_base_wrapper(...) LAYOUT_svlinky_base(__VA_ARGS__)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
[_ALPHA_ALT] = LAYOUT_wrapper(
|
||||
KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,
|
||||
KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN,
|
||||
KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH,
|
||||
KC_0, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9,
|
||||
KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,
|
||||
KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN,
|
||||
KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH,
|
||||
KC_0, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9
|
||||
),
|
||||
|
||||
[_ALPHA] = LAYOUT_wrapper(
|
||||
KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,
|
||||
KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN,
|
||||
KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH,
|
||||
KC_0, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9,
|
||||
KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,
|
||||
KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN,
|
||||
KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH,
|
||||
KC_0, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9
|
||||
),
|
||||
|
||||
[_NAVIGATION] = LAYOUT_wrapper(
|
||||
KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,
|
||||
KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN,
|
||||
KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH,
|
||||
KC_0, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9,
|
||||
KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,
|
||||
KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN,
|
||||
KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH,
|
||||
KC_0, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9
|
||||
),
|
||||
|
||||
[_SYMBOLS] = LAYOUT_wrapper(
|
||||
KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,
|
||||
KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN,
|
||||
KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH,
|
||||
KC_0, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9,
|
||||
KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,
|
||||
KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN,
|
||||
KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH,
|
||||
KC_0, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9
|
||||
),
|
||||
|
||||
[_FUNCTION] = LAYOUT_wrapper(
|
||||
KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,
|
||||
KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN,
|
||||
KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH,
|
||||
KC_0, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9,
|
||||
KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,
|
||||
KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN,
|
||||
KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH,
|
||||
KC_0, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9
|
||||
),
|
||||
|
||||
[_MEDIA] = LAYOUT_wrapper(
|
||||
KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,
|
||||
KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN,
|
||||
KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH,
|
||||
KC_0, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9,
|
||||
KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,
|
||||
KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN,
|
||||
KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH,
|
||||
KC_0, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9
|
||||
),
|
||||
|
||||
[_MOUSE] = LAYOUT_wrapper(
|
||||
KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,
|
||||
KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN,
|
||||
KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH,
|
||||
KC_0, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9,
|
||||
KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,
|
||||
KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN,
|
||||
KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH,
|
||||
KC_0, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9
|
||||
)
|
||||
|
||||
};
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
#pragma once
|
||||
|
||||
#include_next "mcuconf.h"
|
||||
|
||||
#undef RP_SPI_USE_SPI1
|
||||
#define RP_SPI_USE_SPI1 TRUE
|
||||
|
||||
#undef RP_I2C_USE_I2C1
|
||||
#define RP_I2C_USE_I2C1 TRUE
|
||||
|
||||
#undef RP_PWM_USE_PWM1
|
||||
#define RP_PWM_USE_PWM1 TRUE
|
||||
|
|
@ -0,0 +1,37 @@
|
|||
# svlinky
|
||||
|
||||
* Keyboard Maintainer: sadekbaroudi
|
||||
* Hardware Supported: svlinky controller
|
||||
|
||||
## Description
|
||||
|
||||
This is a controller, **not** a keyboard. This firmware is intended to serve two purposes:
|
||||
1) To test your controller
|
||||
2) A template for copying over the firmware to any keyboard that you use it on.
|
||||
|
||||
Note: At some point, I'll develop a [qmk converter](https://github.com/qmk/qmk_firmware/blob/master/docs/feature_converters.md) so you can just use `CONVERT_TO=svlinky` on existing keyboards
|
||||
|
||||
## Building
|
||||
|
||||
Make example for this keyboard (after setting up your build environment):
|
||||
```
|
||||
make fingerpunch/svlinky:default RGBLIGHT_ENABLE=yes
|
||||
```
|
||||
|
||||
Options are:
|
||||
```
|
||||
RGBLIGHT_ENABLE=yes
|
||||
HAPTIC_FEEDBACK=yes
|
||||
// for the options below, select only one, or none, used for testing [VIK modules](https://github.com/sadekbaroudi/vik#known-list-of-vik-certifications)
|
||||
FP_PER56_CIRQUE_LEDS=yes
|
||||
FP_PER56_PMW3360_LEDS=yes
|
||||
FP_PMW3360=yes
|
||||
FP_WEACT_ST7735=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.
|
||||
|
||||
## Hardware
|
||||
|
||||
See:
|
||||
https://github.com/sadekbaroudi/svlinky/
|
||||
|
|
@ -0,0 +1,101 @@
|
|||
# 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 = yes # 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
|
||||
RGB_MATRIX_ENABLE ?= no # not supported yet, but will add
|
||||
RGB_MATRIX_DRIVER = WS2812
|
||||
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
|
||||
|
||||
#HAPTIC FEEDBACK
|
||||
HAPTIC_ENABLE ?= no
|
||||
HAPTIC_DRIVER = DRV2605L
|
||||
|
||||
AUDIO_ENABLE ?= no
|
||||
AUDIO_DRIVER = pwm_hardware
|
||||
|
||||
# Choose only one (or none) of the options below
|
||||
FP_PER56_CIRQUE_LEDS ?= no
|
||||
FP_PER56_PMW3360_LEDS ?= no
|
||||
FP_PMW3360 ?= no
|
||||
FP_WEACT_ST7735 ?= no
|
||||
|
||||
ifeq ($(strip $(FP_PER56_CIRQUE_LEDS)), yes)
|
||||
CIRQUE_ENABLE = yes
|
||||
ENCODER_ENABLE = yes
|
||||
RGBLIGHT_ENABLE = yes
|
||||
OPT_DEFS += -DFP_PER56_CIRQUE_LEDS
|
||||
endif
|
||||
|
||||
ifeq ($(strip $(FP_PER56_PMW3360_LEDS)), yes)
|
||||
PMW3360_ENABLE = yes
|
||||
ENCODER_ENABLE = yes
|
||||
RGBLIGHT_ENABLE = yes
|
||||
OPT_DEFS += -DFP_PER56_PMW3360_LEDS
|
||||
endif
|
||||
|
||||
ifeq ($(strip $(FP_PMW3360)), yes)
|
||||
PMW3360_ENABLE = yes
|
||||
OPT_DEFS += -DFP_PMW3360
|
||||
endif
|
||||
|
||||
ifeq ($(strip $(FP_WEACT_ST7735)), yes)
|
||||
# For LCD backlight toggling
|
||||
BACKLIGHT_ENABLE = yes
|
||||
BACKLIGHT_DRIVER = software
|
||||
|
||||
QUANTUM_PAINTER_ENABLE = yes
|
||||
QUANTUM_PAINTER_DRIVERS += st7735_spi
|
||||
QUANTUM_PAINTER_LVGL_INTEGRATION = yes
|
||||
SRC += fonts/urbanist24.qff.c fonts/urbanist36.qff.c
|
||||
SRC += fonts/roboto12.qff.c fonts/roboto18.qff.c fonts/roboto14.qff.c
|
||||
SRC += display.c
|
||||
WPM_ENABLE = yes
|
||||
OPT_DEFS += -DFP_WEACT_ST7735
|
||||
endif
|
||||
|
||||
ifeq ($(strip $(CIRQUE_ENABLE)), yes)
|
||||
POINTING_DEVICE_ENABLE := yes
|
||||
POINTING_DEVICE_DRIVER := cirque_pinnacle_spi
|
||||
OPT_DEFS += -DCIRQUE_ENABLE
|
||||
endif
|
||||
|
||||
ifeq ($(strip $(PMW3360_ENABLE)), yes)
|
||||
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
|
||||
|
|
@ -0,0 +1 @@
|
|||
#include "svlinky.h"
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
#pragma once
|
||||
#include "quantum.h"
|
||||
|
||||
#define LAYOUT_svlinky( \
|
||||
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, K30, \
|
||||
K31, K32, K33, K34, K35, K36, K37, K38, K39, K40, \
|
||||
K41, K42, K43, K44, K45, K46, K47, K48, K49, K50, \
|
||||
K51, K52, K53, K54, K55, K56, K57, K58, K59, K60, \
|
||||
K61, K62, K63, K64, K65, K66, K67, K68, K69, K70, \
|
||||
K71, K72, K73, K74, K75, K76, K77, K78, K79, K80 \
|
||||
) \
|
||||
{ \
|
||||
{ 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, K30 }, \
|
||||
{ K31, K32, K33, K34, K35, K36, K37, K38, K39, K40 }, \
|
||||
{ K41, K42, K43, K44, K45, K46, K47, K48, K49, K50 }, \
|
||||
{ K51, K52, K53, K54, K55, K56, K57, K58, K59, K60 }, \
|
||||
{ K61, K62, K63, K64, K65, K66, K67, K68, K69, K70 }, \
|
||||
{ K71, K72, K73, K74, K75, K76, K77, K78, K79, K80 } \
|
||||
}
|
||||
|
||||
#include "keyboards/fingerpunch/src/fp.h"
|
||||
|
|
@ -176,6 +176,11 @@ expanded before being used as arguments to the LAYOUT_xxx macro.
|
|||
# define LAYOUT LAYOUT_vulpes_majora
|
||||
#endif
|
||||
|
||||
// Since LAYOUT_svlinky uses the name LAYOUT_svlinky instead of LAYOUT
|
||||
#if (!defined(LAYOUT) && defined(LAYOUT_svlinky))
|
||||
# define LAYOUT LAYOUT_svlinky
|
||||
#endif
|
||||
|
||||
// clang-format off
|
||||
#define LAYOUT_ergodox_wrapper(...) LAYOUT_ergodox(__VA_ARGS__)
|
||||
#define LAYOUT_ergodox_pretty_wrapper(...) LAYOUT_ergodox_pretty(__VA_ARGS__)
|
||||
|
|
|
|||
Loading…
Reference in New Issue