Skip to content

Commit

Permalink
chore: initial ergol import
Browse files Browse the repository at this point in the history
  • Loading branch information
daedric committed Jul 8, 2024
1 parent 0f10c50 commit 1b50788
Show file tree
Hide file tree
Showing 17 changed files with 3,227 additions and 1 deletion.
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use nix
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@
*.hex
*.bin
*.uf2
.direnv/
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,10 @@ This can also be used to control which fork is used, though only upstream `qmk_f
1. (First time only) `git submodule add https://github.com/qmk/qmk_firmware.git`
1. (To update) `git submodule update --init --recursive`
1. Commit your changes to your userspace repository


# Ergol

To generate the keymap:

python scripts/gen_keymap.py | clang-format > keyboards/zsa/moonlander/keymaps/ergol/keymap.c
49 changes: 49 additions & 0 deletions keyboards/zsa/moonlander/keymaps/daedric/autocorrect_data.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
// Copyright 2024 QMK
// SPDX-License-Identifier: GPL-2.0-or-later

/*******************************************************************************
88888888888 888 d8b .d888 d8b 888 d8b
888 888 Y8P d88P" Y8P 888 Y8P
888 888 888 888
888 88888b. 888 .d8888b 888888 888 888 .d88b. 888 .d8888b
888 888 "88b 888 88K 888 888 888 d8P Y8b 888 88K
888 888 888 888 "Y8888b. 888 888 888 88888888 888 "Y8888b.
888 888 888 888 X88 888 888 888 Y8b. 888 X88
888 888 888 888 88888P' 888 888 888 "Y8888 888 88888P'
888 888
888 888
888 888
.d88b. .d88b. 88888b. .d88b. 888d888 8888b. 888888 .d88b. .d88888
d88P"88b d8P Y8b 888 "88b d8P Y8b 888P" "88b 888 d8P Y8b d88" 888
888 888 88888888 888 888 88888888 888 .d888888 888 88888888 888 888
Y88b 888 Y8b. 888 888 Y8b. 888 888 888 Y88b. Y8b. Y88b 888
"Y88888 "Y8888 888 888 "Y8888 888 "Y888888 "Y888 "Y8888 "Y88888
888
Y8b d88P
"Y88P"
*******************************************************************************/

#pragma once

// Autocorrection dictionary (7 entries):
// :thier -> their
// fitler -> filter
// lenght -> length
// ouput -> output
// widht -> width
// bandwith -> bandwidth
// apss -> pass

#define AUTOCORRECT_MIN_LENGTH 4 // "apss"
#define AUTOCORRECT_MAX_LENGTH 8 // "bandwith"
#define DICTIONARY_SIZE 103

