This commit is contained in:
joshsit
2025-09-10 01:53:40 -07:00
committed by GitHub
6 changed files with 350 additions and 0 deletions

View File

@@ -0,0 +1,49 @@
// Copyright 2025 joshsit (@joshsit)
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
//Uncomment below to enable tap hold configuration for Home Row Mods:
// Configure the global tapping term (default: 200ms)
#define TAPPING_TERM 180
#define TAPPING_TERM_PER_KEY
#define IGNORE_MOD_TAP_INTERRUPT
// LED LIGHTING STUFF HERE
// #define WS2812_PIO_USE_PIO1
#define RGBLIGHT_LAYERS
// #define WS2812_DI_PIN GP16
#define RGB_DI_PIN GP16
#define RGBLED_NUM 1
#define RGBLIGHT_LIMIT_VAL 50
#define RGBLIGHT_HUE_STEP 8
#define RGBLIGHT_SLEEP
// #define RGBLIGHT_LAYERS_OVERRIDE_RGB_OFF
// #define MK_3_SPEED
#define MOUSEKEY_MOVE_DELTA 4
#define MOUSEKEY_TIME_TO_MAX 20
#define MOUSEKEY_WHEEL_MAX_SPEED 4
// Enable rapid switch from tap to hold, disables double tap hold auto-repeat.
#define QUICK_TAP_TERM 0
//______________________________________________________________________________
/*
* 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

View File

@@ -0,0 +1,69 @@
{
"manufacturer": "joshsit",
"keyboard_name": "sitergo",
"maintainer": "joshsit",
"bootloader": "rp2040",
"diode_direction": "COL2ROW",
"features": {
"bootmagic": true,
"command": false,
"console": false,
"extrakey": true,
"mousekey": true,
"nkro": true
},
"matrix_pins": {
"cols": ["GP29", "GP28", "GP27", "GP26", "GP15", "GP7", "GP6", "GP5", "GP4", "GP3"],
"rows": ["GP2", "GP8", "GP9", "GP11"]
},
"processor": "RP2040",
"url": "",
"usb": {
"device_version": "1.0.0",
"pid": "0x0000",
"vid": "0xFEED"
},
"layouts": {
"LAYOUT_ortho_3x10_6": {
"layout": [
{ "matrix": [0, 0], "x": 0, "y": 0 },
{ "matrix": [0, 1], "x": 1, "y": 0 },
{ "matrix": [0, 2], "x": 2, "y": 0 },
{ "matrix": [0, 3], "x": 3, "y": 0 },
{ "matrix": [0, 4], "x": 4, "y": 0 },
{ "matrix": [0, 5], "x": 5, "y": 0 },
{ "matrix": [0, 6], "x": 6, "y": 0 },
{ "matrix": [0, 7], "x": 7, "y": 0 },
{ "matrix": [0, 8], "x": 8, "y": 0 },
{ "matrix": [0, 9], "x": 9, "y": 0 },
{ "matrix": [1, 0], "x": 0, "y": 1 },
{ "matrix": [1, 1], "x": 1, "y": 1 },
{ "matrix": [1, 2], "x": 2, "y": 1 },
{ "matrix": [1, 3], "x": 3, "y": 1 },
{ "matrix": [1, 4], "x": 4, "y": 1 },
{ "matrix": [1, 5], "x": 5, "y": 1 },
{ "matrix": [1, 6], "x": 6, "y": 1 },
{ "matrix": [1, 7], "x": 7, "y": 1 },
{ "matrix": [1, 8], "x": 8, "y": 1 },
{ "matrix": [1, 9], "x": 9, "y": 1 },
{ "matrix": [2, 0], "x": 0, "y": 2 },
{ "matrix": [2, 1], "x": 1, "y": 2 },
{ "matrix": [2, 2], "x": 2, "y": 2 },
{ "matrix": [2, 3], "x": 3, "y": 2 },
{ "matrix": [2, 4], "x": 4, "y": 2 },
{ "matrix": [2, 5], "x": 5, "y": 2 },
{ "matrix": [2, 6], "x": 6, "y": 2 },
{ "matrix": [2, 7], "x": 7, "y": 2 },
{ "matrix": [2, 8], "x": 8, "y": 2 },
{ "matrix": [2, 9], "x": 9, "y": 2 },
{ "matrix": [3, 2], "x": 2, "y": 3 },
{ "matrix": [3, 3], "x": 3, "y": 3 },
{ "matrix": [3, 4], "x": 4, "y": 3 },
{ "matrix": [3, 5], "x": 5, "y": 3 },
{ "matrix": [3, 6], "x": 6, "y": 3 },
{ "matrix": [3, 7], "x": 7, "y": 3 }
]
}
}
}

View File

@@ -0,0 +1,189 @@
#include QMK_KEYBOARD_H
// Using COLEMAK-DH LAYOUT
// Backlight timeout feature
#define BACKLIGHT_TIMEOUT 200 // in minutes
static uint16_t idle_timer = 0;
static uint8_t halfmin_counter = 0;
static uint8_t old_backlight_level = -1;
static uint8_t old_hue = -1;
static uint8_t old_sat = -1;
static bool led_on = true;
// Enable below define lines for home row mods only
// Left-hand home row mods
#define HOME_A LGUI_T(KC_A)
#define HOME_R LALT_T(KC_R)
#define HOME_S LCTL_T(KC_S)
#define HOME_T LSFT_T(KC_T)
// Right-hand home row mods
#define HOME_N RSFT_T(KC_N)
#define HOME_E RCTL_T(KC_E)
#define HOME_I LALT_T(KC_I)
#define HOME_O RGUI_T(KC_O)
// Tap Dance declarations
enum {
TD_PANIC,
};
// Tap Dance definitions
qk_tap_dance_action_t tap_dance_actions[] = {
// Tap once for Escape, twice for TO(0)
[TD_PANIC] = ACTION_TAP_DANCE_LAYER_MOVE(KC_ESC, 0),
};
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT_ortho_3x10_6(KC_Q, KC_W, KC_F, KC_P, KC_B, KC_J, KC_L, KC_U, KC_Y, KC_BSPC, HOME_A, HOME_R, HOME_S, HOME_T, KC_G, KC_M, HOME_N, HOME_E, HOME_I, HOME_O, KC_Z, KC_X, KC_C, KC_D, KC_V, KC_K, KC_H, KC_COMM, KC_DOT, KC_SLSH, LT(2,KC_DEL), KC_TAB, KC_ESC, TO(3), KC_SPC, LT(1,KC_ENT)),
/* Keymap 0: Basic layer
* .----------------------------------. .----------------------------------.
* | Q | W | F | P | B | | J | L | U | Y | BSPC |
* |------+------+------+------+------| |------+------+------+------+------|
* | HM_A | HM_R | HM_S | HM_T | G | | M | HM_N | HM_E | HM_I | HM_O |
* |------+------+------+------+------| |------+------+------+------+------|
* | Z | X | C | D | V | | K | H | , | . | / |
* '-------------+------+------+------| |-------------+------+------+------'
* | DEL | TAB | ESC | | TO(3)| SPC | ENT |
* '--------------------' '--------------------'
* MO(2) MO(1) */
[1] = LAYOUT_ortho_3x10_6(KC_EXLM, KC_AT, KC_HASH, KC_DLR, LGUI(KC_DOT), KC_NO, KC_NO, KC_LCBR, KC_RCBR, KC_DEL, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_BRIU, KC_VOLU, KC_LBRC, KC_LPRN, KC_RPRN, KC_RBRC, KC_LPRN, KC_RPRN, KC_MINS, KC_UNDS, KC_BRID, KC_VOLD, KC_NO, KC_LT, KC_GT, QK_BOOT, KC_CAPS, KC_NO, KC_SLEP, KC_NO, KC_NO, KC_NO),
/* Keymap 1: Symbols layer
* .----------------------------------. .----------------------------------. To Add:
* | ! | @ | # | $ | EMOJI| | | | { | } | DEL |
* |------+------+------+------+------| |------+------+------+------+------|
* | % | ^ | & | * | BR_U | | VOL_U| [ | ( | ) | ] |
* |------+------+------+------+------| |------+------+------+------+------|
* | ( | ) | - | _ | BR_D | | VOL_D| | < | > | BOOT |
* '-------------+------+------+------| |-------------+------+------+------'
* | CAPS | | SLEEP| | | |XXXXXX|
* '--------------------' '--------------------' */
[2] = LAYOUT_ortho_3x10_6(RGB_TOG, KC_NO, KC_NO, KC_NO, KC_BSLS, KC_PSLS, KC_7, KC_8, KC_9, KC_BSPC, KC_NO, KC_SCLN, KC_QUOT, KC_DQUO, KC_PIPE, KC_COLN, KC_4, KC_5, KC_6, KC_PAST, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_EQL, KC_1, KC_2, KC_3, KC_PPLS, KC_NO, KC_NO, KC_NO, KC_NO, KC_0, KC_PDOT),
/* Keymap 2: Number Pad layer
* .----------------------------------. .----------------------------------.
* |RGB_ON| | | | \ | | / | 7 | 8 | 9 | BSPC |
* |------+------+------+------+------| |------+------+------+------+------|
* | | ; | ' | " | | | | : | 4 | 5 | 6 | * |
* |------+------+------+------+------| |------+------+------+------+------|
* | | | | | | | = | 1 | 2 | 3 | + |
* '-------------+------+------+------| |-------------+------+------+------'
* |XXXXXX| | | | | 0 | .
* '--------------------' '--------------------' */
[3] = LAYOUT_ortho_3x10_6(LCTL(KC_W), LCTL(KC_X), LCTL(KC_C), LCTL(KC_V), SGUI(KC_S), LCTL(KC_Z), KC_LSFT, KC_LCTL, KC_LALT, KC_BSPC, KC_LGUI, KC_LALT, KC_LCTL, KC_LSFT, LCTL(KC_S), KC_WH_D, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, KC_WH_U, KC_WH_D, KC_BTN1, KC_BTN2, KC_BTN3, KC_BTN1, KC_MS_L, KC_MS_D, KC_MS_U, KC_MS_R, KC_DEL, KC_TAB, KC_ESC, TO(0), KC_SPC, KC_ENT )
/* Keymap 3: Navigation layer
* .----------------------------------. .----------------------------------.
* |CTL(W)|CTL(X)|CTL(C)|CTL(V)|PRTSCR| |CTL(Z)| LSFT | LCTL | LALT | BSPC |
* |------+------+------+------+------| |------+------+------+------+------|
* | LGUI | LALT | LCTL | LSFT |CTL(S)| | MW_D | LEFT | DOWN | UP | RGHT |
* |------+------+------+------+------| |------+------+------+------+------|
* | MW_U | MW_D | L-CLK| R-CLK| M-CLK| | L-CLK| MS_L | MS_D | MS_U | MS_R |
* '-------------+------+------+------| |-------------+------+------+------'
* | DEL | TAB | ESC | | TO(0)| SPC | ENT |
* '--------------------' '--------------------' */
};
// LED STUFF
const rgblight_segment_t PROGMEM my_capslock_layer[] = RGBLIGHT_LAYER_SEGMENTS(
// {0, 1, HSV_PURPLE}
{0, 1, HSV_WHITE}
);
const rgblight_segment_t PROGMEM my_layer0_layer[] = RGBLIGHT_LAYER_SEGMENTS(
// {0, 1, 255, 0, 255}
{0, 1, HSV_RED}
);
const rgblight_segment_t PROGMEM my_layer1_layer[] = RGBLIGHT_LAYER_SEGMENTS(
{0, 1, HSV_GREEN}
// {0, RGBLED_NUM, 10, 0, 0}
);
const rgblight_segment_t PROGMEM my_layer2_layer[] = RGBLIGHT_LAYER_SEGMENTS(
{0, 1, HSV_GREEN}
// {0, RGBLED_NUM, 0, 254, 255}
);
const rgblight_segment_t PROGMEM my_layer3_layer[] = RGBLIGHT_LAYER_SEGMENTS(
{0, 1, HSV_BLUE}
// {0, RGBLED_NUM, 0, 254, 255}
);
// Now define the array of layers. Later layers take precedence
const rgblight_segment_t* const PROGMEM my_rgb_layers[] = RGBLIGHT_LAYERS_LIST(
my_layer0_layer,
my_capslock_layer,
my_layer1_layer,
my_layer2_layer,
my_layer3_layer
);
void keyboard_post_init_user(void) {
// Enable the LED layers
rgblight_layers = my_rgb_layers;
}
bool led_update_user(led_t led_state) {
rgblight_set_layer_state(1, led_state.caps_lock);
return true;
}
layer_state_t layer_state_set_user(layer_state_t state) {
rgblight_set_layer_state(0, layer_state_cmp(state, 0));
rgblight_set_layer_state(2, layer_state_cmp(state, 1));
rgblight_set_layer_state(3, layer_state_cmp(state, 2));
rgblight_set_layer_state(4, layer_state_cmp(state, 3));
rgblight_set();
return state;
}
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
if (record->event.pressed) {
#ifdef RGBLIGHT_ENABLE
if (led_on == false || old_backlight_level == -1) {
if (old_backlight_level == -1) old_hue = rgblight_get_hue();
if (old_backlight_level == -1) old_sat = rgblight_get_sat();
if (old_backlight_level == -1) old_backlight_level = rgblight_get_val();
rgblight_sethsv_noeeprom(old_hue, old_sat, old_backlight_level);
led_on = true;
}
#endif
idle_timer = timer_read();
halfmin_counter = 0;
}
return true;
}
void matrix_scan_user(void) {
// idle_timer needs to be set one time
if (idle_timer == 0) idle_timer = timer_read();
#ifdef RGBLIGHT_ENABLE
if ( led_on && timer_elapsed(idle_timer) > 30000) {
halfmin_counter++;
idle_timer = timer_read();
}
if ( led_on && halfmin_counter >= BACKLIGHT_TIMEOUT * 2) {
old_backlight_level = rgblight_get_val();
old_hue = rgblight_get_hue();
old_sat = rgblight_get_sat();
rgblight_sethsv_noeeprom(old_hue, old_sat, 0);
led_on = false;
halfmin_counter = 0;
}
#endif
}
// qmk flash -kb sitergo -km default
qmk c2json -km default -kb sitergo -o sitergo.json keymap.c
// qmk json2c sitergo.json
// For enabling home row mods, Replace the ten keys of your home row in the LAYOUT block of your keymap.c with this.
// HOME_A, HOME_R, HOME_S, HOME_T, KC_G, KC_M, HOME_N, HOME_E, HOME_I, HOME_O,

