forked from qmk/qmk_firmware
-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ebf4866
commit db8bd48
Showing
13 changed files
with
633 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,156 @@ | ||
/* | ||
Copyright 2021 Sadek Baroudi <[email protected]> | ||
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 | ||
|
||
/* key matrix size */ | ||
#define MATRIX_ROWS 9 | ||
#define MATRIX_COLS 8 | ||
|
||
// SHIFT REGISTER | ||
// Only needed for matrix_74hc595_spi.c | ||
#define SHIFTREG_MATRIX_COL_CS GP21 | ||
#define SHIFTREG_DIVISOR 8 | ||
#define MATRIX_ROW_PINS_SR { GP4, GP5, GP6, GP8, GP24, GP11, GP0, GP10, GP7 } | ||
|
||
// SPI config for shift register | ||
#define SPI_DRIVER SPID0 | ||
#define SPI_SCK_PIN GP22 | ||
#define SPI_MOSI_PIN GP23 | ||
#define SPI_MISO_PIN GP20 | ||
|
||
// VIK pin config | ||
#define VIK_SPI_DRIVER SPID0 | ||
#define VIK_SPI_SCK_PIN GP22 | ||
#define VIK_SPI_MOSI_PIN GP23 | ||
#define VIK_SPI_MISO_PIN GP20 | ||
#define VIK_SPI_CS GP9 | ||
#define VIK_I2C_DRIVER I2CD1 | ||
#define VIK_I2C_SDA_PIN GP2 | ||
#define VIK_I2C_SCL_PIN GP3 | ||
#define VIK_GPIO_1 GP26 | ||
#define VIK_GPIO_2 GP27 | ||
#define VIK_WS2812_DI_PIN GP25 | ||
|
||
/* COL2ROW, ROW2COL*/ | ||
#define DIODE_DIRECTION COL2ROW | ||
|
||
/* encoder config */ | ||
#define ENCODERS_PAD_A {GP1, GP13} | ||
#define ENCODERS_PAD_B {GP14, GP12} | ||
#define ENCODER_RESOLUTION 2 | ||
|
||
#define WS2812_DI_PIN GP25 | ||
#ifdef RGBLIGHT_ENABLE | ||
#define RGBLIGHT_LED_COUNT 66 | ||
#define RGBLIGHT_HUE_STEP 16 | ||
#define RGBLIGHT_SAT_STEP 16 | ||
#define RGBLIGHT_VAL_STEP 16 | ||
#define RGBLIGHT_LIMIT_VAL 100 /* 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 | ||
|
||
#ifdef RGB_MATRIX_ENABLE | ||
#define RGB_MATRIX_LED_COUNT 66 | ||
#define RGB_MATRIX_CENTER {100, 32} | ||
#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 100 /* The maximum brightness level for RGB_MATRIX */ | ||
#define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS // Sets the default brightness value, if none has been set | ||
#define RGB_MATRIX_KEYPRESSES | ||
#define RGB_MATRIX_FRAMEBUFFER_EFFECTS | ||
#define RGB_MATRIX_KEYREACTIVE_ENABLED | ||
#define ENABLE_RGB_MATRIX_ALPHAS_MODS | ||
#define ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN | ||
#define ENABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT | ||
#define ENABLE_RGB_MATRIX_BREATHING | ||
#define ENABLE_RGB_MATRIX_BAND_SAT | ||
#define ENABLE_RGB_MATRIX_BAND_VAL | ||
#define ENABLE_RGB_MATRIX_BAND_PINWHEEL_SAT | ||
#define ENABLE_RGB_MATRIX_BAND_PINWHEEL_VAL | ||
#define ENABLE_RGB_MATRIX_BAND_SPIRAL_SAT | ||
#define ENABLE_RGB_MATRIX_BAND_SPIRAL_VAL | ||
#define ENABLE_RGB_MATRIX_CYCLE_ALL | ||
#define ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT | ||
#define ENABLE_RGB_MATRIX_CYCLE_UP_DOWN | ||
#define ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON | ||
#define ENABLE_RGB_MATRIX_DUAL_BEACON | ||
#define ENABLE_RGB_MATRIX_CYCLE_PINWHEEL | ||
#define ENABLE_RGB_MATRIX_CYCLE_SPIRAL | ||
#define ENABLE_RGB_MATRIX_RAINBOW_BEACON | ||
#define ENABLE_RGB_MATRIX_RAINBOW_PINWHEELS | ||
#define ENABLE_RGB_MATRIX_RAINDROPS | ||
#define ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS | ||
#define ENABLE_RGB_MATRIX_DIGITAL_RAIN | ||
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE | ||
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE | ||
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE | ||
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE | ||
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS | ||
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS | ||
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS | ||
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS | ||
#define ENABLE_RGB_MATRIX_SPLASH | ||
#define ENABLE_RGB_MATRIX_MULTISPLASH | ||
#define ENABLE_RGB_MATRIX_SOLID_SPLASH | ||
#define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH | ||
#endif | ||
|
||
#ifdef AUDIO_ENABLE | ||
#define AUDIO_VOICES | ||
#define AUDIO_PIN GP18 | ||
#define AUDIO_PWM_DRIVER PWMD1 | ||
#define AUDIO_PWM_CHANNEL RP2040_PWM_CHANNEL_A | ||
// #define AUDIO_PWM_PAL_MODE 42 // only if using AUDIO_DRIVER = pwm_hardware | ||
// #define NO_MUSIC_MODE | ||
#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_LIGHT_EXT HALF_NOTE(_E6), HALF_NOTE(_F6), HALF_NOTE(_C6), WHOLE_NOTE(_A5), WHOLE_DOT_NOTE(_F5), WHOLE_DOT_NOTE(_D5), WHOLE_DOT_NOTE(_G5), WHOLE_DOT_NOTE(_C5), | ||
#define STARTUP_SONG SONG(FP_STARTUP_LIGHT_EXT) | ||
#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 | ||
|
||
#ifdef VIK_PMW3360 | ||
#define POINTING_DEVICE_INVERT_Y | ||
#endif | ||
|
||
#include "keyboards/fingerpunch/src/config_post.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
[ | ||
{ | ||
"type" : "one-of", | ||
"names" : [ | ||
"VIK_AZOTEQ", | ||
"VIK_CIRQUE", | ||
"VIK_EC11_EVQWGD001", | ||
"VIK_GC9A01", | ||
"VIK_HAPTIC", | ||
"VIK_ILI9341", | ||
"VIK_PER56_CIRQUE_LEDS", | ||
"VIK_PER56_PMW3360_LEDS", | ||
"VIK_PMW3360", | ||
"VIK_WAVESHARE_22224", | ||
"VIK_WEACT_ST7735" | ||
], | ||
"user_input": "What VIK config would you like to use for the left half? (0) NONE, (1) VIK_AZOTEQ, (2) VIK_CIRQUE, (3) VIK_EC11_EVQWGD001, (4) VIK_GC9A01, (5) VIK_HAPTIC, (6) VIK_ILI9341, (7) VIK_PER56_CIRQUE_LEDS, (8) VIK_PER56_PMW3360_LEDS, (9) VIK_PMW3360, (10) VIK_WAVESHARE_22224, (11) VIK_WEACT_ST7735:" | ||
}, | ||
{ | ||
"type" : "one-of", | ||
"names" : [ | ||
"RGBLIGHT_ENABLE", | ||
"RGB_MATRIX_ENABLE" | ||
], | ||
"user_input": "No RGB, RGB light, RGB matrix?" | ||
}, | ||
{ | ||
"type" : "single", | ||
"name" : "ENCODER_ENABLE", | ||
"user_input": "Do you have one or more rotary encoders?" | ||
}, | ||
{ | ||
"type" : "single", | ||
"name" : "HAPTIC_ENABLE", | ||
"user_input": "Do you have haptic feedback?" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* | ||
* Copyright 2023 Sadek Baroudi <[email protected]> (@sadekbaroudi) | ||
*/ | ||
|
||
#pragma once | ||
|
||
#define HAL_USE_I2C TRUE | ||
#define HAL_USE_PWM TRUE | ||
#define HAL_USE_PAL TRUE | ||
// #define HAL_USE_SERIAL TRUE // not supported on rp2040, as it seems | ||
#define HAL_USE_SPI TRUE | ||
|
||
#include_next <halconf.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"manufacturer": "sadekbaroudi", | ||
"keyboard_name": "pinkies out", | ||
"url": "https://fingerpunch.xyz/product/pinkies-out-v3/", | ||
"maintainer": "Sadek Baroudi <[email protected]>", | ||
"usb": { | ||
"vid": "0xFEFE", | ||
"pid": "0x6011", | ||
"device_version": "3.1.0" | ||
} | ||
} |
100 changes: 100 additions & 0 deletions
100
keyboards/fingerpunch/pinkiesout/v3_1/keymaps/default/keymap.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
#include QMK_KEYBOARD_H | ||
|
||
// Defines names for use in layer keycodes and the keymap | ||
enum layer_names { | ||
_QWERTY, | ||
_COLEMAK, | ||
_LOWER, | ||
_RAISE, | ||
_ADJUST | ||
}; | ||
|
||
enum custom_keycodes { | ||
QWERTY = SAFE_RANGE, | ||
LOWER, | ||
RAISE, | ||
ADJUST | ||
}; | ||
|
||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
|
||
|
||
[_QWERTY] = LAYOUT_pinkiesout( | ||
KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_LPRN, KC_RPRN, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, | ||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_LBRC, KC_RBRC, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSLS, | ||
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_LCBR, KC_RCBR, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, | ||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, ADJUST, ADJUST, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT, | ||
KC_LCTL, KC_LGUI, LOWER, KC_SPC, KC_LALT, KC_MUTE, KC_MUTE, KC_RALT, KC_SPC, RAISE, KC_RGUI, KC_RCTL | ||
), | ||
|
||
|
||
[_COLEMAK] = LAYOUT_pinkiesout( | ||
KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_LPRN, KC_RPRN, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, | ||
KC_TAB, KC_Q, KC_W, KC_F, KC_P, KC_B, KC_LBRC, KC_RBRC, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, KC_BSLS, | ||
KC_CAPS, KC_A, KC_R, KC_S, KC_T, KC_G, KC_LCBR, KC_RCBR, KC_M, KC_N, KC_E, KC_I, KC_O, KC_QUOT, | ||
KC_LSFT, KC_Z, KC_X, KC_C, KC_D, KC_V, ADJUST, ADJUST, KC_K, KC_H, KC_COMM, KC_DOT, KC_SLSH, KC_ENT, | ||
KC_LCTL, KC_LGUI, LOWER, KC_SPC, KC_LALT, _______, _______, KC_RALT, KC_SPC, RAISE, KC_RGUI, KC_RCTL | ||
), | ||
|
||
|
||
[_LOWER] = LAYOUT_pinkiesout( | ||
KC_GRV, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MINS, KC_EQL, _______, | ||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
), | ||
|
||
[_RAISE] = LAYOUT_pinkiesout( | ||
KC_GRV, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MINS, KC_EQL, _______, | ||
_______, _______, KC_PGUP, KC_UP, KC_PGDN, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
_______, KC_HOME, KC_LEFT, KC_DOWN, KC_RGHT, KC_END, _______, _______, _______, _______, _______, _______, _______, _______, | ||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
), | ||
|
||
[_ADJUST] = LAYOUT_pinkiesout( | ||
QK_BOOT, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, _______, _______, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, _______, | ||
_______, RGB_TOG, RGB_RMOD, RGB_MOD, _______, TG(_QWERTY), _______, _______, _______, _______, _______, KC_F11, KC_F12, _______, | ||
_______, RGB_SPI, RGB_HUI, RGB_SAI, RGB_VAI, TG(_COLEMAK), _______, _______, _______, _______, _______, _______, _______, _______, | ||
_______, RGB_SPD, RGB_HUD, RGB_SAD, RGB_VAD, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
) | ||
}; | ||
|
||
bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
switch (keycode) { | ||
case LOWER: | ||
if (record->event.pressed) { | ||
layer_on(_LOWER); | ||
update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
} else { | ||
layer_off(_LOWER); | ||
update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
} | ||
return false; | ||
break; | ||
case RAISE: | ||
if (record->event.pressed) { | ||
layer_on(_RAISE); | ||
update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
} else { | ||
layer_off(_RAISE); | ||
update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
} | ||
return false; | ||
break; | ||
case ADJUST: | ||
if (record->event.pressed) { | ||
layer_on(_ADJUST); | ||
} else { | ||
layer_off(_ADJUST); | ||
} | ||
return false; | ||
break; | ||
default: | ||
break; | ||
} | ||
|
||
return true; | ||
} |
Oops, something went wrong.