static const uint8_t autocorrect_data[DICTIONARY_SIZE] PROGMEM = {
0x4B, 0x0D, 0x00, 0x15, 0x1A, 0x00, 0x16, 0x36, 0x00, 0x17, 0x40, 0x00, 0x00, 0x17, 0x0C, 0x1A,
0x07, 0x11, 0x04, 0x05, 0x00, 0x81, 0x64, 0x74, 0x68, 0x00, 0x08, 0x00, 0x4C, 0x23, 0x00, 0x0F,
0x2C, 0x00, 0x00, 0x0B, 0x17, 0x2C, 0x00, 0x82, 0x65, 0x69, 0x72, 0x00, 0x17, 0x0C, 0x09, 0x00,
0x83, 0x6C, 0x74, 0x65, 0x72, 0x00, 0x16, 0x13, 0x04, 0x00, 0x83, 0x70, 0x61, 0x73, 0x73, 0x00,
0x4B, 0x47, 0x00, 0x18, 0x5D, 0x00, 0x00, 0x47, 0x4E, 0x00, 0x0A, 0x55, 0x00, 0x00, 0x0C, 0x1A,
0x00, 0x81, 0x74, 0x68, 0x00, 0x11, 0x08, 0x0F, 0x00, 0x81, 0x74, 0x68, 0x00, 0x13, 0x18, 0x12,
0x00, 0x82, 0x74, 0x70, 0x75, 0x74, 0x00
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
:thier -> their
fitler -> filter
lenght -> length
ouput -> output
widht -> width
bandwith -> bandwidth
apss -> pass
118 changes: 118 additions & 0 deletions keyboards/zsa/moonlander/keymaps/daedric/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
/* Copyright 2020 ZSA Technology Labs, Inc <@zsa>
* Copyright 2020 Jack Humbert <[email protected]>
* Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <[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

// Should not be required
// #define ORYX_CONFIGURATOR

// Not sure what it is...
// #define FIRMWARE_VERSION u8"QjAXm/vWLel"

// sets the number of milliseconds to pause after sending a wakeup packet.
// Disabled by default, you might want to set this to 200 (or higher) if the
// keyboard does not wake up properly after suspending

#define USB_SUSPEND_WAKEUP_DELAY 0

/* Set by Oryx to their default value:
* https://github.com/qmk/qmk_firmware/blob/a4da5f219fe0f202a07afa045fc0c08f6ce1f86b/docs/features/rawhid.md#basic-configuration-basic-configuration
*/
#define RAW_USAGE_PAGE 0xFF60
#define RAW_USAGE_ID 0x61

// As long as I'm using <= 8 layers
// https://github.com/qmk/qmk_firmware/blob/a4da5f219fe0f202a07afa045fc0c08f6ce1f86b/docs/squeezing_avr.md#layers
#define LAYER_STATE_8BIT
#define RGBLIGHT_MAX_LAYERS 8
#define LED_MATRIX_SLEEP
#define RGBLIGHT_SLEEP
#define RGB_MATRIX_SLEEP

// Default animation speed
#define RGB_MATRIX_STARTUP_SPD 60

#define UNICODE_SELECTED_MODES UNICODE_MODE_LINUX, UNICODE_MODE_WINCOMPOSE, UNICODE_MODE_MACOS

// give me back my leds :)
#define MOONLANDER_USER_LEDS

// I'm not an animation guy
#undef ENABLE_RGB_MATRIX_ALPHAS_MODS
#undef ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN
#undef ENABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT
#undef ENABLE_RGB_MATRIX_BREATHING
#undef ENABLE_RGB_MATRIX_BAND_SAT
#undef ENABLE_RGB_MATRIX_BAND_VAL
#undef ENABLE_RGB_MATRIX_BAND_PINWHEEL_SAT
#undef ENABLE_RGB_MATRIX_BAND_PINWHEEL_VAL
#undef ENABLE_RGB_MATRIX_BAND_SPIRAL_SAT
#undef ENABLE_RGB_MATRIX_BAND_SPIRAL_VAL
#undef ENABLE_RGB_MATRIX_CYCLE_ALL
#undef ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT
#undef ENABLE_RGB_MATRIX_CYCLE_UP_DOWN
#undef ENABLE_RGB_MATRIX_CYCLE_OUT_IN
#undef ENABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL
#undef ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON
#undef ENABLE_RGB_MATRIX_CYCLE_PINWHEEL
#undef ENABLE_RGB_MATRIX_CYCLE_SPIRAL
#undef ENABLE_RGB_MATRIX_DUAL_BEACON
#undef ENABLE_RGB_MATRIX_RAINBOW_BEACON
#undef ENABLE_RGB_MATRIX_RAINBOW_PINWHEELS
#undef ENABLE_RGB_MATRIX_RAINDROPS
#undef ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS
#undef ENABLE_RGB_MATRIX_HUE_BREATHING
#undef ENABLE_RGB_MATRIX_HUE_PENDULUM
#undef ENABLE_RGB_MATRIX_HUE_WAVE
#undef ENABLE_RGB_MATRIX_PIXEL_FRACTAL
#undef ENABLE_RGB_MATRIX_PIXEL_FLOW
#undef ENABLE_RGB_MATRIX_PIXEL_RAIN
#undef ENABLE_RGB_MATRIX_TYPING_HEATMAP
#undef ENABLE_RGB_MATRIX_DIGITAL_RAIN
#undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE
#undef ENABLE_RGB_MATRIX_SOLID_REACTIVE
#undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE
#undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE
#undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS
#undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS
#undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS
#undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS
#undef ENABLE_RGB_MATRIX_SPLASH
#undef ENABLE_RGB_MATRIX_MULTISPLASH
#undef ENABLE_RGB_MATRIX_SOLID_SPLASH
#undef ENABLE_RGB_MATRIX_SOLID_MULTISPLASH

#define AUTO_SHIFT_TIMEOUT 175
// NO_AUTO_SHIFT_TAB (simple define)
// Do not Auto Shift KC_TAB but leave Auto Shift enabled for the other special
// characters.
// Autoshift has doc there: docs/features/auto_shift.md
// https://github.com/qmk/qmk_firmware/blob/a4da5f219fe0f202a07afa045fc0c08f6ce1f86b/docs/features/auto_shift.md
#define NO_AUTO_SHIFT_TAB

// From https://stackoverflow.com/a/62984543
#define DEPAREN(X) ESC(ISH X)
#define ISH(...) ISH __VA_ARGS__
#define ESC(...) ESC_(__VA_ARGS__)
#define ESC_(...) VAN##__VA_ARGS__
#define VANISH

#define LED_LAYOUT(l0, l5, l10, l15, l20, l25, l29, l65, l61, l56, l51, l46, l41, l36, l1, l6, l11, l16, l21, l26, l30, l66, l62, l57, l52, l47, l42, l37, l2, l7, l12, l17, l22, l27, l31, l67, l63, l58, l53, l48, l43, l38, l3, l8, l13, l18, l23, l28, l64, l59, l54, l49, l44, l39, l4, l9, l14, l19, l24, l35, l71, l60, l55, l50, l45, l40, l32, l33, l34, l70, l69, l68) \
DEPAREN(l0), DEPAREN(l1), DEPAREN(l2), DEPAREN(l3), DEPAREN(l4), DEPAREN(l5), DEPAREN(l6), DEPAREN(l7), DEPAREN(l8), DEPAREN(l9), DEPAREN(l10), DEPAREN(l11), DEPAREN(l12), DEPAREN(l13), DEPAREN(l14), DEPAREN(l15), DEPAREN(l16), DEPAREN(l17), DEPAREN(l18), DEPAREN(l19), DEPAREN(l20), DEPAREN(l21), DEPAREN(l22), DEPAREN(l23), DEPAREN(l24), DEPAREN(l25), DEPAREN(l26), DEPAREN(l27), DEPAREN(l28), DEPAREN(l29), DEPAREN(l30), DEPAREN(l31), DEPAREN(l32), DEPAREN(l33), DEPAREN(l34), DEPAREN(l35), DEPAREN(l36), DEPAREN(l37), DEPAREN(l38), DEPAREN(l39), DEPAREN(l40), DEPAREN(l41), DEPAREN(l42), DEPAREN(l43), DEPAREN(l44), DEPAREN(l45), DEPAREN(l46), DEPAREN(l47), DEPAREN(l48), DEPAREN(l49), DEPAREN(l50), DEPAREN(l51), DEPAREN(l52), DEPAREN(l53), DEPAREN(l54), DEPAREN(l55), DEPAREN(l56), DEPAREN(l57), DEPAREN(l58), DEPAREN(l59), DEPAREN(l60), DEPAREN(l61), DEPAREN(l62), DEPAREN(l63), DEPAREN(l64), DEPAREN(l65), DEPAREN(l66), DEPAREN(l67), DEPAREN(l68), DEPAREN(l69), DEPAREN(l70), DEPAREN(l71)

#define LED_LAYOUT_ALL(color) LED_LAYOUT(color, color, color, color, color, color, color, color, color, color, color, color, color, color, color, color, color, color, color, color, color, color, color, color, color, color, color, color, color, color, color, color, color, color, color, color, color, color, color, color, color, color, color, color, color, color, color, color, color, color, color, color, color, color, color, color, color, color, color, color, color, color, color, color, color, color, color, color, color, color, color, color)
Loading

0 comments on commit 1b50788

Please sign in to comment.