View File

@@ -0,0 +1,11 @@
{
"keyboard": "sitergo",
"keymap": "default",
"layers": [
["KC_Q", "KC_W", "KC_F", "KC_P", "KC_B", "KC_J", "KC_L", "KC_U", "KC_Y", "KC_BSPC", "LGUI_T(KC_A)", "LALT_T(KC_R)", "LCTL_T(KC_S)", "LSFT_T(KC_T)", "KC_G", "KC_M", "RSFT_T(KC_N)", "RCTL_T(KC_E)", "LALT_T(KC_I)", "RGUI_T(KC_O)", "KC_Z", "KC_X", "KC_C", "KC_D", "KC_V", "KC_K", "KC_H", "KC_COMM", "KC_DOT", "KC_SLSH", "LT(2,KC_DEL)", "KC_TAB", "KC_ESC", "TO(3)", "KC_SPC", "LT(1,KC_ENT)"],
["KC_EXLM", "KC_AT", "KC_HASH", "KC_DLR", "LGUI(KC_DOT)", "KC_NO", "KC_NO", "KC_LCBR", "KC_RCBR", "KC_DEL", "KC_PERC", "KC_CIRC", "KC_AMPR", "KC_ASTR", "KC_BRIU", "KC_VOLU", "KC_LBRC", "KC_LPRN", "KC_RPRN", "KC_RBRC", "KC_LPRN", "KC_RPRN", "KC_MINS", "KC_UNDS", "KC_BRID", "KC_VOLD", "KC_NO", "KC_LT", "KC_GT", "QK_BOOT", "KC_CAPS", "KC_NO", "KC_SLEP", "KC_NO", "KC_NO", "KC_NO"],
["RGB_TOG", "KC_NO", "KC_NO", "KC_NO", "KC_BSLS", "KC_PSLS", "KC_7", "KC_8", "KC_9", "KC_BSPC", "KC_NO", "KC_SCLN", "KC_QUOT", "KC_DQUO", "KC_PIPE", "KC_COLN", "KC_4", "KC_5", "KC_6", "KC_PAST", "KC_NO", "KC_NO", "KC_NO", "KC_NO", "KC_NO", "KC_EQL", "KC_1", "KC_2", "KC_3", "KC_PPLS", "KC_NO", "KC_NO", "KC_NO", "KC_NO", "KC_0", "KC_PDOT"],
["LCTL(KC_W)", "LCTL(KC_X)", "LCTL(KC_C)", "LCTL(KC_V)", "SGUI(KC_S)", "LCTL(KC_Z)", "KC_LSFT", "KC_LCTL", "KC_LALT", "KC_BSPC", "KC_LGUI", "KC_LALT", "KC_LCTL", "KC_LSFT", "LCTL(KC_S)", "KC_WH_D", "KC_LEFT", "KC_DOWN", "KC_UP", "KC_RGHT", "KC_WH_U", "KC_WH_D", "KC_BTN1", "KC_BTN2", "KC_BTN3", "KC_BTN1", "KC_MS_L", "KC_MS_D", "KC_MS_U", "KC_MS_R", "KC_DEL", "KC_TAB", "KC_ESC", "TO(0)", "KC_SPC", "KC_ENT"]
],
"layout": "LAYOUT_ortho_3x10_6"
}

View File

@@ -0,0 +1,27 @@
# sitergo
![sitergo](imgur.com image replace me!)
*A short description of the keyboard/project*
* Keyboard Maintainer: [joshsit](https://github.com/joshsit)
* Hardware Supported: *The PCBs, controllers supported*
* Hardware Availability: *Links to where you can find this hardware*
Make example for this keyboard (after setting up your build environment):
make sitergo:default
Flashing example for this keyboard:
make sitergo:default:flash
See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
## Bootloader
Enter the bootloader in 3 ways:
* **Bootmagic reset**: Hold down the key at (0,0) in the matrix (usually the top left key or Escape) and plug in the keyboard
* **Physical reset button**: Briefly press the button on the back of the PCB - some may have pads you must short instead
* **Keycode in layout**: Press the key mapped to `QK_BOOT` if it is available

View File

@@ -0,0 +1,5 @@
# This file intentionally left blank
CAPS_WORD_ENABLE = yes
TAP_DANCE_ENABLE = yes
RGBLIGHT_ENABLE = yes
WS2812_DRIVER = vendor