forked from mirror/qmk_firmware
Compare commits
11 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1aa40dde46 | ||
|
|
2ffb08843b | ||
|
|
2a8ccafe6e | ||
|
|
1757960b7b | ||
|
|
668121bbf8 | ||
|
|
483ab88489 | ||
|
|
dbbab40981 | ||
|
|
20a0fa9209 | ||
|
|
2d14d12c74 | ||
|
|
0ba352356d | ||
|
|
a4fd5e2491 |
@@ -190,6 +190,8 @@ If you define these options you will enable the associated feature, which may in
|
||||
* pin the DI on the WS2812 is hooked-up to
|
||||
* `#define RGBLIGHT_ANIMATIONS`
|
||||
* run RGB animations
|
||||
* `#define RGBLIGHT_LAYERS`
|
||||
* Lets you define [lighting layers](feature_rgblight.md) that can be toggled on or off. Great for showing the current keyboard layer or caps lock state.
|
||||
* `#define RGBLED_NUM 12`
|
||||
* number of LEDs
|
||||
* `#define RGBLIGHT_SPLIT`
|
||||
|
||||
@@ -172,6 +172,62 @@ const uint8_t RGBLED_KNIGHT_INTERVALS[] PROGMEM = {127, 63, 31};
|
||||
const uint8_t RGBLED_GRADIENT_RANGES[] PROGMEM = {255, 170, 127, 85, 64};
|
||||
```
|
||||
|
||||
## Lighting Layers
|
||||
|
||||
By including `#define RGBLIGHT_LAYERS` in your `config.h` file you can enable lighting layers. These make
|
||||
it easy to use your underglow LEDs as status indicators to show which keyboard layer is currently active, or the state of caps lock, all without disrupting any animations. [Here's a video](https://youtu.be/uLGE1epbmdY) showing an example of what you can do.
|
||||
|
||||
To define a layer, we modify `keymap.c` to list out LED ranges and the colors we want to overlay on them using an array of `rgblight_segment_t` using the `RGBLIGHT_LAYER_SEGMENTS` macro. We can define multiple layers and enable/disable them independently:
|
||||
|
||||
```c
|
||||
// Light LEDs 6 to 9 and 12 to 15 red when caps lock is active. Hard to ignore!
|
||||
const rgblight_segment_t PROGMEM my_capslock_layer[] = RGBLIGHT_LAYER_SEGMENTS(
|
||||
{6, 4, HSV_RED}, // Light 4 LEDs, starting with LED 6
|
||||
{12, 4, HSV_RED} // Light 4 LEDs, starting with LED 12
|
||||
);
|
||||
// Light LEDs 9 & 10 in cyan when keyboard layer 1 is active
|
||||
const rgblight_segment_t PROGMEM my_layer1_layer[] = RGBLIGHT_LAYER_SEGMENTS(
|
||||
{9, 2, HSV_CYAN}
|
||||
);
|
||||
// Light LEDs 11 & 12 in purple when keyboard layer 2 is active
|
||||
const rgblight_segment_t PROGMEM my_layer2_layer[] = RGBLIGHT_LAYER_SEGMENTS(
|
||||
{11, 2, HSV_PURPLE},
|
||||
);
|
||||
// etc..
|
||||
```
|
||||
|
||||
We combine these layers into an array using the `RGBLIGHT_LAYERS_LIST` macro, and assign it to the `rgblight_layers` variable during keyboard setup. Note that you can only define up to 8 lighting layers. Any extra layers will be ignored. Since the different lighting layers overlap, the order matters in the array, with later layers taking precedence:
|
||||
|
||||
```c
|
||||
// Now define the array of layers. Later layers take precedence
|
||||
const rgblight_segment_t* const PROGMEM my_rgb_layers[] = RGBLIGHT_LAYERS_LIST(
|
||||
my_capslock_layer,
|
||||
my_layer1_layer, // Overrides caps lock layer
|
||||
my_layer2_layer // Overrides other layers
|
||||
);
|
||||
|
||||
void keyboard_post_init_user(void) {
|
||||
// Enable the LED layers
|
||||
rgblight_layers = my_rgb_layers;
|
||||
}
|
||||
```
|
||||
|
||||
Finally, we enable and disable the lighting layers whenever the state of the keyboard changes:
|
||||
|
||||
```c
|
||||
layer_state_t layer_state_set_user(layer_state_t state) {
|
||||
// Both layers will light up if both kb layers are active
|
||||
rgblight_set_layer_state(1, layer_state_cmp(state, 1));
|
||||
rgblight_set_layer_state(2, layer_state_cmp(state, 2));
|
||||
return state;
|
||||
}
|
||||
|
||||
bool led_update_user(led_t led_state) {
|
||||
rgblight_set_layer_state(0, led_state.caps_lock);
|
||||
return true;
|
||||
}
|
||||
```
|
||||
|
||||
## Functions
|
||||
|
||||
If you need to change your RGB lighting in code, for example in a macro to change the color whenever you switch layers, QMK provides a set of functions to assist you. See [`rgblight.h`](https://github.com/qmk/qmk_firmware/blob/master/quantum/rgblight.h) for the full list, but the most commonly used functions include:
|
||||
@@ -263,6 +319,12 @@ rgblight_sethsv(HSV_GREEN, 2); // led 2
|
||||
|`rgblight_sethsv(h, s, v)` |Set effect range LEDs to the given HSV value where `h`/`s`/`v` are between 0 and 255 |
|
||||
|`rgblight_sethsv_noeeprom(h, s, v)` |Set effect range LEDs to the given HSV value where `h`/`s`/`v` are between 0 and 255 (not written to EEPROM) |
|
||||
|
||||
#### layer functions
|
||||
|Function |Description |
|
||||
|--------------------------------------------|-------------|
|
||||
|`rgblight_get_layer_state(i)` |Returns `true` if lighting layer `i` is enabled |
|
||||
|`rgblight_set_layer_state(i, is_on)` |Enable or disable lighting layer `i` based on value of `bool is_on` |
|
||||
|
||||
#### query
|
||||
|Function |Description |
|
||||
|-----------------------|-----------------|
|
||||
|
||||
@@ -1,49 +0,0 @@
|
||||
/* Copyright 2019 Ryota Goto
|
||||
*
|
||||
* 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 QMK_KEYBOARD_H
|
||||
/*
|
||||
K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, \
|
||||
K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, \
|
||||
K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, \
|
||||
K300, K301, K302, K304, K306, K308, K309, K310, K311 \
|
||||
*/
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[0] = LAYOUT_all( /* Base */
|
||||
MO(2), KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
|
||||
MO(1), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT,
|
||||
KC_LSFT, KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_RSFT,
|
||||
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_SPC, KC_SPC, KC_GRV, KC_RGUI, KC_DEL
|
||||
),
|
||||
[1] = LAYOUT_all( /* Extra Keys */
|
||||
_______, _______, KC_PGUP, _______, _______, KC_LBRC, KC_RBRC, _______, KC_UP, _______, _______, _______,
|
||||
_______, KC_HOME, KC_PGDN, KC_END, _______, KC_BSLS, KC_SLSH, KC_LEFT, KC_DOWN, KC_RGHT, _______, _______,
|
||||
_______, _______, _______, _______, _______, KC_PSCR, KC_ESC, KC_QUOT, _______, KC_DOT, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
),
|
||||
[2] = LAYOUT_all( /* Num and FN */
|
||||
_______, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, _______,
|
||||
_______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, _______, _______, _______, _______, _______,
|
||||
_______, _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
),
|
||||
[3] = LAYOUT_all( /* Other */
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
)
|
||||
};
|
||||
@@ -1,4 +0,0 @@
|
||||
# The proto via keymap for equinox
|
||||
|
||||
Has the necessary tweaks to run on early prototype PCBs.
|
||||
Not to be used for production run PCBs.
|
||||
@@ -1,5 +0,0 @@
|
||||
VIA_ENABLE = yes
|
||||
|
||||
# Fix for prototype missing COL0, COL1, using backlight and RGB underglow I/O pins
|
||||
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
|
||||
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
|
||||
@@ -21,3 +21,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#undef MATRIX_COL_PINS
|
||||
#define MATRIX_COL_PINS { C4, B7, C6, C7, B6, B5, B4, B3, B2, B1, B0, D6 }
|
||||
|
||||
// This directs backlight code to use a disconnected pin, so the firwmare still has
|
||||
// backlight code and VIA support even though it doesn't do anything.
|
||||
#undef BACKLIGHT_PIN
|
||||
#define BACKLIGHT_PIN D1
|
||||
1
keyboards/ai03/equinox/rev0/rules.mk
Normal file
1
keyboards/ai03/equinox/rev0/rules.mk
Normal file
@@ -0,0 +1 @@
|
||||
# Dummy rules.mk, rev0 uses parent rules.mk as is
|
||||
18
keyboards/ai03/equinox/rev1/config.h
Normal file
18
keyboards/ai03/equinox/rev1/config.h
Normal file
@@ -0,0 +1,18 @@
|
||||
/*
|
||||
Copyright 2019 Ryota Goto
|
||||
|
||||
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
|
||||
1
keyboards/ai03/equinox/rev1/rules.mk
Normal file
1
keyboards/ai03/equinox/rev1/rules.mk
Normal file
@@ -0,0 +1 @@
|
||||
# Dummy rules.mk, rev1 uses parent rules.mk as is
|
||||
@@ -25,88 +25,115 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
/* Select hand configuration */
|
||||
#define EE_HANDS
|
||||
|
||||
#undef SSD1306OLED
|
||||
|
||||
#define USE_SERIAL_PD2
|
||||
|
||||
#define FORCE_NKRO
|
||||
|
||||
#define QMK_ESC_OUTPUT F4 // usually COL
|
||||
#define QMK_ESC_INPUT D4 // usually ROW
|
||||
#define QMK_LED B0
|
||||
|
||||
#ifdef RGB_MATRIX_ENABLE
|
||||
#define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended
|
||||
#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150
|
||||
|
||||
#define RGB_MATRIX_HUE_STEP 10
|
||||
#define RGB_MATRIX_SAT_STEP 15
|
||||
#define RGB_MATRIX_VAL_STEP 16
|
||||
#define RGB_MATRIX_SPD_STEP 10
|
||||
|
||||
#define DISABLE_RGB_MATRIX_ALPHAS_MODS
|
||||
#define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN
|
||||
#define DISABLE_RGB_MATRIX_BREATHING
|
||||
#define DISABLE_RGB_MATRIX_BAND_SAT
|
||||
#define DISABLE_RGB_MATRIX_BAND_VAL
|
||||
#define DISABLE_RGB_MATRIX_BAND_PINWHEEL_SAT
|
||||
#define DISABLE_RGB_MATRIX_BAND_PINWHEEL_VAL
|
||||
#define DISABLE_RGB_MATRIX_BAND_SPIRAL_SAT
|
||||
#define DISABLE_RGB_MATRIX_BAND_SPIRAL_VAL
|
||||
// #define DISABLE_RGB_MATRIX_CYCLE_ALL
|
||||
#define DISABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT
|
||||
#define DISABLE_RGB_MATRIX_CYCLE_UP_DOWN
|
||||
#define DISABLE_RGB_MATRIX_CYCLE_OUT_IN
|
||||
#define DISABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL
|
||||
#define DISABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON
|
||||
#define DISABLE_RGB_MATRIX_CYCLE_PINWHEEL
|
||||
#define DISABLE_RGB_MATRIX_CYCLE_SPIRAL
|
||||
// #define DISABLE_RGB_MATRIX_DUAL_BEACON
|
||||
#define DISABLE_RGB_MATRIX_RAINBOW_BEACON
|
||||
#define DISABLE_RGB_MATRIX_RAINBOW_PINWHEELS
|
||||
#define DISABLE_RGB_MATRIX_RAINDROPS
|
||||
#define DISABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS
|
||||
|
||||
#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
|
||||
// #define DISABLE_RGB_MATRIX_TYPING_HEATMAP
|
||||
#define DISABLE_RGB_MATRIX_DIGITAL_RAIN
|
||||
|
||||
#define RGB_MATRIX_KEYPRESSES // reacts to keypresses
|
||||
|
||||
#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE
|
||||
#define DISABLE_RGB_MATRIX_SOLID_REACTIVE
|
||||
#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE
|
||||
#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE
|
||||
#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS
|
||||
#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS
|
||||
#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS
|
||||
// #define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS
|
||||
|
||||
// #define DISABLE_RGB_MATRIX_SPLASH
|
||||
#define DISABLE_RGB_MATRIX_MULTISPLASH
|
||||
#define DISABLE_RGB_MATRIX_SOLID_SPLASH
|
||||
#define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH
|
||||
|
||||
#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_TYPING_HEATMAP
|
||||
#ifdef OLED_DRIVER_ENABLE
|
||||
# undef SSD1306OLED
|
||||
# define OLED_TIMEOUT 600000
|
||||
#endif
|
||||
|
||||
#define TAPPING_TERM 150
|
||||
// #define PERMISSIVE_HOLD
|
||||
#undef USE_I2C
|
||||
#define USE_SERIAL_PD2
|
||||
|
||||
// #define FORCE_NKRO
|
||||
|
||||
#define QMK_ESC_OUTPUT F4 // usually COL
|
||||
#define QMK_ESC_INPUT D4 // usually ROW
|
||||
#define QMK_LED B0
|
||||
|
||||
#define NO_ACTION_ONESHOT
|
||||
|
||||
#ifdef RGB_MATRIX_ENABLE
|
||||
# define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended
|
||||
# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150
|
||||
|
||||
# define RGB_MATRIX_HUE_STEP 8
|
||||
# define RGB_MATRIX_SAT_STEP 12
|
||||
# define RGB_MATRIX_VAL_STEP 10
|
||||
# define RGB_MATRIX_SPD_STEP 10
|
||||
|
||||
# define DISABLE_RGB_MATRIX_ALPHAS_MODS
|
||||
# define DISABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT
|
||||
# define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN
|
||||
# define DISABLE_RGB_MATRIX_BREATHING
|
||||
# define DISABLE_RGB_MATRIX_BAND_SAT
|
||||
# define DISABLE_RGB_MATRIX_BAND_VAL
|
||||
# define DISABLE_RGB_MATRIX_BAND_PINWHEEL_SAT
|
||||
# define DISABLE_RGB_MATRIX_BAND_PINWHEEL_VAL
|
||||
# define DISABLE_RGB_MATRIX_BAND_SPIRAL_SAT
|
||||
# define DISABLE_RGB_MATRIX_BAND_SPIRAL_VAL
|
||||
|
||||
// #define DISABLE_RGB_MATRIX_CYCLE_ALL
|
||||
// # define DISABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT
|
||||
# define DISABLE_RGB_MATRIX_CYCLE_UP_DOWN
|
||||
# define DISABLE_RGB_MATRIX_CYCLE_OUT_IN
|
||||
# define DISABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL
|
||||
# define DISABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON
|
||||
# define DISABLE_RGB_MATRIX_CYCLE_PINWHEEL
|
||||
# define DISABLE_RGB_MATRIX_CYCLE_SPIRAL
|
||||
# define DISABLE_RGB_MATRIX_DUAL_BEACON
|
||||
# define DISABLE_RGB_MATRIX_RAINBOW_BEACON
|
||||
// #define DISABLE_RGB_MATRIX_RAINBOW_PINWHEELS
|
||||
# define DISABLE_RGB_MATRIX_RAINDROPS
|
||||
# define DISABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS
|
||||
|
||||
# define RGB_MATRIX_FRAMEBUFFER_EFFECTS
|
||||
// #define DISABLE_RGB_MATRIX_TYPING_HEATMAP
|
||||
# define DISABLE_RGB_MATRIX_DIGITAL_RAIN
|
||||
|
||||
# define RGB_MATRIX_KEYPRESSES // reacts to keypresses
|
||||
|
||||
# define DISABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE
|
||||
# define DISABLE_RGB_MATRIX_SOLID_REACTIVE
|
||||
# define DISABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE
|
||||
# define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE
|
||||
# define DISABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS
|
||||
# define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS
|
||||
# define DISABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS
|
||||
// # define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS
|
||||
|
||||
# define DISABLE_RGB_MATRIX_SPLASH
|
||||
# define DISABLE_RGB_MATRIX_MULTISPLASH
|
||||
# define DISABLE_RGB_MATRIX_SOLID_SPLASH
|
||||
# define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH
|
||||
|
||||
# define RGB_MATRIX_ANIMATION_SPEED_DEFAULT UINT8_MAX / 2
|
||||
# define RGB_MATRIX_ANIMATION_SPEED_SLOW RGB_MATRIX_ANIMATION_SPEED_DEFAULT / 4
|
||||
# define RGB_MATRIX_ANIMATION_SPEED_SLOWER RGB_MATRIX_ANIMATION_SPEED_SLOW / 3
|
||||
#endif
|
||||
|
||||
#define TAPPING_TERM 140
|
||||
#define PERMISSIVE_HOLD
|
||||
#define IGNORE_MOD_TAP_INTERRUPT
|
||||
// #define RETRO_TAPPING
|
||||
|
||||
#define TAPPING_TOGGLE 2
|
||||
|
||||
#define MOUSEKEY_DELAY 0
|
||||
#define MOUSEKEY_INTERVAL 16
|
||||
#define MOUSEKEY_MAX_SPEED 6
|
||||
#define MOUSEKEY_TIME_TO_MAX 32
|
||||
#define MOUSEKEY_WHEEL_MAX_SPEED 4
|
||||
#define MOUSEKEY_WHEEL_TIME_TO_MAX 40
|
||||
#ifdef MOUSEKEY_ENABLE
|
||||
# define MOUSEKEY_DELAY 0
|
||||
# define MOUSEKEY_INTERVAL 16
|
||||
# define MOUSEKEY_MAX_SPEED 6
|
||||
# define MOUSEKEY_TIME_TO_MAX 36
|
||||
# define MOUSEKEY_WHEEL_MAX_SPEED 4
|
||||
# define MOUSEKEY_WHEEL_TIME_TO_MAX 100
|
||||
#endif
|
||||
|
||||
#define OLED_FONT_H "keyboards/crkbd/keymaps/rpbaptist/glcdfont.c"
|
||||
#ifdef THEME_GODSPEED
|
||||
# define OLED_FONT_H "keyboards/crkbd/keymaps/rpbaptist/glcdfont_godspeed.c"
|
||||
# define THEME_HSV 132, 255, 125
|
||||
#endif
|
||||
|
||||
#ifdef THEME_PULSE
|
||||
# define OLED_FONT_H "keyboards/crkbd/keymaps/rpbaptist/glcdfont_pulse.c"
|
||||
# define THEME_HSV 123, 255, 125
|
||||
#endif
|
||||
|
||||
#ifdef THEME_LASER
|
||||
# define OLED_FONT_H "keyboards/crkbd/keymaps/rpbaptist/glcdfont_laser.c"
|
||||
# define THEME_HSV HSV_MAGENTA
|
||||
#endif
|
||||
|
||||
#define NO_ACTION_ONESHOT
|
||||
|
||||
#undef PRODUCT
|
||||
#define PRODUCT Corne Keyboard
|
||||
|
||||
#define LCPC_KEYS KC_LCTL, KC_LSFT, KC_9
|
||||
#define RCPC_KEYS KC_RCTL, KC_RSFT, KC_0
|
||||
|
||||
231
keyboards/crkbd/keymaps/rpbaptist/glcdfont_godspeed.c
Normal file
231
keyboards/crkbd/keymaps/rpbaptist/glcdfont_godspeed.c
Normal file
@@ -0,0 +1,231 @@
|
||||
#include "progmem.h"
|
||||
|
||||
// Helidox 8x6 font with QMK Firmware Logo
|
||||
// Online editor: http://teripom.x0.com/
|
||||
|
||||
const unsigned char font[] PROGMEM = {
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x3E, 0x5B, 0x4F, 0x5B, 0x3E, 0x00,
|
||||
0x3E, 0x6B, 0x4F, 0x6B, 0x3E, 0x00,
|
||||
0x1C, 0x3E, 0x7C, 0x3E, 0x1C, 0x00,
|
||||
0x18, 0x3C, 0x7E, 0x3C, 0x18, 0x00,
|
||||
0x1C, 0x57, 0x7D, 0x57, 0x1C, 0x00,
|
||||
0x1C, 0x5E, 0x7F, 0x5E, 0x1C, 0x00,
|
||||
0x00, 0x18, 0x3C, 0x18, 0x00, 0x00,
|
||||
0xFF, 0xE7, 0xC3, 0xE7, 0xFF, 0x00,
|
||||
0x00, 0x18, 0x24, 0x18, 0x00, 0x00,
|
||||
0xFF, 0xE7, 0xDB, 0xE7, 0xFF, 0x00,
|
||||
0x30, 0x48, 0x3A, 0x06, 0x0E, 0x00,
|
||||
0x26, 0x29, 0x79, 0x29, 0x26, 0x00,
|
||||
0x40, 0x7F, 0x05, 0x05, 0x07, 0x00,
|
||||
0x40, 0x7F, 0x05, 0x25, 0x3F, 0x00,
|
||||
0x5A, 0x3C, 0xE7, 0x3C, 0x5A, 0x00,
|
||||
0x7F, 0x3E, 0x1C, 0x1C, 0x08, 0x00,
|
||||
0x08, 0x1C, 0x1C, 0x3E, 0x7F, 0x00,
|
||||
0x14, 0x22, 0x7F, 0x22, 0x14, 0x00,
|
||||
0x5F, 0x5F, 0x00, 0x5F, 0x5F, 0x00,
|
||||
0x06, 0x09, 0x7F, 0x01, 0x7F, 0x00,
|
||||
0x00, 0x66, 0x89, 0x95, 0x6A, 0x00,
|
||||
0x60, 0x60, 0x60, 0x60, 0x60, 0x00,
|
||||
0x94, 0xA2, 0xFF, 0xA2, 0x94, 0x00,
|
||||
0x08, 0x04, 0x7E, 0x04, 0x08, 0x00,
|
||||
0x10, 0x20, 0x7E, 0x20, 0x10, 0x00,
|
||||
0x08, 0x08, 0x2A, 0x1C, 0x08, 0x00,
|
||||
0x08, 0x1C, 0x2A, 0x08, 0x08, 0x00,
|
||||
0x1E, 0x10, 0x10, 0x10, 0x10, 0x00,
|
||||
0x0C, 0x1E, 0x0C, 0x1E, 0x0C, 0x00,
|
||||
0x30, 0x38, 0x3E, 0x38, 0x30, 0x00,
|
||||
0x06, 0x0E, 0x3E, 0x0E, 0x06, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x5F, 0x00, 0x00, 0x00,
|
||||
0x00, 0x07, 0x00, 0x07, 0x00, 0x00,
|
||||
0x14, 0x7F, 0x14, 0x7F, 0x14, 0x00,
|
||||
0x24, 0x2A, 0x7F, 0x2A, 0x12, 0x00,
|
||||
0x23, 0x13, 0x08, 0x64, 0x62, 0x00,
|
||||
0x36, 0x49, 0x56, 0x20, 0x50, 0x00,
|
||||
0x00, 0x08, 0x07, 0x03, 0x00, 0x00,
|
||||
0x00, 0x1C, 0x22, 0x41, 0x00, 0x00,
|
||||
0x00, 0x41, 0x22, 0x1C, 0x00, 0x00,
|
||||
0x2A, 0x1C, 0x7F, 0x1C, 0x2A, 0x00,
|
||||
0x08, 0x08, 0x3E, 0x08, 0x08, 0x00,
|
||||
0x00, 0x80, 0x70, 0x30, 0x00, 0x00,
|
||||
0x08, 0x08, 0x08, 0x08, 0x08, 0x00,
|
||||
0x00, 0x00, 0x60, 0x60, 0x00, 0x00,
|
||||
0x20, 0x10, 0x08, 0x04, 0x02, 0x00,
|
||||
0x3E, 0x51, 0x49, 0x45, 0x3E, 0x00,
|
||||
0x00, 0x42, 0x7F, 0x40, 0x00, 0x00,
|
||||
0x72, 0x49, 0x49, 0x49, 0x46, 0x00,
|
||||
0x21, 0x41, 0x49, 0x4D, 0x33, 0x00,
|
||||
0x18, 0x14, 0x12, 0x7F, 0x10, 0x00,
|
||||
0x27, 0x45, 0x45, 0x45, 0x39, 0x00,
|
||||
0x3C, 0x4A, 0x49, 0x49, 0x31, 0x00,
|
||||
0x41, 0x21, 0x11, 0x09, 0x07, 0x00,
|
||||
0x36, 0x49, 0x49, 0x49, 0x36, 0x00,
|
||||
0x46, 0x49, 0x49, 0x29, 0x1E, 0x00,
|
||||
0x00, 0x00, 0x14, 0x00, 0x00, 0x00,
|
||||
0x00, 0x40, 0x34, 0x00, 0x00, 0x00,
|
||||
0x00, 0x08, 0x14, 0x22, 0x41, 0x00,
|
||||
0x14, 0x14, 0x14, 0x14, 0x14, 0x00,
|
||||
0x00, 0x41, 0x22, 0x14, 0x08, 0x00,
|
||||
0x02, 0x01, 0x59, 0x09, 0x06, 0x00,
|
||||
0x3E, 0x41, 0x5D, 0x59, 0x4E, 0x00,
|
||||
0x7C, 0x12, 0x11, 0x12, 0x7C, 0x00,
|
||||
0x7F, 0x49, 0x49, 0x49, 0x36, 0x00,
|
||||
0x3E, 0x41, 0x41, 0x41, 0x22, 0x00,
|
||||
0x7F, 0x41, 0x41, 0x41, 0x3E, 0x00,
|
||||
0x7F, 0x49, 0x49, 0x49, 0x41, 0x00,
|
||||
0x7F, 0x09, 0x09, 0x09, 0x01, 0x00,
|
||||
0x3E, 0x41, 0x41, 0x51, 0x73, 0x00,
|
||||
0x7F, 0x08, 0x08, 0x08, 0x7F, 0x00,
|
||||
0x00, 0x41, 0x7F, 0x41, 0x00, 0x00,
|
||||
0x20, 0x40, 0x41, 0x3F, 0x01, 0x00,
|
||||
0x7F, 0x08, 0x14, 0x22, 0x41, 0x00,
|
||||
0x7F, 0x40, 0x40, 0x40, 0x40, 0x00,
|
||||
0x7F, 0x02, 0x1C, 0x02, 0x7F, 0x00,
|
||||
0x7F, 0x04, 0x08, 0x10, 0x7F, 0x00,
|
||||
0x3E, 0x41, 0x41, 0x41, 0x3E, 0x00,
|
||||
0x7F, 0x09, 0x09, 0x09, 0x06, 0x00,
|
||||
0x3E, 0x41, 0x51, 0x21, 0x5E, 0x00,
|
||||
0x7F, 0x09, 0x19, 0x29, 0x46, 0x00,
|
||||
0x26, 0x49, 0x49, 0x49, 0x32, 0x00,
|
||||
0x03, 0x01, 0x7F, 0x01, 0x03, 0x00,
|
||||
0x3F, 0x40, 0x40, 0x40, 0x3F, 0x00,
|
||||
0x1F, 0x20, 0x40, 0x20, 0x1F, 0x00,
|
||||
0x3F, 0x40, 0x38, 0x40, 0x3F, 0x00,
|
||||
0x63, 0x14, 0x08, 0x14, 0x63, 0x00,
|
||||
0x03, 0x04, 0x78, 0x04, 0x03, 0x00,
|
||||
0x61, 0x59, 0x49, 0x4D, 0x43, 0x00,
|
||||
0x00, 0x7F, 0x41, 0x41, 0x41, 0x00,
|
||||
0x02, 0x04, 0x08, 0x10, 0x20, 0x00,
|
||||
0x00, 0x41, 0x41, 0x41, 0x7F, 0x00,
|
||||
0x04, 0x02, 0x01, 0x02, 0x04, 0x00,
|
||||
0x40, 0x40, 0x40, 0x40, 0x40, 0x00,
|
||||
0x00, 0x03, 0x07, 0x08, 0x00, 0x00,
|
||||
0x20, 0x54, 0x54, 0x78, 0x40, 0x00,
|
||||
0x7F, 0x28, 0x44, 0x44, 0x38, 0x00,
|
||||
0x38, 0x44, 0x44, 0x44, 0x28, 0x00,
|
||||
0x38, 0x44, 0x44, 0x28, 0x7F, 0x00,
|
||||
0x38, 0x54, 0x54, 0x54, 0x18, 0x00,
|
||||
0x00, 0x08, 0x7E, 0x09, 0x02, 0x00,
|
||||
0x18, 0x24, 0x24, 0x1C, 0x78, 0x00,
|
||||
0x7F, 0x08, 0x04, 0x04, 0x78, 0x00,
|
||||
0x00, 0x44, 0x7D, 0x40, 0x00, 0x00,
|
||||
0x20, 0x40, 0x40, 0x3D, 0x00, 0x00,
|
||||
0x7F, 0x10, 0x28, 0x44, 0x00, 0x00,
|
||||
0x00, 0x41, 0x7F, 0x40, 0x00, 0x00,
|
||||
0x7C, 0x04, 0x78, 0x04, 0x78, 0x00,
|
||||
0x7C, 0x08, 0x04, 0x04, 0x78, 0x00,
|
||||
0x38, 0x44, 0x44, 0x44, 0x38, 0x00,
|
||||
0x7C, 0x18, 0x24, 0x24, 0x18, 0x00,
|
||||
0x18, 0x24, 0x24, 0x18, 0x7C, 0x00,
|
||||
0x7C, 0x08, 0x04, 0x04, 0x08, 0x00,
|
||||
0x48, 0x54, 0x54, 0x54, 0x24, 0x00,
|
||||
0x04, 0x04, 0x3F, 0x44, 0x24, 0x00,
|
||||
0x3C, 0x40, 0x40, 0x20, 0x7C, 0x00,
|
||||
0x1C, 0x20, 0x40, 0x20, 0x1C, 0x00,
|
||||
0x3C, 0x40, 0x30, 0x40, 0x3C, 0x00,
|
||||
0x44, 0x28, 0x10, 0x28, 0x44, 0x00,
|
||||
0x4C, 0x90, 0x90, 0x90, 0x7C, 0x00,
|
||||
0x44, 0x64, 0x54, 0x4C, 0x44, 0x00,
|
||||
0x00, 0x08, 0x36, 0x41, 0x00, 0x00,
|
||||
0x00, 0x00, 0x77, 0x00, 0x00, 0x00,
|
||||
0x00, 0x41, 0x36, 0x08, 0x00, 0x00,
|
||||
0x02, 0x01, 0x02, 0x04, 0x02, 0x00,
|
||||
0x3C, 0x26, 0x23, 0x26, 0x3C, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0xE0,
|
||||
0x38, 0x1C, 0x0C, 0x06, 0x03, 0x03,
|
||||
0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
|
||||
0x03, 0x03, 0x82, 0x86, 0xCC, 0xF8,
|
||||
0xF0, 0xF0, 0x38, 0x1C, 0x0C, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0xC0, 0x70,
|
||||
0xF8, 0x0C, 0x04, 0xC6, 0xA2, 0xB3,
|
||||
0x9F, 0x87, 0x01, 0x01, 0x1F, 0x66,
|
||||
0x66, 0x44, 0x4C, 0x58, 0x70, 0xE0,
|
||||
0x80, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0xC0,
|
||||
0xE0, 0x78, 0x18, 0x8C, 0xC6, 0xE6,
|
||||
0xE3, 0xE3, 0xC3, 0x83, 0x03, 0x03,
|
||||
0x73, 0x76, 0x76, 0x0C, 0x18, 0xF8,
|
||||
0xF0, 0xC0, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0xE0, 0xF0, 0xF0, 0xF0, 0xE0, 0xEC,
|
||||
0xEE, 0xF7, 0xF3, 0x70, 0x20, 0x00,
|
||||
0x7C, 0x7C, 0x7C, 0x7E, 0x00, 0x7E,
|
||||
0x7E, 0x7E, 0x7F, 0x7F, 0x7F, 0x00,
|
||||
0x00, 0x80, 0xC0, 0xE0, 0x7E, 0x5B,
|
||||
0x4F, 0x5B, 0xFE, 0xC0, 0x00, 0x00,
|
||||
0xC0, 0x00, 0xDC, 0xD7, 0xDE, 0xDE,
|
||||
0xDE, 0xD7, 0xDC, 0x00, 0xC0, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x80, 0xC0, 0x40, 0x7F, 0xF3,
|
||||
0x60, 0x20, 0x30, 0x30, 0x38, 0x18,
|
||||
0x9C, 0xCC, 0x6C, 0x6E, 0x3E, 0x3E,
|
||||
0x1F, 0x0F, 0x0F, 0x03, 0x03, 0x01,
|
||||
0xC0, 0xFF, 0x3E, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x7F, 0xC1, 0x00,
|
||||
0x1D, 0x67, 0xC0, 0x80, 0x01, 0x00,
|
||||
0x00, 0xF0, 0x0F, 0x00, 0x00, 0x00,
|
||||
0x0C, 0x1A, 0x32, 0xC2, 0x01, 0xC1,
|
||||
0xFF, 0x3E, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x7E, 0xFF,
|
||||
0x80, 0x00, 0x00, 0xC3, 0xC7, 0xC7,
|
||||
0x8F, 0x0F, 0x07, 0x03, 0x80, 0xC0,
|
||||
0xC0, 0xC0, 0xC0, 0x80, 0x00, 0x07,
|
||||
0x0F, 0xFF, 0x7F, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x0F, 0x1F, 0x3F, 0x7F, 0x7F, 0x7F,
|
||||
0x7F, 0x7F, 0x3F, 0x1E, 0x0C, 0x00,
|
||||
0x1F, 0x1F, 0x1F, 0x3F, 0x00, 0x3F,
|
||||
0x3F, 0x3F, 0x7F, 0x7F, 0x7F, 0x00,
|
||||
0x30, 0x7B, 0x7F, 0x78, 0x30, 0x20,
|
||||
0x20, 0x30, 0x78, 0x7F, 0x3B, 0x00,
|
||||
0x03, 0x00, 0x0F, 0x7F, 0x0F, 0x0F,
|
||||
0x0F, 0x7F, 0x0F, 0x00, 0x03, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x01, 0x01, 0x00, 0x40, 0x60, 0x31,
|
||||
0x3B, 0x1E, 0x0C, 0x1E, 0x36, 0x23,
|
||||
0x61, 0x60, 0x60, 0x60, 0x60, 0x60,
|
||||
0x60, 0x30, 0x1C, 0x3E, 0x3E, 0x3F,
|
||||
0x1D, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x01, 0x07,
|
||||
0x0C, 0x18, 0x10, 0x33, 0x3E, 0x38,
|
||||
0x6E, 0x67, 0x60, 0x60, 0x60, 0x20,
|
||||
0x30, 0x18, 0x08, 0x0F, 0x06, 0x03,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x01,
|
||||
0x03, 0x06, 0x0C, 0x19, 0x31, 0x21,
|
||||
0x60, 0x60, 0x60, 0x60, 0x61, 0x63,
|
||||
0x67, 0x67, 0x33, 0x39, 0x18, 0x0E,
|
||||
0x07, 0x03, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
};
|
||||
231
keyboards/crkbd/keymaps/rpbaptist/glcdfont_laser.c
Normal file
231
keyboards/crkbd/keymaps/rpbaptist/glcdfont_laser.c
Normal file
@@ -0,0 +1,231 @@
|
||||
#include "progmem.h"
|
||||
|
||||
// Helidox 8x6 font with QMK Firmware Logo
|
||||
// Online editor: http://teripom.x0.com/
|
||||
|
||||
const unsigned char font[] PROGMEM = {
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x3E, 0x5B, 0x4F, 0x5B, 0x3E, 0x00,
|
||||
0x3E, 0x6B, 0x4F, 0x6B, 0x3E, 0x00,
|
||||
0x1C, 0x3E, 0x7C, 0x3E, 0x1C, 0x00,
|
||||
0x18, 0x3C, 0x7E, 0x3C, 0x18, 0x00,
|
||||
0x1C, 0x57, 0x7D, 0x57, 0x1C, 0x00,
|
||||
0x1C, 0x5E, 0x7F, 0x5E, 0x1C, 0x00,
|
||||
0x00, 0x18, 0x3C, 0x18, 0x00, 0x00,
|
||||
0xFF, 0xE7, 0xC3, 0xE7, 0xFF, 0x00,
|
||||
0x00, 0x18, 0x24, 0x18, 0x00, 0x00,
|
||||
0xFF, 0xE7, 0xDB, 0xE7, 0xFF, 0x00,
|
||||
0x30, 0x48, 0x3A, 0x06, 0x0E, 0x00,
|
||||
0x26, 0x29, 0x79, 0x29, 0x26, 0x00,
|
||||
0x40, 0x7F, 0x05, 0x05, 0x07, 0x00,
|
||||
0x40, 0x7F, 0x05, 0x25, 0x3F, 0x00,
|
||||
0x5A, 0x3C, 0xE7, 0x3C, 0x5A, 0x00,
|
||||
0x7F, 0x3E, 0x1C, 0x1C, 0x08, 0x00,
|
||||
0x08, 0x1C, 0x1C, 0x3E, 0x7F, 0x00,
|
||||
0x14, 0x22, 0x7F, 0x22, 0x14, 0x00,
|
||||
0x5F, 0x5F, 0x00, 0x5F, 0x5F, 0x00,
|
||||
0x06, 0x09, 0x7F, 0x01, 0x7F, 0x00,
|
||||
0x00, 0x66, 0x89, 0x95, 0x6A, 0x00,
|
||||
0x60, 0x60, 0x60, 0x60, 0x60, 0x00,
|
||||
0x94, 0xA2, 0xFF, 0xA2, 0x94, 0x00,
|
||||
0x08, 0x04, 0x7E, 0x04, 0x08, 0x00,
|
||||
0x10, 0x20, 0x7E, 0x20, 0x10, 0x00,
|
||||
0x08, 0x08, 0x2A, 0x1C, 0x08, 0x00,
|
||||
0x08, 0x1C, 0x2A, 0x08, 0x08, 0x00,
|
||||
0x1E, 0x10, 0x10, 0x10, 0x10, 0x00,
|
||||
0x0C, 0x1E, 0x0C, 0x1E, 0x0C, 0x00,
|
||||
0x30, 0x38, 0x3E, 0x38, 0x30, 0x00,
|
||||
0x06, 0x0E, 0x3E, 0x0E, 0x06, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x5F, 0x00, 0x00, 0x00,
|
||||
0x00, 0x07, 0x00, 0x07, 0x00, 0x00,
|
||||
0x14, 0x7F, 0x14, 0x7F, 0x14, 0x00,
|
||||
0x24, 0x2A, 0x7F, 0x2A, 0x12, 0x00,
|
||||
0x23, 0x13, 0x08, 0x64, 0x62, 0x00,
|
||||
0x36, 0x49, 0x56, 0x20, 0x50, 0x00,
|
||||
0x00, 0x08, 0x07, 0x03, 0x00, 0x00,
|
||||
0x00, 0x1C, 0x22, 0x41, 0x00, 0x00,
|
||||
0x00, 0x41, 0x22, 0x1C, 0x00, 0x00,
|
||||
0x2A, 0x1C, 0x7F, 0x1C, 0x2A, 0x00,
|
||||
0x08, 0x08, 0x3E, 0x08, 0x08, 0x00,
|
||||
0x00, 0x80, 0x70, 0x30, 0x00, 0x00,
|
||||
0x08, 0x08, 0x08, 0x08, 0x08, 0x00,
|
||||
0x00, 0x00, 0x60, 0x60, 0x00, 0x00,
|
||||
0x20, 0x10, 0x08, 0x04, 0x02, 0x00,
|
||||
0x3E, 0x51, 0x49, 0x45, 0x3E, 0x00,
|
||||
0x00, 0x42, 0x7F, 0x40, 0x00, 0x00,
|
||||
0x72, 0x49, 0x49, 0x49, 0x46, 0x00,
|
||||
0x21, 0x41, 0x49, 0x4D, 0x33, 0x00,
|
||||
0x18, 0x14, 0x12, 0x7F, 0x10, 0x00,
|
||||
0x27, 0x45, 0x45, 0x45, 0x39, 0x00,
|
||||
0x3C, 0x4A, 0x49, 0x49, 0x31, 0x00,
|
||||
0x41, 0x21, 0x11, 0x09, 0x07, 0x00,
|
||||
0x36, 0x49, 0x49, 0x49, 0x36, 0x00,
|
||||
0x46, 0x49, 0x49, 0x29, 0x1E, 0x00,
|
||||
0x00, 0x00, 0x14, 0x00, 0x00, 0x00,
|
||||
0x00, 0x40, 0x34, 0x00, 0x00, 0x00,
|
||||
0x00, 0x08, 0x14, 0x22, 0x41, 0x00,
|
||||
0x14, 0x14, 0x14, 0x14, 0x14, 0x00,
|
||||
0x00, 0x41, 0x22, 0x14, 0x08, 0x00,
|
||||
0x02, 0x01, 0x59, 0x09, 0x06, 0x00,
|
||||
0x3E, 0x41, 0x5D, 0x59, 0x4E, 0x00,
|
||||
0x7C, 0x12, 0x11, 0x12, 0x7C, 0x00,
|
||||
0x7F, 0x49, 0x49, 0x49, 0x36, 0x00,
|
||||
0x3E, 0x41, 0x41, 0x41, 0x22, 0x00,
|
||||
0x7F, 0x41, 0x41, 0x41, 0x3E, 0x00,
|
||||
0x7F, 0x49, 0x49, 0x49, 0x41, 0x00,
|
||||
0x7F, 0x09, 0x09, 0x09, 0x01, 0x00,
|
||||
0x3E, 0x41, 0x41, 0x51, 0x73, 0x00,
|
||||
0x7F, 0x08, 0x08, 0x08, 0x7F, 0x00,
|
||||
0x00, 0x41, 0x7F, 0x41, 0x00, 0x00,
|
||||
0x20, 0x40, 0x41, 0x3F, 0x01, 0x00,
|
||||
0x7F, 0x08, 0x14, 0x22, 0x41, 0x00,
|
||||
0x7F, 0x40, 0x40, 0x40, 0x40, 0x00,
|
||||
0x7F, 0x02, 0x1C, 0x02, 0x7F, 0x00,
|
||||
0x7F, 0x04, 0x08, 0x10, 0x7F, 0x00,
|
||||
0x3E, 0x41, 0x41, 0x41, 0x3E, 0x00,
|
||||
0x7F, 0x09, 0x09, 0x09, 0x06, 0x00,
|
||||
0x3E, 0x41, 0x51, 0x21, 0x5E, 0x00,
|
||||
0x7F, 0x09, 0x19, 0x29, 0x46, 0x00,
|
||||
0x26, 0x49, 0x49, 0x49, 0x32, 0x00,
|
||||
0x03, 0x01, 0x7F, 0x01, 0x03, 0x00,
|
||||
0x3F, 0x40, 0x40, 0x40, 0x3F, 0x00,
|
||||
0x1F, 0x20, 0x40, 0x20, 0x1F, 0x00,
|
||||
0x3F, 0x40, 0x38, 0x40, 0x3F, 0x00,
|
||||
0x63, 0x14, 0x08, 0x14, 0x63, 0x00,
|
||||
0x03, 0x04, 0x78, 0x04, 0x03, 0x00,
|
||||
0x61, 0x59, 0x49, 0x4D, 0x43, 0x00,
|
||||
0x00, 0x7F, 0x41, 0x41, 0x41, 0x00,
|
||||
0x02, 0x04, 0x08, 0x10, 0x20, 0x00,
|
||||
0x00, 0x41, 0x41, 0x41, 0x7F, 0x00,
|
||||
0x04, 0x02, 0x01, 0x02, 0x04, 0x00,
|
||||
0x40, 0x40, 0x40, 0x40, 0x40, 0x00,
|
||||
0x00, 0x03, 0x07, 0x08, 0x00, 0x00,
|
||||
0x20, 0x54, 0x54, 0x78, 0x40, 0x00,
|
||||
0x7F, 0x28, 0x44, 0x44, 0x38, 0x00,
|
||||
0x38, 0x44, 0x44, 0x44, 0x28, 0x00,
|
||||
0x38, 0x44, 0x44, 0x28, 0x7F, 0x00,
|
||||
0x38, 0x54, 0x54, 0x54, 0x18, 0x00,
|
||||
0x00, 0x08, 0x7E, 0x09, 0x02, 0x00,
|
||||
0x18, 0x24, 0x24, 0x1C, 0x78, 0x00,
|
||||
0x7F, 0x08, 0x04, 0x04, 0x78, 0x00,
|
||||
0x00, 0x44, 0x7D, 0x40, 0x00, 0x00,
|
||||
0x20, 0x40, 0x40, 0x3D, 0x00, 0x00,
|
||||
0x7F, 0x10, 0x28, 0x44, 0x00, 0x00,
|
||||
0x00, 0x41, 0x7F, 0x40, 0x00, 0x00,
|
||||
0x7C, 0x04, 0x78, 0x04, 0x78, 0x00,
|
||||
0x7C, 0x08, 0x04, 0x04, 0x78, 0x00,
|
||||
0x38, 0x44, 0x44, 0x44, 0x38, 0x00,
|
||||
0x7C, 0x18, 0x24, 0x24, 0x18, 0x00,
|
||||
0x18, 0x24, 0x24, 0x18, 0x7C, 0x00,
|
||||
0x7C, 0x08, 0x04, 0x04, 0x08, 0x00,
|
||||
0x48, 0x54, 0x54, 0x54, 0x24, 0x00,
|
||||
0x04, 0x04, 0x3F, 0x44, 0x24, 0x00,
|
||||
0x3C, 0x40, 0x40, 0x20, 0x7C, 0x00,
|
||||
0x1C, 0x20, 0x40, 0x20, 0x1C, 0x00,
|
||||
0x3C, 0x40, 0x30, 0x40, 0x3C, 0x00,
|
||||
0x44, 0x28, 0x10, 0x28, 0x44, 0x00,
|
||||
0x4C, 0x90, 0x90, 0x90, 0x7C, 0x00,
|
||||
0x44, 0x64, 0x54, 0x4C, 0x44, 0x00,
|
||||
0x00, 0x08, 0x36, 0x41, 0x00, 0x00,
|
||||
0x00, 0x00, 0x77, 0x00, 0x00, 0x00,
|
||||
0x00, 0x41, 0x36, 0x08, 0x00, 0x00,
|
||||
0x02, 0x01, 0x02, 0x04, 0x02, 0x00,
|
||||
0x3C, 0x26, 0x23, 0x26, 0x3C, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
|
||||
0xE0, 0xF8, 0x3E, 0x0F, 0x03, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x80, 0xC0,
|
||||
0xE0, 0xF0, 0xF8, 0xFC, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0xE0, 0xF0, 0x7C,
|
||||
0x3F, 0x0F, 0x03, 0x03, 0x03, 0x03,
|
||||
0x03, 0x03, 0x1B, 0x1F, 0x1F, 0x07,
|
||||
0x03, 0xC0, 0xE0, 0xFC, 0x1C, 0x0F,
|
||||
0x03, 0x03, 0x03, 0x03, 0x03, 0x03,
|
||||
0x03, 0x03, 0x03, 0x03, 0x03, 0x03,
|
||||
0xE7, 0xFF, 0xFF, 0x0F, 0x03, 0x03,
|
||||
0x03, 0x03, 0x83, 0x83, 0xE3, 0xE7,
|
||||
0x3C, 0x3C, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0xE0, 0xF0, 0xF0, 0xF0, 0xE0, 0xEC,
|
||||
0xEE, 0xF7, 0xF3, 0x70, 0x20, 0x00,
|
||||
0x7C, 0x7C, 0x7C, 0x7E, 0x00, 0x7E,
|
||||
0x7E, 0x7E, 0x7F, 0x7F, 0x7F, 0x00,
|
||||
0x00, 0x80, 0xC0, 0xE0, 0x7E, 0x5B,
|
||||
0x4F, 0x5B, 0xFE, 0xC0, 0x00, 0x00,
|
||||
0xC0, 0x00, 0xDC, 0xD7, 0xDE, 0xDE,
|
||||
0xDE, 0xD7, 0xDC, 0x00, 0xC0, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x80, 0xC0, 0xF0, 0x7C, 0x1F, 0x07,
|
||||
0x01, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
|
||||
0x80, 0x90, 0x98, 0x9C, 0x8C, 0x80,
|
||||
0x80, 0x80, 0x9C, 0x9C, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x10,
|
||||
0x10, 0x1C, 0x1C, 0x1C, 0x1C, 0x1C,
|
||||
0x1C, 0x1C, 0x9C, 0x9C, 0x1C, 0x1C,
|
||||
0x0C, 0x0C, 0x80, 0x90, 0x90, 0x10,
|
||||
0x1C, 0x1C, 0x1C, 0x1C, 0x1C, 0x1C,
|
||||
0x1C, 0x1C, 0x1C, 0x1C, 0x1C, 0x0C,
|
||||
0x00, 0x00, 0x90, 0x90, 0x9C, 0x9C,
|
||||
0x1C, 0x1C, 0x1C, 0x1C, 0x9C, 0x9C,
|
||||
0x9C, 0x0C, 0x0C, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x0F, 0x1F, 0x3F, 0x7F, 0x7F, 0x7F,
|
||||
0x7F, 0x7F, 0x3F, 0x1E, 0x0C, 0x00,
|
||||
0x1F, 0x1F, 0x1F, 0x3F, 0x00, 0x3F,
|
||||
0x3F, 0x3F, 0x7F, 0x7F, 0x7F, 0x00,
|
||||
0x30, 0x7B, 0x7F, 0x78, 0x30, 0x20,
|
||||
0x20, 0x30, 0x78, 0x7F, 0x3B, 0x00,
|
||||
0x03, 0x00, 0x0F, 0x7F, 0x0F, 0x0F,
|
||||
0x0F, 0x7F, 0x0F, 0x00, 0x03, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x70, 0x7C, 0x7E,
|
||||
0x6F, 0x63, 0x60, 0x60, 0x60, 0x60,
|
||||
0x60, 0x60, 0x60, 0x60, 0x60, 0x60,
|
||||
0x60, 0x70, 0x78, 0x3C, 0x1E, 0x0F,
|
||||
0x07, 0x03, 0x01, 0x01, 0x01, 0x01,
|
||||
0x01, 0x01, 0x7F, 0x7F, 0x00, 0x00,
|
||||
0x60, 0x70, 0x7C, 0x7C, 0x6C, 0x60,
|
||||
0x60, 0x60, 0x60, 0x60, 0x60, 0x78,
|
||||
0x3E, 0x0F, 0x03, 0x01, 0x00, 0x60,
|
||||
0x78, 0x7E, 0x67, 0x61, 0x60, 0x60,
|
||||
0x60, 0x60, 0x60, 0x60, 0x60, 0x60,
|
||||
0x70, 0x00, 0x00, 0x00, 0x00, 0x60,
|
||||
0x78, 0x7E, 0x0F, 0x07, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x03, 0x0F,
|
||||
0x7F, 0x70, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
};
|
||||
231
keyboards/crkbd/keymaps/rpbaptist/glcdfont_pulse.c
Normal file
231
keyboards/crkbd/keymaps/rpbaptist/glcdfont_pulse.c
Normal file
@@ -0,0 +1,231 @@
|
||||
#include "progmem.h"
|
||||
|
||||
// Helidox 8x6 font with QMK Firmware Logo
|
||||
// Online editor: http://teripom.x0.com/
|
||||
|
||||
const unsigned char font[] PROGMEM = {
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x3E, 0x5B, 0x4F, 0x5B, 0x3E, 0x00,
|
||||
0x3E, 0x6B, 0x4F, 0x6B, 0x3E, 0x00,
|
||||
0x1C, 0x3E, 0x7C, 0x3E, 0x1C, 0x00,
|
||||
0x18, 0x3C, 0x7E, 0x3C, 0x18, 0x00,
|
||||
0x1C, 0x57, 0x7D, 0x57, 0x1C, 0x00,
|
||||
0x1C, 0x5E, 0x7F, 0x5E, 0x1C, 0x00,
|
||||
0x00, 0x18, 0x3C, 0x18, 0x00, 0x00,
|
||||
0xFF, 0xE7, 0xC3, 0xE7, 0xFF, 0x00,
|
||||
0x00, 0x18, 0x24, 0x18, 0x00, 0x00,
|
||||
0xFF, 0xE7, 0xDB, 0xE7, 0xFF, 0x00,
|
||||
0x30, 0x48, 0x3A, 0x06, 0x0E, 0x00,
|
||||
0x26, 0x29, 0x79, 0x29, 0x26, 0x00,
|
||||
0x40, 0x7F, 0x05, 0x05, 0x07, 0x00,
|
||||
0x40, 0x7F, 0x05, 0x25, 0x3F, 0x00,
|
||||
0x5A, 0x3C, 0xE7, 0x3C, 0x5A, 0x00,
|
||||
0x7F, 0x3E, 0x1C, 0x1C, 0x08, 0x00,
|
||||
0x08, 0x1C, 0x1C, 0x3E, 0x7F, 0x00,
|
||||
0x14, 0x22, 0x7F, 0x22, 0x14, 0x00,
|
||||
0x5F, 0x5F, 0x00, 0x5F, 0x5F, 0x00,
|
||||
0x06, 0x09, 0x7F, 0x01, 0x7F, 0x00,
|
||||
0x00, 0x66, 0x89, 0x95, 0x6A, 0x00,
|
||||
0x60, 0x60, 0x60, 0x60, 0x60, 0x00,
|
||||
0x94, 0xA2, 0xFF, 0xA2, 0x94, 0x00,
|
||||
0x08, 0x04, 0x7E, 0x04, 0x08, 0x00,
|
||||
0x10, 0x20, 0x7E, 0x20, 0x10, 0x00,
|
||||
0x08, 0x08, 0x2A, 0x1C, 0x08, 0x00,
|
||||
0x08, 0x1C, 0x2A, 0x08, 0x08, 0x00,
|
||||
0x1E, 0x10, 0x10, 0x10, 0x10, 0x00,
|
||||
0x0C, 0x1E, 0x0C, 0x1E, 0x0C, 0x00,
|
||||
0x30, 0x38, 0x3E, 0x38, 0x30, 0x00,
|
||||
0x06, 0x0E, 0x3E, 0x0E, 0x06, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x5F, 0x00, 0x00, 0x00,
|
||||
0x00, 0x07, 0x00, 0x07, 0x00, 0x00,
|
||||
0x14, 0x7F, 0x14, 0x7F, 0x14, 0x00,
|
||||
0x24, 0x2A, 0x7F, 0x2A, 0x12, 0x00,
|
||||
0x23, 0x13, 0x08, 0x64, 0x62, 0x00,
|
||||
0x36, 0x49, 0x56, 0x20, 0x50, 0x00,
|
||||
0x00, 0x08, 0x07, 0x03, 0x00, 0x00,
|
||||
0x00, 0x1C, 0x22, 0x41, 0x00, 0x00,
|
||||
0x00, 0x41, 0x22, 0x1C, 0x00, 0x00,
|
||||
0x2A, 0x1C, 0x7F, 0x1C, 0x2A, 0x00,
|
||||
0x08, 0x08, 0x3E, 0x08, 0x08, 0x00,
|
||||
0x00, 0x80, 0x70, 0x30, 0x00, 0x00,
|
||||
0x08, 0x08, 0x08, 0x08, 0x08, 0x00,
|
||||
0x00, 0x00, 0x60, 0x60, 0x00, 0x00,
|
||||
0x20, 0x10, 0x08, 0x04, 0x02, 0x00,
|
||||
0x3E, 0x51, 0x49, 0x45, 0x3E, 0x00,
|
||||
0x00, 0x42, 0x7F, 0x40, 0x00, 0x00,
|
||||
0x72, 0x49, 0x49, 0x49, 0x46, 0x00,
|
||||
0x21, 0x41, 0x49, 0x4D, 0x33, 0x00,
|
||||
0x18, 0x14, 0x12, 0x7F, 0x10, 0x00,
|
||||
0x27, 0x45, 0x45, 0x45, 0x39, 0x00,
|
||||
0x3C, 0x4A, 0x49, 0x49, 0x31, 0x00,
|
||||
0x41, 0x21, 0x11, 0x09, 0x07, 0x00,
|
||||
0x36, 0x49, 0x49, 0x49, 0x36, 0x00,
|
||||
0x46, 0x49, 0x49, 0x29, 0x1E, 0x00,
|
||||
0x00, 0x00, 0x14, 0x00, 0x00, 0x00,
|
||||
0x00, 0x40, 0x34, 0x00, 0x00, 0x00,
|
||||
0x00, 0x08, 0x14, 0x22, 0x41, 0x00,
|
||||
0x14, 0x14, 0x14, 0x14, 0x14, 0x00,
|
||||
0x00, 0x41, 0x22, 0x14, 0x08, 0x00,
|
||||
0x02, 0x01, 0x59, 0x09, 0x06, 0x00,
|
||||
0x3E, 0x41, 0x5D, 0x59, 0x4E, 0x00,
|
||||
0x7C, 0x12, 0x11, 0x12, 0x7C, 0x00,
|
||||
0x7F, 0x49, 0x49, 0x49, 0x36, 0x00,
|
||||
0x3E, 0x41, 0x41, 0x41, 0x22, 0x00,
|
||||
0x7F, 0x41, 0x41, 0x41, 0x3E, 0x00,
|
||||
0x7F, 0x49, 0x49, 0x49, 0x41, 0x00,
|
||||
0x7F, 0x09, 0x09, 0x09, 0x01, 0x00,
|
||||
0x3E, 0x41, 0x41, 0x51, 0x73, 0x00,
|
||||
0x7F, 0x08, 0x08, 0x08, 0x7F, 0x00,
|
||||
0x00, 0x41, 0x7F, 0x41, 0x00, 0x00,
|
||||
0x20, 0x40, 0x41, 0x3F, 0x01, 0x00,
|
||||
0x7F, 0x08, 0x14, 0x22, 0x41, 0x00,
|
||||
0x7F, 0x40, 0x40, 0x40, 0x40, 0x00,
|
||||
0x7F, 0x02, 0x1C, 0x02, 0x7F, 0x00,
|
||||
0x7F, 0x04, 0x08, 0x10, 0x7F, 0x00,
|
||||
0x3E, 0x41, 0x41, 0x41, 0x3E, 0x00,
|
||||
0x7F, 0x09, 0x09, 0x09, 0x06, 0x00,
|
||||
0x3E, 0x41, 0x51, 0x21, 0x5E, 0x00,
|
||||
0x7F, 0x09, 0x19, 0x29, 0x46, 0x00,
|
||||
0x26, 0x49, 0x49, 0x49, 0x32, 0x00,
|
||||
0x03, 0x01, 0x7F, 0x01, 0x03, 0x00,
|
||||
0x3F, 0x40, 0x40, 0x40, 0x3F, 0x00,
|
||||
0x1F, 0x20, 0x40, 0x20, 0x1F, 0x00,
|
||||
0x3F, 0x40, 0x38, 0x40, 0x3F, 0x00,
|
||||
0x63, 0x14, 0x08, 0x14, 0x63, 0x00,
|
||||
0x03, 0x04, 0x78, 0x04, 0x03, 0x00,
|
||||
0x61, 0x59, 0x49, 0x4D, 0x43, 0x00,
|
||||
0x00, 0x7F, 0x41, 0x41, 0x41, 0x00,
|
||||
0x02, 0x04, 0x08, 0x10, 0x20, 0x00,
|
||||
0x00, 0x41, 0x41, 0x41, 0x7F, 0x00,
|
||||
0x04, 0x02, 0x01, 0x02, 0x04, 0x00,
|
||||
0x40, 0x40, 0x40, 0x40, 0x40, 0x00,
|
||||
0x00, 0x03, 0x07, 0x08, 0x00, 0x00,
|
||||
0x20, 0x54, 0x54, 0x78, 0x40, 0x00,
|
||||
0x7F, 0x28, 0x44, 0x44, 0x38, 0x00,
|
||||
0x38, 0x44, 0x44, 0x44, 0x28, 0x00,
|
||||
0x38, 0x44, 0x44, 0x28, 0x7F, 0x00,
|
||||
0x38, 0x54, 0x54, 0x54, 0x18, 0x00,
|
||||
0x00, 0x08, 0x7E, 0x09, 0x02, 0x00,
|
||||
0x18, 0x24, 0x24, 0x1C, 0x78, 0x00,
|
||||
0x7F, 0x08, 0x04, 0x04, 0x78, 0x00,
|
||||
0x00, 0x44, 0x7D, 0x40, 0x00, 0x00,
|
||||
0x20, 0x40, 0x40, 0x3D, 0x00, 0x00,
|
||||
0x7F, 0x10, 0x28, 0x44, 0x00, 0x00,
|
||||
0x00, 0x41, 0x7F, 0x40, 0x00, 0x00,
|
||||
0x7C, 0x04, 0x78, 0x04, 0x78, 0x00,
|
||||
0x7C, 0x08, 0x04, 0x04, 0x78, 0x00,
|
||||
0x38, 0x44, 0x44, 0x44, 0x38, 0x00,
|
||||
0x7C, 0x18, 0x24, 0x24, 0x18, 0x00,
|
||||
0x18, 0x24, 0x24, 0x18, 0x7C, 0x00,
|
||||
0x7C, 0x08, 0x04, 0x04, 0x08, 0x00,
|
||||
0x48, 0x54, 0x54, 0x54, 0x24, 0x00,
|
||||
0x04, 0x04, 0x3F, 0x44, 0x24, 0x00,
|
||||
0x3C, 0x40, 0x40, 0x20, 0x7C, 0x00,
|
||||
0x1C, 0x20, 0x40, 0x20, 0x1C, 0x00,
|
||||
0x3C, 0x40, 0x30, 0x40, 0x3C, 0x00,
|
||||
0x44, 0x28, 0x10, 0x28, 0x44, 0x00,
|
||||
0x4C, 0x90, 0x90, 0x90, 0x7C, 0x00,
|
||||
0x44, 0x64, 0x54, 0x4C, 0x44, 0x00,
|
||||
0x00, 0x08, 0x36, 0x41, 0x00, 0x00,
|
||||
0x00, 0x00, 0x77, 0x00, 0x00, 0x00,
|
||||
0x00, 0x41, 0x36, 0x08, 0x00, 0x00,
|
||||
0x02, 0x01, 0x02, 0x04, 0x02, 0x00,
|
||||
0x3C, 0x26, 0x23, 0x26, 0x3C, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x80, 0xF0, 0xF8, 0xF8, 0xF0,
|
||||
0x80, 0x00, 0x00, 0x00, 0x00, 0x80,
|
||||
0xF0, 0xFE, 0x7F, 0x7F, 0xFE, 0xF0,
|
||||
0x80, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0xE0, 0xF0, 0xF0, 0xF0, 0xE0, 0xEC,
|
||||
0xEE, 0xF7, 0xF3, 0x70, 0x20, 0x00,
|
||||
0x7C, 0x7C, 0x7C, 0x7E, 0x00, 0x7E,
|
||||
0x7E, 0x7E, 0x7F, 0x7F, 0x7F, 0x00,
|
||||
0x00, 0x80, 0xC0, 0xE0, 0x7E, 0x5B,
|
||||
0x4F, 0x5B, 0xFE, 0xC0, 0x00, 0x00,
|
||||
0xC0, 0x00, 0xDC, 0xD7, 0xDE, 0xDE,
|
||||
0xDE, 0xD7, 0xDC, 0x00, 0xC0, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x1C, 0x1C, 0x1C, 0x1C, 0x1C, 0x1C,
|
||||
0x1C, 0x1C, 0x1C, 0x1C, 0x1C, 0x1C,
|
||||
0x1C, 0x1C, 0x1C, 0x1C, 0x1C, 0x1C,
|
||||
0x1C, 0x1C, 0x1C, 0x1C, 0x1C, 0x1C,
|
||||
0x1C, 0x1C, 0x1C, 0x1C, 0x1C, 0x1C,
|
||||
0x1C, 0x1C, 0x1C, 0x1C, 0x1C, 0x1C,
|
||||
0x1C, 0x1C, 0x1C, 0x1C, 0x1C, 0x1C,
|
||||
0x1C, 0x1C, 0x1C, 0x1C, 0x1C, 0x1C,
|
||||
0x1C, 0x1F, 0x0F, 0x03, 0x03, 0x1F,
|
||||
0xFF, 0xFC, 0xE0, 0xE0, 0xFC, 0xFF,
|
||||
0x1F, 0x03, 0x00, 0x00, 0x03, 0x1F,
|
||||
0xFF, 0xFC, 0xE0, 0xE0, 0xF8, 0xFC,
|
||||
0x1C, 0x1C, 0x1C, 0x1C, 0x1C, 0x1C,
|
||||
0x1C, 0x1C, 0x1C, 0x1C, 0x1C, 0x1C,
|
||||
0x1C, 0x1C, 0x1C, 0x1C, 0x1C, 0x1C,
|
||||
0x1C, 0x1C, 0x1C, 0x1C, 0x1C, 0x1C,
|
||||
0x1C, 0x1C, 0x1C, 0x1C, 0x1C, 0x1C,
|
||||
0x1C, 0x1C, 0x1C, 0x1C, 0x1C, 0x1C,
|
||||
0x1C, 0x1C, 0x1C, 0x1C, 0x1C, 0x1C,
|
||||
0x1C, 0x1C, 0x1C, 0x1C, 0x1C, 0x1C,
|
||||
0x1C, 0x1C, 0x1C, 0x1C, 0x1C, 0x1C,
|
||||
0x1F, 0x1F, 0x3F, 0x7F, 0x7F, 0x7F,
|
||||
0x7F, 0x7F, 0x3F, 0x1E, 0x0C, 0x00,
|
||||
0x1F, 0x1F, 0x1F, 0x3F, 0x00, 0x3F,
|
||||
0x3F, 0x3F, 0x7F, 0x7F, 0x7F, 0x00,
|
||||
0x30, 0x7B, 0x7F, 0x78, 0x30, 0x20,
|
||||
0x20, 0x30, 0x78, 0x7F, 0x3B, 0x00,
|
||||
0x03, 0x00, 0x0F, 0x7F, 0x0F, 0x0F,
|
||||
0x0F, 0x7F, 0x0F, 0x00, 0x03, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x07, 0x0F, 0x0F, 0x07, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x07, 0x0F, 0x0F, 0x07, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
};
|
||||
@@ -1,46 +1,84 @@
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
extern uint8_t is_master;
|
||||
extern uint8_t is_master;
|
||||
static uint32_t oled_timer = 0;
|
||||
|
||||
#ifdef RGB_MATRIX_ENABLE
|
||||
static uint32_t hypno_timer;
|
||||
#endif
|
||||
|
||||
enum layer_names {
|
||||
_COLEMAKDHM,
|
||||
_GAMING,
|
||||
_GAMING_EXT,
|
||||
_NUM,
|
||||
_FN,
|
||||
_NUMPAD,
|
||||
_SYM,
|
||||
_NAV,
|
||||
_UTIL
|
||||
};
|
||||
|
||||
enum custom_keycodes {
|
||||
BSP_DEL = SAFE_RANGE,
|
||||
RGB_RST, // Reset RGB
|
||||
RGB_UND, // Toggle RGB underglow as layer indicator
|
||||
RGB_IDL, // RGB Idling animations
|
||||
RGB_MAP, // RGB_MATRIX_TYPING_HEATMAP
|
||||
RGB_NXS, // RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS
|
||||
RGB_SOL, // RGB_MATRIX_SOLID_COLOR
|
||||
RGB_CYC, // RGB_MATRIX_CYCLE_ALL
|
||||
RGB_DUO, // RGB_MATRIX_RAINBOW_PINWHEELS
|
||||
RGB_SCR // RGB_MATRIX_CYCLE_LEFT_RIGHT
|
||||
};
|
||||
|
||||
typedef union {
|
||||
uint32_t raw;
|
||||
struct {
|
||||
bool rgb_layer_change : 1;
|
||||
bool rgb_matrix_idle_anim : 1;
|
||||
uint8_t rgb_matrix_active_mode : 4;
|
||||
uint8_t rgb_matrix_idle_mode : 4;
|
||||
uint8_t rgb_matrix_active_speed : 8;
|
||||
uint8_t rgb_matrix_idle_speed : 8;
|
||||
uint16_t rgb_matrix_idle_timeout : 16;
|
||||
};
|
||||
} user_config_t;
|
||||
|
||||
user_config_t user_config;
|
||||
|
||||
// Base layers
|
||||
#define COLEMAK DF(_COLEMAKDHM)
|
||||
#define GAMING DF(_GAMING)
|
||||
#define GAMING DF(_GAMING)
|
||||
|
||||
// Layer toggle and switch
|
||||
#define T_NAV TT(_NAV)
|
||||
#define S_NAV MO(_NAV)
|
||||
|
||||
#define T_NUM TT(_NUM)
|
||||
#define S_NUM MO(_NUM)
|
||||
#define T_SYM TT(_SYM)
|
||||
#define S_SYM MO(_SYM)
|
||||
|
||||
// Layer keys with functionality on tap
|
||||
#define FN_TAB LT(_FN, KC_TAB)
|
||||
#define NAV_0 LT(_NAV, KC_0)
|
||||
#define TAB_NUM LT(_NUMPAD, KC_TAB)
|
||||
|
||||
#define EXT_SF LT(_GAMING_EXT, KC_LSHIFT)
|
||||
|
||||
// Tap/mod keys
|
||||
#define RCTBR RCTL_T(KC_RBRACKET)
|
||||
#define LCTBR LCTL_T(KC_LBRACKET)
|
||||
#define RCTL_BR RCTL_T(KC_RBRACKET)
|
||||
#define LCTL_BR LCTL_T(KC_LBRACKET)
|
||||
|
||||
#define SFSPC LSFT_T(KC_SPACE)
|
||||
#define SFENT LSFT_T(KC_ENTER)
|
||||
#define SFT_SPC LSFT_T(KC_SPACE)
|
||||
#define SFT_ENT RSFT_T(KC_ENTER)
|
||||
|
||||
// Global tab forward and backward
|
||||
#define TBFWD LCTL(KC_TAB)
|
||||
#define TBBCK LCTL(LSFT(KC_TAB))
|
||||
#define TAB_FWD LCTL(KC_TAB)
|
||||
#define TAB_BCK LCTL(LSFT(KC_TAB))
|
||||
#define TAB_CLS LCTL(KC_W)
|
||||
|
||||
// Custom key for NUM layer
|
||||
#define CTEQL RCTL_T(KC_EQL)
|
||||
#define WIN_CLS LALT(KC_F4)
|
||||
|
||||
// CTRL become parens keys on NAV and NUM layers
|
||||
#define LCT_PRN KC_LCPO
|
||||
#define RCT_PRN KC_RCPC
|
||||
|
||||
// €
|
||||
#define KC_EUR ALGR(KC_5)
|
||||
@@ -48,19 +86,19 @@ enum layer_names {
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[_COLEMAKDHM] = LAYOUT( \
|
||||
//,-----------------------------------------------------. ,-----------------------------------------------------.
|
||||
KC_ESC, KC_Q, KC_W, KC_F, KC_P, KC_B, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, KC_BSPC,\
|
||||
KC_ESC, KC_Q, KC_W, KC_F, KC_P, KC_B, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, BSP_DEL,\
|
||||
//|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------|
|
||||
FN_TAB, KC_A, KC_R, KC_S, KC_T, KC_G, KC_M, KC_N, KC_E, KC_I, KC_O, KC_QUOT,\
|
||||
TAB_NUM, KC_A, KC_R, KC_S, KC_T, KC_G, KC_M, KC_N, KC_E, KC_I, KC_O, KC_QUOT,\
|
||||
//|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------|
|
||||
LCTBR, KC_Z, KC_X, KC_C, KC_D, KC_V, KC_K, KC_H, KC_COMM, KC_DOT, KC_SLSH, RCTBR,\
|
||||
LCTL_BR, KC_Z, KC_X, KC_C, KC_D, KC_V, KC_K, KC_H, KC_COMM, KC_DOT, KC_SLSH, RCTL_BR,\
|
||||
//|--------+--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------|
|
||||
KC_LALT, T_NUM, SFSPC, SFENT, T_NAV, KC_RGUI \
|
||||
KC_LALT, T_SYM, SFT_SPC, SFT_ENT, T_NAV, KC_RGUI \
|
||||
//`--------------------------' `--------------------------'
|
||||
),
|
||||
|
||||
[_GAMING] = LAYOUT( \
|
||||
//,-----------------------------------------------------. ,-----------------------------------------------------.
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,\
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_BSPC,\
|
||||
//|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------|
|
||||
KC_TAB, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,\
|
||||
//|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------|
|
||||
@@ -72,59 +110,59 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
[_GAMING_EXT] = LAYOUT( \
|
||||
//,-----------------------------------------------------. ,-----------------------------------------------------.
|
||||
KC_GRV, KC_1, KC_2, _______, KC_3, KC_4, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_DEL,\
|
||||
KC_GRV, KC_1, KC_2, _______, KC_3, KC_4, _______, _______, _______, _______, _______, KC_DEL,\
|
||||
//|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------|
|
||||
KC_LBRC, KC_RBRC, _______, _______, _______, KC_BSLS, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, _______,\
|
||||
KC_LBRC, KC_RBRC, _______, _______, _______, KC_BSLS, _______, _______, _______, _______, _______, _______,\
|
||||
//|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------|
|
||||
KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_F11, KC_F12, KC_MINS, KC_EQL, _______, _______,\
|
||||
KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, _______, _______, _______, _______, _______, _______,\
|
||||
//|--------+--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------|
|
||||
_______, _______, _______, KC_ENT, _______, _______ \
|
||||
//`--------------------------' `--------------------------'
|
||||
),
|
||||
|
||||
[_FN] = LAYOUT( \
|
||||
[_NUMPAD] = LAYOUT( \
|
||||
//,-----------------------------------------------------. ,-----------------------------------------------------.
|
||||
KC_F12, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11,\
|
||||
_______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_EUR, KC_P7, KC_P8, KC_P9, XXXXXXX, _______,\
|
||||
//|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------|
|
||||
_______, XXXXXXX, XXXXXXX, XXXXXXX, KC_CAPS, KC_NLCK, XXXXXXX, KC_MINS, KC_PIPE, KC_BSLS, KC_PLUS, XXXXXXX,\
|
||||
_______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_UNDS, KC_P4, KC_P5, KC_P6, KC_PMNS, KC_PPLS,\
|
||||
//|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------|
|
||||
_______, XXXXXXX, KC_PAUS, KC_SLCK, KC_PSCR, KC_INS, XXXXXXX, KC_UNDS, KC_LT, KC_GT, KC_EQL, _______,\
|
||||
KC_LCTL, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_NLCK, KC_EQL, KC_P1, KC_P2, KC_P3, KC_PSLS, KC_PAST,\
|
||||
//|--------+--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------|
|
||||
_______, _______, _______, _______, _______, _______ \
|
||||
_______, _______, _______, _______, KC_P0, KC_DOT \
|
||||
//`--------------------------' `--------------------------'
|
||||
),
|
||||
|
||||
[_NUM] = LAYOUT( \
|
||||
[_SYM] = LAYOUT( \
|
||||
//,-----------------------------------------------------. ,-----------------------------------------------------.
|
||||
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, _______,\
|
||||
//|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------|
|
||||
KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_SLSH, KC_4, KC_5, KC_6, KC_MINS, KC_PLUS,\
|
||||
KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_UNDS, KC_MINS, KC_PLUS,\
|
||||
//|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------|
|
||||
_______, KC_CIRC, KC_AMPR, KC_EUR, KC_LPRN, KC_RPRN, KC_ASTR, KC_1, KC_2, KC_3, KC_UNDS, CTEQL,\
|
||||
LCT_PRN, XXXXXXX, XXXXXXX, XXXXXXX, KC_EUR, XXXXXXX, KC_EQL, KC_PIPE, KC_LT, KC_GT, KC_BSLS, RCT_PRN,\
|
||||
//|--------+--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------|
|
||||
_______, S_NUM, _______, _______, NAV_0, KC_DOT \
|
||||
_______, S_SYM, _______, _______, _______, _______ \
|
||||
//`--------------------------' `--------------------------'
|
||||
),
|
||||
|
||||
[_NAV] = LAYOUT( \
|
||||
//,-----------------------------------------------------. ,-----------------------------------------------------.
|
||||
_______, KC_WH_U, TBBCK, KC_MS_U, TBFWD, KC_BTN2, KC_PGUP, KC_HOME, KC_UP, KC_END, XXXXXXX, KC_DEL,\
|
||||
KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_PGUP, KC_HOME, KC_UP, KC_END, XXXXXXX, KC_BSPC,\
|
||||
//|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------|
|
||||
KC_TAB, KC_WH_D, KC_MS_L, KC_MS_D, KC_MS_R, KC_BTN1, KC_PGDN, KC_LEFT, KC_DOWN, KC_RGHT, XXXXXXX, XXXXXXX,\
|
||||
KC_TILD, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_PGDN, KC_LEFT, KC_DOWN, KC_RGHT, XXXXXXX, XXXXXXX,\
|
||||
//|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------|
|
||||
_______, XXXXXXX, KC_WH_L, XXXXXXX, KC_WH_R, XXXXXXX, XXXXXXX, KC_ACL0, KC_ACL1, KC_ACL2, XXXXXXX, _______,\
|
||||
//|--------+--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+-------+---------|
|
||||
_______, _______, _______, _______, S_NAV, _______ \
|
||||
LCT_PRN, KC_F11, KC_F12, KC_INS, KC_PSCR, KC_CAPS, WIN_CLS, TAB_BCK, TAB_CLS, TAB_FWD, XXXXXXX, RCT_PRN,\
|
||||
//|--------+--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+---------|
|
||||
_______, _______, _______, _______, S_NAV, _______ \
|
||||
//`--------------------------' `--------------------------'
|
||||
),
|
||||
|
||||
[_UTIL] = LAYOUT( \
|
||||
//,-----------------------------------------------------. ,-----------------------------------------------------.
|
||||
RESET, XXXXXXX, KC_MSTP, KC_VOLU, KC_MNXT, XXXXXXX, COLEMAK, GAMING, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,\
|
||||
RESET, XXXXXXX, KC_MPRV, KC_VOLU, KC_MNXT, COLEMAK, RGB_IDL, RGB_MAP, RGB_NXS, XXXXXXX, RGB_HUD, RGB_HUI,\
|
||||
//|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------|
|
||||
XXXXXXX, XXXXXXX, KC_MPRV, KC_VOLD, KC_MPLY, XXXXXXX, XXXXXXX, RGB_MOD, RGB_SPI, RGB_HUI, RGB_SAI, RGB_VAI,\
|
||||
RGB_RST, XXXXXXX, KC_MSTP, KC_VOLD, KC_MPLY, GAMING, RGB_UND, RGB_DUO, RGB_SCR, RGB_SPI, RGB_SAD, RGB_SAI,\
|
||||
//|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------|
|
||||
XXXXXXX, KC_SLEP, XXXXXXX, KC_MUTE, XXXXXXX, XXXXXXX, RGB_TOG,RGB_RMOD, RGB_SPD, RGB_HUD, RGB_SAD, RGB_VAD,\
|
||||
EEP_RST, KC_SLEP, XXXXXXX, KC_MUTE, XXXXXXX, XXXXXXX, RGB_TOG, RGB_SOL, RGB_CYC, RGB_SPD, RGB_VAD, RGB_VAI,\
|
||||
//|--------+--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------|
|
||||
_______, _______, _______, _______, _______, _______ \
|
||||
//`--------------------------' `--------------------------'
|
||||
@@ -132,103 +170,404 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
};
|
||||
|
||||
layer_state_t layer_state_set_user(layer_state_t state) {
|
||||
switch (get_highest_layer(default_layer_state)) {
|
||||
case _COLEMAKDHM:
|
||||
state = update_tri_layer_state(state, _NUM, _NAV, _UTIL);
|
||||
break;
|
||||
case _GAMING:
|
||||
state = update_tri_layer_state(state, _GAMING_EXT, _NAV, _UTIL);
|
||||
break;
|
||||
}
|
||||
return state;
|
||||
switch (get_highest_layer(default_layer_state)) {
|
||||
case _COLEMAKDHM:
|
||||
state = update_tri_layer_state(state, _SYM, _NAV, _UTIL);
|
||||
break;
|
||||
case _GAMING:
|
||||
state = update_tri_layer_state(state, _GAMING_EXT, _NAV, _UTIL);
|
||||
break;
|
||||
}
|
||||
return state;
|
||||
}
|
||||
|
||||
#ifdef OLED_DRIVER_ENABLE
|
||||
oled_rotation_t oled_init_user(oled_rotation_t rotation) {
|
||||
if (is_master) {
|
||||
return OLED_ROTATION_270;
|
||||
} else {
|
||||
return OLED_ROTATION_180;
|
||||
}
|
||||
if (is_master) {
|
||||
return OLED_ROTATION_270;
|
||||
} else {
|
||||
return OLED_ROTATION_180;
|
||||
}
|
||||
}
|
||||
|
||||
void render_crkbd_logo(void) {
|
||||
static const char PROGMEM crkbd_logo[] = {
|
||||
0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89, 0x8a, 0x8b, 0x8c, 0x8d, 0x8e, 0x8f, 0x90, 0x91, 0x92, 0x93, 0x94,
|
||||
0xa0, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7, 0xa8, 0xa9, 0xaa, 0xab, 0xac, 0xad, 0xae, 0xaf, 0xb0, 0xb1, 0xb2, 0xb3, 0xb4,
|
||||
0xc0, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7, 0xc8, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf, 0xd0, 0xd1, 0xd2, 0xd3, 0xd4,
|
||||
0};
|
||||
oled_write_P(crkbd_logo, false);
|
||||
static const char PROGMEM crkbd_logo[] = {
|
||||
0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89, 0x8a, 0x8b, 0x8c, 0x8d, 0x8e, 0x8f, 0x90, 0x91, 0x92, 0x93, 0x94,
|
||||
0xa0, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7, 0xa8, 0xa9, 0xaa, 0xab, 0xac, 0xad, 0xae, 0xaf, 0xb0, 0xb1, 0xb2, 0xb3, 0xb4,
|
||||
0xc0, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7, 0xc8, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf, 0xd0, 0xd1, 0xd2, 0xd3, 0xd4,
|
||||
0};
|
||||
oled_write_P(crkbd_logo, false);
|
||||
}
|
||||
|
||||
# ifdef RGB_MATRIX_ENABLE
|
||||
const char *rgb_matrix_anim_oled_text(uint8_t mode) {
|
||||
switch (mode) {
|
||||
case RGB_MATRIX_TYPING_HEATMAP:
|
||||
return PSTR("Heat ");
|
||||
case RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS:
|
||||
return PSTR("Nexus");
|
||||
case RGB_MATRIX_SOLID_COLOR:
|
||||
return PSTR("Solid");
|
||||
case RGB_MATRIX_CYCLE_ALL:
|
||||
return PSTR("Cycle");
|
||||
case RGB_MATRIX_RAINBOW_PINWHEELS:
|
||||
return PSTR("Wheel");
|
||||
case RGB_MATRIX_CYCLE_LEFT_RIGHT:
|
||||
return PSTR("Wave ");
|
||||
default:
|
||||
return PSTR("");
|
||||
}
|
||||
}
|
||||
# endif
|
||||
|
||||
void render_status(void) {
|
||||
// oled_write_P(PSTR("Layout: "), false);
|
||||
switch (get_highest_layer(default_layer_state)) {
|
||||
case _COLEMAKDHM:
|
||||
oled_write_P(PSTR("CLMK "), false);
|
||||
break;
|
||||
case _GAMING:
|
||||
oled_write_P(PSTR("GAME "), false);
|
||||
break;
|
||||
}
|
||||
// oled_write_P(PSTR("Layout: "), false);
|
||||
switch (get_highest_layer(default_layer_state)) {
|
||||
case _COLEMAKDHM:
|
||||
oled_write_P(PSTR("TYPE "), false);
|
||||
break;
|
||||
case _GAMING:
|
||||
oled_write_P(PSTR("GAME "), false);
|
||||
break;
|
||||
}
|
||||
|
||||
oled_write_P(PSTR("\n"), false);
|
||||
oled_write_P(PSTR("\n"), false);
|
||||
|
||||
switch (get_highest_layer(layer_state)) {
|
||||
case 0:
|
||||
oled_write_P(PSTR(" "), false);
|
||||
break;
|
||||
case _NUM:
|
||||
oled_write_P(PSTR("Comm "), false);
|
||||
break;
|
||||
case _FN:
|
||||
oled_write_P(PSTR("Stage"), false);
|
||||
break;
|
||||
case _NAV:
|
||||
oled_write_P(PSTR("Fuel "), false);
|
||||
break;
|
||||
case _GAMING_EXT:
|
||||
oled_write_P(PSTR("Ext "), false);
|
||||
break;
|
||||
case _UTIL:
|
||||
oled_write_P(PSTR("Util "), false);
|
||||
break;
|
||||
default:
|
||||
oled_write_P(PSTR("Unkn "), false);
|
||||
break;
|
||||
}
|
||||
oled_write_P(PSTR("\n"), false);
|
||||
switch (get_highest_layer(layer_state)) {
|
||||
case 0:
|
||||
oled_write_P(PSTR(" "), false);
|
||||
break;
|
||||
case _SYM:
|
||||
oled_write_P(PSTR("Sym "), false);
|
||||
break;
|
||||
case _NAV:
|
||||
oled_write_P(PSTR("Nav "), false);
|
||||
break;
|
||||
case _GAMING_EXT:
|
||||
oled_write_P(PSTR("Ext "), false);
|
||||
break;
|
||||
case _NUMPAD:
|
||||
oled_write_P(PSTR("Num "), false);
|
||||
break;
|
||||
case _UTIL:
|
||||
oled_write_P(PSTR("Util "), false);
|
||||
break;
|
||||
default:
|
||||
oled_write_P(PSTR("Unkn "), false);
|
||||
break;
|
||||
}
|
||||
oled_write_P(PSTR("\n"), false);
|
||||
|
||||
uint8_t modifiers = get_mods();
|
||||
uint8_t modifiers = get_mods();
|
||||
|
||||
oled_write_P( (modifiers & MOD_MASK_CTRL) ? PSTR("PROG ") : PSTR(" "), false);
|
||||
oled_write_P( (modifiers & MOD_MASK_SHIFT) ? PSTR("PULSE") : PSTR(" "), false);
|
||||
oled_write_P( (modifiers & MOD_MASK_ALT) ? PSTR("STBY ") : PSTR(" "), false);
|
||||
oled_write_P( (modifiers & MOD_MASK_GUI) ? PSTR("GYRO ") : PSTR(" "), false);
|
||||
oled_write_P((modifiers & MOD_MASK_SHIFT) ? PSTR("SHIFT") : PSTR("\n"), false);
|
||||
oled_write_P((modifiers & MOD_MASK_CTRL) ? PSTR("CTRL ") : PSTR("\n"), false);
|
||||
oled_write_P((modifiers & MOD_MASK_ALT) ? PSTR("ALT ") : PSTR("\n"), false);
|
||||
oled_write_P((modifiers & MOD_MASK_GUI) ? PSTR("SUPER") : PSTR("\n"), false);
|
||||
|
||||
oled_write_P(PSTR("\n"), false);
|
||||
oled_write_P(PSTR("\n"), false);
|
||||
|
||||
uint8_t led_usb_state = host_keyboard_leds();
|
||||
oled_write_P(PSTR("Mode:\n"), false);
|
||||
oled_write_P(IS_LED_ON(led_usb_state, USB_LED_NUM_LOCK) ? PSTR(" NUM ") : PSTR(" "), false);
|
||||
oled_write_P(IS_LED_ON(led_usb_state, USB_LED_CAPS_LOCK) ? PSTR(" CAPS") : PSTR(" "), false);
|
||||
oled_write_P(IS_LED_ON(led_usb_state, USB_LED_SCROLL_LOCK) ? PSTR(" SCRL") : PSTR(" "), false);
|
||||
uint8_t led_usb_state = host_keyboard_leds();
|
||||
oled_write_P(PSTR("Mode:"), false);
|
||||
oled_write_P(IS_LED_ON(led_usb_state, USB_LED_NUM_LOCK) ? PSTR(" NUM ") : PSTR("\n"), false);
|
||||
oled_write_P(IS_LED_ON(led_usb_state, USB_LED_CAPS_LOCK) ? PSTR(" CAPS") : PSTR("\n"), false);
|
||||
|
||||
# ifdef RGB_MATRIX_ENABLE
|
||||
oled_write_P(PSTR("\n"), false);
|
||||
oled_write_P(PSTR("\n"), false);
|
||||
|
||||
if (rgb_matrix_config.enable) {
|
||||
if (user_config.rgb_matrix_idle_anim) {
|
||||
oled_write_P(rgb_matrix_anim_oled_text(user_config.rgb_matrix_active_mode), false);
|
||||
oled_write_P(rgb_matrix_anim_oled_text(user_config.rgb_matrix_idle_mode), false);
|
||||
} else {
|
||||
oled_write_P(PSTR("\n"), false);
|
||||
oled_write_P(rgb_matrix_anim_oled_text(rgb_matrix_get_mode()), false);
|
||||
}
|
||||
} else {
|
||||
oled_write_P(PSTR("\n"), false);
|
||||
oled_write_P(PSTR("\n"), false);
|
||||
}
|
||||
# endif
|
||||
}
|
||||
|
||||
void oled_task_user(void) {
|
||||
if (is_master) {
|
||||
render_status(); // Renders the current keyboard state (layer, lock, caps, scroll, etc)
|
||||
} else {
|
||||
render_crkbd_logo();
|
||||
// oled_scroll_left(); // Turns on scrolling
|
||||
}
|
||||
if (timer_elapsed32(oled_timer) > OLED_TIMEOUT) {
|
||||
oled_off();
|
||||
return;
|
||||
} else {
|
||||
oled_on();
|
||||
}
|
||||
|
||||
if (is_master) {
|
||||
render_status(); // Renders the current keyboard state (layer, lock, caps, scroll, etc)
|
||||
} else {
|
||||
render_crkbd_logo();
|
||||
#ifdef RGB_MATRIX_ENABLE
|
||||
if (user_config.rgb_matrix_idle_anim && rgb_matrix_get_mode() == user_config.rgb_matrix_idle_mode) {
|
||||
oled_scroll_left(); // Turns on scrolling
|
||||
} else {
|
||||
oled_scroll_off();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef RGB_MATRIX_ENABLE
|
||||
|
||||
extern led_config_t g_led_config;
|
||||
void rgb_matrix_layer_helper(uint8_t hue, uint8_t sat, uint8_t val, uint8_t led_type) {
|
||||
HSV hsv = {hue, sat, val};
|
||||
if (hsv.v > rgb_matrix_config.hsv.v) {
|
||||
hsv.v = rgb_matrix_config.hsv.v;
|
||||
}
|
||||
|
||||
RGB rgb = hsv_to_rgb(hsv);
|
||||
for (uint8_t i = 0; i < DRIVER_LED_TOTAL; i++) {
|
||||
if (HAS_FLAGS(g_led_config.flags[i], led_type)) {
|
||||
rgb_matrix_set_color(i, rgb.r, rgb.g, rgb.b);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void check_default_layer(uint8_t type) {
|
||||
switch (get_highest_layer(default_layer_state)) {
|
||||
case _COLEMAKDHM:
|
||||
rgb_matrix_layer_helper(THEME_HSV, type);
|
||||
break;
|
||||
case _GAMING:
|
||||
rgb_matrix_layer_helper(HSV_RED, type);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
void rgb_matrix_indicators_user(void) {
|
||||
if (
|
||||
user_config.rgb_layer_change && !g_suspend_state && rgb_matrix_config.enable &&
|
||||
(!user_config.rgb_matrix_idle_anim || rgb_matrix_get_mode() != user_config.rgb_matrix_idle_mode)
|
||||
)
|
||||
{
|
||||
switch (get_highest_layer(layer_state)) {
|
||||
case _GAMING_EXT:
|
||||
rgb_matrix_layer_helper(HSV_PURPLE, LED_FLAG_UNDERGLOW);
|
||||
break;
|
||||
case _SYM:
|
||||
rgb_matrix_layer_helper(HSV_GOLDENROD, LED_FLAG_UNDERGLOW);
|
||||
break;
|
||||
case _NAV:
|
||||
rgb_matrix_layer_helper(HSV_SPRINGGREEN, LED_FLAG_UNDERGLOW);
|
||||
break;
|
||||
case _UTIL:
|
||||
rgb_matrix_layer_helper(HSV_PINK, LED_FLAG_UNDERGLOW);
|
||||
break;
|
||||
case _NUMPAD:
|
||||
rgb_matrix_layer_helper(HSV_CORAL, LED_FLAG_UNDERGLOW);
|
||||
break;
|
||||
default: {
|
||||
check_default_layer(LED_FLAG_UNDERGLOW);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void rgb_matrix_update_current_mode(uint8_t mode, uint8_t speed) {
|
||||
rgb_matrix_config.speed = speed;
|
||||
rgb_matrix_mode_noeeprom(mode);
|
||||
eeconfig_update_user(user_config.raw);
|
||||
}
|
||||
|
||||
void rgb_matrix_update_dynamic_mode(uint8_t mode, uint8_t speed, bool active) {
|
||||
if (active) {
|
||||
user_config.rgb_matrix_active_speed = speed;
|
||||
user_config.rgb_matrix_active_mode = mode;
|
||||
} else {
|
||||
user_config.rgb_matrix_idle_speed = speed;
|
||||
user_config.rgb_matrix_idle_mode = mode;
|
||||
}
|
||||
}
|
||||
|
||||
void rgb_matrix_update_mode(uint8_t mode, uint8_t speed, bool active) {
|
||||
if (user_config.rgb_matrix_idle_anim) {
|
||||
rgb_matrix_update_dynamic_mode(mode, speed, active);
|
||||
}
|
||||
if (active || !user_config.rgb_matrix_idle_anim) {
|
||||
rgb_matrix_update_current_mode(mode, speed);
|
||||
}
|
||||
}
|
||||
|
||||
void rgb_matrix_set_defaults(void) {
|
||||
rgb_matrix_config.enable = 1;
|
||||
rgb_matrix_sethsv_noeeprom(THEME_HSV);
|
||||
|
||||
user_config.rgb_layer_change = false;
|
||||
user_config.rgb_matrix_idle_anim = true;
|
||||
user_config.rgb_matrix_idle_timeout = 60000;
|
||||
|
||||
rgb_matrix_update_dynamic_mode(RGB_MATRIX_CYCLE_ALL, RGB_MATRIX_ANIMATION_SPEED_SLOWER, false);
|
||||
rgb_matrix_update_dynamic_mode(RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS, RGB_MATRIX_ANIMATION_SPEED_DEFAULT, true);
|
||||
|
||||
eeprom_update_block(&rgb_matrix_config, EECONFIG_RGB_MATRIX, sizeof(rgb_matrix_config));
|
||||
}
|
||||
|
||||
void matrix_scan_rgb(void) {
|
||||
if (user_config.rgb_matrix_idle_anim && rgb_matrix_get_mode() == user_config.rgb_matrix_active_mode && timer_elapsed32(hypno_timer) > user_config.rgb_matrix_idle_timeout) {
|
||||
if (user_config.rgb_layer_change) {
|
||||
rgb_matrix_layer_helper(0, 0, 0, LED_FLAG_UNDERGLOW);
|
||||
}
|
||||
rgb_matrix_update_current_mode(user_config.rgb_matrix_idle_mode, user_config.rgb_matrix_idle_speed);
|
||||
}
|
||||
}
|
||||
|
||||
void matrix_scan_user(void) {
|
||||
static bool has_ran_yet;
|
||||
if (!has_ran_yet) {
|
||||
has_ran_yet = true;
|
||||
startup_user();
|
||||
}
|
||||
matrix_scan_rgb();
|
||||
}
|
||||
|
||||
void eeconfig_init_user(void) {
|
||||
user_config.raw = 0;
|
||||
rgb_matrix_mode_noeeprom(user_config.rgb_matrix_active_mode);
|
||||
keyboard_init();
|
||||
}
|
||||
|
||||
void keyboard_post_init_user(void) {
|
||||
user_config.raw = eeconfig_read_user();
|
||||
rgb_matrix_set_defaults();
|
||||
rgb_matrix_enable_noeeprom();
|
||||
}
|
||||
#endif
|
||||
|
||||
void suspend_power_down_keymap(void) {
|
||||
oled_off();
|
||||
rgb_matrix_set_suspend_state(true);
|
||||
}
|
||||
|
||||
void suspend_wakeup_init_keymap(void) {
|
||||
oled_on();
|
||||
rgb_matrix_set_suspend_state(false);
|
||||
}
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
static uint8_t saved_mods = 0;
|
||||
uint16_t temp_keycode = keycode;
|
||||
|
||||
oled_timer = timer_read32();
|
||||
|
||||
#ifdef RGB_MATRIX_ENABLE
|
||||
if (user_config.rgb_matrix_idle_anim) {
|
||||
hypno_timer = timer_read32();
|
||||
if (rgb_matrix_get_mode() == user_config.rgb_matrix_idle_mode) {
|
||||
rgb_matrix_update_current_mode(user_config.rgb_matrix_active_mode, user_config.rgb_matrix_active_speed);
|
||||
if (!user_config.rgb_layer_change) {
|
||||
rgb_matrix_layer_helper(0, 0, 0, LED_FLAG_UNDERGLOW);
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
// Filter out the actual keycode from MT and LT keys.
|
||||
if ((keycode >= QK_MOD_TAP && keycode <= QK_MOD_TAP_MAX) || (keycode >= QK_LAYER_TAP && keycode <= QK_LAYER_TAP_MAX)) {
|
||||
temp_keycode &= 0xFF;
|
||||
}
|
||||
|
||||
switch (temp_keycode) {
|
||||
case BSP_DEL:
|
||||
if (record->event.pressed) {
|
||||
saved_mods = get_mods() & MOD_MASK_SHIFT;
|
||||
|
||||
if (saved_mods == MOD_MASK_SHIFT) { // Both shifts pressed
|
||||
register_code(KC_DEL);
|
||||
} else if (saved_mods) { // One shift pressed
|
||||
del_mods(saved_mods); // Remove any Shifts present
|
||||
register_code(KC_DEL);
|
||||
add_mods(saved_mods); // Add shifts again
|
||||
} else {
|
||||
register_code(KC_BSPC);
|
||||
}
|
||||
} else {
|
||||
unregister_code(KC_DEL);
|
||||
unregister_code(KC_BSPC);
|
||||
}
|
||||
return false;
|
||||
#ifdef RGB_MATRIX_ENABLE
|
||||
case COLEMAK:
|
||||
if (record->event.pressed) {
|
||||
user_config.rgb_matrix_idle_timeout = 60000;
|
||||
rgb_matrix_update_mode(RGB_MATRIX_CYCLE_ALL, RGB_MATRIX_ANIMATION_SPEED_SLOWER, false);
|
||||
}
|
||||
return true;
|
||||
case GAMING:
|
||||
if (record->event.pressed) {
|
||||
if (!user_config.rgb_layer_change) {
|
||||
user_config.rgb_layer_change = true;
|
||||
}
|
||||
user_config.rgb_matrix_idle_timeout = 10000;
|
||||
rgb_matrix_update_mode(RGB_MATRIX_RAINBOW_PINWHEELS, RGB_MATRIX_ANIMATION_SPEED_SLOW, false);
|
||||
}
|
||||
return true;
|
||||
case RGB_RST:
|
||||
if (record->event.pressed) {
|
||||
rgb_matrix_set_defaults();
|
||||
rgb_matrix_enable();
|
||||
}
|
||||
break;
|
||||
case RGB_UND: // Toggle separate underglow status
|
||||
if (record->event.pressed) {
|
||||
user_config.rgb_layer_change ^= 1;
|
||||
eeconfig_update_user(user_config.raw);
|
||||
if (user_config.rgb_layer_change) {
|
||||
layer_state_set(layer_state); // This is needed to immediately set the layer color (looks better)
|
||||
} else {
|
||||
rgb_matrix_layer_helper(0, 0, 0, LED_FLAG_UNDERGLOW);
|
||||
}
|
||||
}
|
||||
break;
|
||||
case RGB_IDL: // Toggle idle/heatmap animation
|
||||
if (record->event.pressed) {
|
||||
user_config.rgb_matrix_idle_anim ^= 1;
|
||||
if (user_config.rgb_matrix_idle_anim) {
|
||||
rgb_matrix_update_mode(user_config.rgb_matrix_active_mode, user_config.rgb_matrix_active_speed, true);
|
||||
} else {
|
||||
rgb_matrix_update_current_mode(user_config.rgb_matrix_idle_mode, user_config.rgb_matrix_idle_speed);
|
||||
}
|
||||
}
|
||||
break;
|
||||
case RGB_MAP:
|
||||
if (record->event.pressed) {
|
||||
rgb_matrix_update_mode(RGB_MATRIX_TYPING_HEATMAP, rgb_matrix_config.speed, true);
|
||||
}
|
||||
break;
|
||||
case RGB_NXS:
|
||||
if (record->event.pressed) {
|
||||
rgb_matrix_update_mode(RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS, RGB_MATRIX_ANIMATION_SPEED_DEFAULT, true);
|
||||
}
|
||||
break;
|
||||
case RGB_SOL:
|
||||
if (record->event.pressed) {
|
||||
rgb_matrix_update_mode(RGB_MATRIX_SOLID_COLOR, rgb_matrix_config.speed, false);
|
||||
}
|
||||
break;
|
||||
case RGB_CYC:
|
||||
if (record->event.pressed) {
|
||||
rgb_matrix_update_mode(RGB_MATRIX_CYCLE_ALL, RGB_MATRIX_ANIMATION_SPEED_SLOWER, false);
|
||||
}
|
||||
break;
|
||||
case RGB_DUO:
|
||||
if (record->event.pressed) {
|
||||
rgb_matrix_update_mode(RGB_MATRIX_RAINBOW_PINWHEELS, RGB_MATRIX_ANIMATION_SPEED_SLOW, false);
|
||||
}
|
||||
break;
|
||||
case RGB_SCR:
|
||||
if (record->event.pressed) {
|
||||
rgb_matrix_update_mode(RGB_MATRIX_CYCLE_LEFT_RIGHT, RGB_MATRIX_ANIMATION_SPEED_SLOW, false);
|
||||
}
|
||||
break;
|
||||
#endif
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -10,27 +10,29 @@ Many thanks to foostan for the keyboard, all QMK contributors and drashna specif
|
||||
|
||||
### COLEMAKDHM
|
||||
|
||||
Main typing layer. I really love having SHIFT available on thumbs. I am a left thumb space bar person, so I put SPACE there and ENTER on right. I use CTRL key combos lot in my text editor and desktop environment. That's why I have two of them. I also found them to be a great position for the square brackets. (`[` and `]`)
|
||||
Main typing layer. I really love having SHIFT available on thumbs. I am a left thumb space bar person, so I put SPACE there and ENTER on right. I use CTRL key combos lot in my text editor and desktop environment. That's why I have two of them. I also found them to be a great position for the square brackets. (`[` and `]`). These become parenthesis (`(` and `)`) on either of the layers.
|
||||
|
||||
I don't know about you but "lower" and "raise" don't mean that much to me. I named my layers `NUM`, short for numbers and `NAV`, short for navigation. Holding the key will activate the layer for as long as it is held, double tapping it will switch to it. Single tapping it once will switch to main layer again.
|
||||
Holding SHIFT while tapping BACKSPACE will output DEL. Holding both SHIFT keys will output SHIFT+DEL.
|
||||
|
||||
Everything else is pretty standard I'd say.
|
||||
I don't know about you but "lower" and "raise" don't mean that much to me. I named my layers `SYM`, short for symbols and `NAV`, short for navigation. Holding the key will activate the layer for as long as it is held, double tapping it will switch to it. Single tapping it once will switch to main layer again.
|
||||
|
||||
### NUM
|
||||
Holding TAB will access `NUM` layer which features a numpad.
|
||||
|
||||
### SYM
|
||||
|
||||
Includes a number row, the symbols normally on SHIFT and numbers, as well as a numpad under right side homing keys.
|
||||
|
||||
### NAV
|
||||
|
||||
This is where I access arrow keys, page up, down, home, end and mouse control. I also added general tab forward and backward keys. I use these in my browser, terminal and text editor.
|
||||
|
||||
## FN
|
||||
|
||||
Short for function. This gives access to the function keys, as well as rarely used keys on the left side and often used symbols (for me) on the right side. It is accessed by holding TAB.
|
||||
This is where I access arrow keys, page up, down, home, end and F keys. I also added general tab forward and backward keys. Tab close and window close. I primarily use these in my browser, terminal and text editor.
|
||||
|
||||
### UTIL
|
||||
|
||||
Short for utility. This is accessed by pressing both `NUM` and `NAV` at the same time. It has a software `RESET` key, media keys, RGB control and switches main layer between Colemak and a gaming layer.
|
||||
Short for utility. This is accessed by pressing both `SYM` and `NAV` at the same time. It has a software `RESET` key, media keys, RGB control and switches main layer between Colemak and a gaming layer.
|
||||
|
||||
### NUMPAD
|
||||
|
||||
This gives access to a numpad on the right half with some additional symbols I find useful when using the numpad.
|
||||
|
||||
### GAMING
|
||||
|
||||
@@ -38,20 +40,33 @@ Sometimes I switch to type in Discord, Steam, or in game chat, so I think it's m
|
||||
|
||||
I put movement on FRST (would be ESDF on QWERTY), because it lines up more comfortably with the columnar staggered layout of the Corne. It also gives more easy access to all keys on left half.
|
||||
|
||||
Most notable here is that there are no tap and hold differences anymore on left hand side besides the new layer key. This is a different layer than `NUM`.
|
||||
Most notable here is that there are no tap and hold differences anymore on left hand side besides the new layer key. This is a different layer than `SYM`.
|
||||
|
||||
### GAMING_EXT
|
||||
|
||||
This is the gaming extended layer where movement keys remain the same. This means I can keep moving while accessing second layer keys. All other keys are keys on which I can easily rebind something. Besides that it gives me the function keys and an ENTER key which does not change. This is good when a game requires you to hold ENTER.
|
||||
This is the gaming extended layer where movement keys remain the same. This means I can keep moving while accessing second layer keys. All other keys are keys on which I can easily rebind something. Besides that it gives me an ENTER key which does not switch. This is good when a game requires you to hold ENTER.
|
||||
|
||||
## Notes
|
||||
## RGB
|
||||
|
||||
I use MT3 Godspeed caps and thought it would be fun to theme the OLED output towards it. The slave side has the icon and two planets. The left side refers to modifiers by matching the novelty mod legends.
|
||||
I took a big inspiration from Drashna's RGB configuration and tweaked it.
|
||||
|
||||
- `RGB_UND`: Toggles underglow indicators on and off. Each layer has its own color.
|
||||
- `RGB_IDL`: This will enable/disable idle mode. By default, when typing, the `DISABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS` will be used. When the idle timeout has exceeded the secondary animation will be activated, which is `RGB_MATRIX_CYCLE_ALL` by default. When switching to `GAMING` layer the timeout will be reduced and the idle animation changed to `RGB_MATRIX_RAINBOW_PINWHEELS`.
|
||||
When idle mode is enabled, `RGB_MATRIX_TYPING_HEATMAP` and `RGB_MATRIX_MULTISPLASH` will be used for active animation. All others for idle animation. When disabling idle mode, the current idle animation will be activated. Additionally, on idling, the underglow layer indication will be deactivated.
|
||||
- There are no RGB mode cycle keys, but instead several keys to use a specific RGB directly. Each has their own default speed, although this can be changed.
|
||||
|
||||
## Building
|
||||
|
||||
I am using DFU and have to flash both halves individually.
|
||||
`make crkbd/rev1:rpbaptist:dfu`
|
||||
|
||||
Left half: `make crkbd/rev1:rpbaptist:dfu-split-left`
|
||||
## Notes
|
||||
|
||||
Right half: `make crkbd/rev1:rpbaptist:dfu-split-right RGB_MATRIX_SPLIT_RIGHT=yes`
|
||||
I use several OLED slave side images, depending on the keycaps I am using. These also determine the default LED color and underglow.
|
||||
|
||||
`make crkbd/rev1:rpbaptist:dfu THEME=pulse`
|
||||
|
||||
Current supported themes are:
|
||||
|
||||
- godspeed
|
||||
- laser
|
||||
- pulse
|
||||
|
||||
@@ -1,15 +1,16 @@
|
||||
# This enables Link Time Optimization. This can save a good chunk of space (several KB for me), but the macro and function ... functions cause it to error out.
|
||||
#This enables Link Time Optimization.This can save a good chunk of space(several KB for me), but the macro and function... functions cause it to error out.
|
||||
LINK_TIME_OPTIMIZATION_ENABLE = yes
|
||||
|
||||
# Build Options
|
||||
# change to "no" to disable the options, or define them in the Makefile in
|
||||
# the appropriate keymap folder that will get included automatically
|
||||
#Build Options
|
||||
#change to "no" to disable the options, or define them in the Makefile in
|
||||
#the appropriate keymap folder that will get included automatically
|
||||
#
|
||||
MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
|
||||
EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
|
||||
NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
|
||||
# DYNAMIC_MACRO_ENABLE = yes
|
||||
|
||||
RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight.
|
||||
MOUSEKEY_ENABLE = no # Mouse keys(+4700)
|
||||
RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight.
|
||||
BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
|
||||
CONSOLE_ENABLE = no # Console for debug(+400)
|
||||
COMMAND_ENABLE = no # Commands for debug and configuration
|
||||
@@ -22,13 +23,21 @@ SWAP_HANDS_ENABLE = no # Enable one-hand typing
|
||||
|
||||
RGB_MATRIX_ENABLE = WS2812
|
||||
|
||||
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
|
||||
#Do not enable SLEEP_LED_ENABLE.it uses the same timer as BACKLIGHT_ENABLE
|
||||
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
||||
|
||||
BOOTLOADER = qmk-dfu
|
||||
|
||||
OLED_DRIVER_ENABLE = yes
|
||||
|
||||
# ifneq ($(strip $(OLED_DRIVER_ENABLE)), yes)
|
||||
# RGB_MATRIX_SPLIT_RIGHT=yes
|
||||
# endif
|
||||
ifeq ($(strip $(THEME)), godspeed)
|
||||
OPT_DEFS += -DTHEME_GODSPEED
|
||||
endif
|
||||
|
||||
ifeq ($(strip $(THEME)), pulse)
|
||||
OPT_DEFS += -DTHEME_PULSE
|
||||
endif
|
||||
|
||||
ifeq ($(strip $(THEME)), laser)
|
||||
OPT_DEFS += -DTHEME_LASER
|
||||
endif
|
||||
|
||||
@@ -14,7 +14,7 @@ BOOTLOADER = atmel-dfu
|
||||
# Build Options
|
||||
# change yes to no to disable
|
||||
#
|
||||
BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration
|
||||
BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
|
||||
MOUSEKEY_ENABLE = no # Mouse keys
|
||||
EXTRAKEY_ENABLE = yes # Audio control and System control
|
||||
CONSOLE_ENABLE = no # Console for debug
|
||||
|
||||
@@ -6,8 +6,6 @@
|
||||
#include <stdbool.h>
|
||||
#include "i2c.h"
|
||||
|
||||
#ifdef USE_I2C
|
||||
|
||||
// Limits the amount of we wait for any one i2c transaction.
|
||||
// Since were running SCL line 100kHz (=> 10μs/bit), and each transactions is
|
||||
// 9 bits, a single transaction will take around 90μs to complete.
|
||||
@@ -159,4 +157,3 @@ ISR(TWI_vect) {
|
||||
// Reset everything, so we are ready for the next TWI interrupt
|
||||
TWCR |= (1<<TWIE) | (1<<TWINT) | (ack<<TWEA) | (1<<TWEN);
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -30,7 +30,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#define TAPPING_TERM 100
|
||||
|
||||
/* Use I2C or Serial */
|
||||
#define USE_I2C
|
||||
#define USE_SERIAL
|
||||
//#define USE_MATRIX_I2C
|
||||
|
||||
@@ -60,6 +59,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3, B2 }
|
||||
// #define MATRIX_COL_PINS { B2, B3, B1, F7, F6, F5, F4 } //uncomment this line and comment line above if you need to reverse left-to-right key order
|
||||
|
||||
/* COL2ROW, ROW2COL*/
|
||||
#define DIODE_DIRECTION COL2ROW
|
||||
|
||||
/* define if matrix has ghost */
|
||||
//#define MATRIX_HAS_GHOST
|
||||
|
||||
|
||||
@@ -120,6 +120,13 @@ $ make HELIX=no_ani helix/pico/back:default # with backlight without animation
|
||||
$ make helix/pico/under:default # with underglow
|
||||
```
|
||||
|
||||
build (experimental use of split_common)
|
||||
```
|
||||
$ make helix/pico/sc:default
|
||||
$ make helix/pico/sc/back:default
|
||||
$ make helix/pico/sc/under:default
|
||||
```
|
||||
|
||||
flash to keyboard
|
||||
```
|
||||
$ make helix/pico:default:flash
|
||||
|
||||
@@ -10,7 +10,7 @@ define HELIX_CUSTOMISE_MSG
|
||||
$(info - OLED_ENABLE = $(OLED_ENABLE))
|
||||
$(info - LED_BACK_ENABLE = $(LED_BACK_ENABLE))
|
||||
$(info - LED_UNDERGLOW_ENABLE = $(LED_UNDERGLOW_ENABLE))
|
||||
$(info - LED_ANIMATION = $(LED_ANIMATIONS))
|
||||
$(info - LED_ANIMATIONS = $(LED_ANIMATIONS))
|
||||
$(info - IOS_DEVICE_ENABLE = $(IOS_DEVICE_ENABLE))
|
||||
$(info )
|
||||
endef
|
||||
@@ -43,12 +43,34 @@ endef
|
||||
ifeq ($(findstring ios,$(HELIX)), ios)
|
||||
IOS_DEVICE_ENABLE = yes
|
||||
endif
|
||||
ifeq ($(findstring scan,$(HELIX)), scan)
|
||||
# use DEBUG_MATRIX_SCAN_RATE
|
||||
# see docs/newbs_testing_debugging.md
|
||||
OPT_DEFS += -DDEBUG_MATRIX_SCAN_RATE
|
||||
CONSOLE_ENABLE = yes
|
||||
SHOW_VERBOSE_INFO = yes
|
||||
endif
|
||||
ifeq ($(findstring verbose,$(HELIX)), verbose)
|
||||
SHOW_VERBOSE_INFO = yes
|
||||
SHOW_VERBOSE_INFO = yes
|
||||
endif
|
||||
SHOW_HELIX_OPTIONS = yes
|
||||
endif
|
||||
|
||||
ifneq ($(strip $(SPLIT_KEYBOARD)), yes)
|
||||
SRC += local_drivers/serial.c
|
||||
KEYBOARD_PATHS += $(HELIX_TOP_DIR)/local_drivers
|
||||
|
||||
# A workaround until #7089 is merged.
|
||||
# serial.c must not be compiled with the -lto option.
|
||||
# The current LIB_SRC has a side effect with the -fno-lto option, so use it.
|
||||
LIB_SRC += local_drivers/serial.c
|
||||
|
||||
CUSTOM_MATRIX = yes
|
||||
|
||||
SRC += pico/matrix.c
|
||||
SRC += pico/split_util.c
|
||||
endif
|
||||
|
||||
########
|
||||
# convert Helix-specific options (that represent combinations of standard options)
|
||||
# into QMK standard options.
|
||||
@@ -73,11 +95,13 @@ ifeq ($(strip $(LED_ANIMATIONS)), yes)
|
||||
endif
|
||||
|
||||
ifeq ($(strip $(OLED_ENABLE)), yes)
|
||||
SRC += local_drivers/i2c.c
|
||||
SRC += local_drivers/ssd1306.c
|
||||
KEYBOARD_PATHS += $(HELIX_TOP_DIR)/local_drivers
|
||||
OPT_DEFS += -DOLED_ENABLE
|
||||
endif
|
||||
|
||||
ifeq ($(strip $(LOCAL_GLCDFONT)), yes)
|
||||
OPT_DEFS += -DLOCAL_GLCDFONT
|
||||
ifeq ($(strip $(LOCAL_GLCDFONT)), yes)
|
||||
OPT_DEFS += -DLOCAL_GLCDFONT
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(strip $(AUDIO_ENABLE)),yes)
|
||||
@@ -92,8 +116,10 @@ endif
|
||||
ifneq ($(strip $(SHOW_HELIX_OPTIONS)),)
|
||||
$(eval $(call HELIX_CUSTOMISE_MSG))
|
||||
ifneq ($(strip $(SHOW_VERBOSE_INFO)),)
|
||||
$(info -- RGBLIGHT_ENABLE = $(RGBLIGHT_ENABLE))
|
||||
$(info -- OPT_DEFS = $(OPT_DEFS))
|
||||
$(info -- RGBLIGHT_ENABLE = $(RGBLIGHT_ENABLE))
|
||||
$(info -- OLED_DRIVER_ENABLE = $(OLED_DRIVER_ENABLE))
|
||||
$(info -- CONSOLE_ENABLE = $(CONSOLE_ENABLE))
|
||||
$(info -- OPT_DEFS = $(OPT_DEFS))
|
||||
$(info -- LINK_TIME_OPTIMIZATION_ENABLE = $(LINK_TIME_OPTIMIZATION_ENABLE))
|
||||
$(info )
|
||||
endif
|
||||
|
||||
@@ -46,7 +46,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
static uint8_t debouncing = DEBOUNCE;
|
||||
static const int ROWS_PER_HAND = MATRIX_ROWS/2;
|
||||
static uint8_t error_count = 0;
|
||||
uint8_t is_master = 0 ;
|
||||
|
||||
static const uint8_t row_pins[MATRIX_ROWS] = MATRIX_ROW_PINS;
|
||||
static const uint8_t col_pins[MATRIX_COLS] = MATRIX_COL_PINS;
|
||||
@@ -94,9 +93,8 @@ uint8_t matrix_cols(void)
|
||||
|
||||
void matrix_init(void)
|
||||
{
|
||||
debug_enable = true;
|
||||
debug_matrix = true;
|
||||
debug_mouse = true;
|
||||
split_keyboard_setup();
|
||||
|
||||
// initialize row and col
|
||||
unselect_rows();
|
||||
init_cols();
|
||||
@@ -111,8 +109,6 @@ void matrix_init(void)
|
||||
matrix_debouncing[i] = 0;
|
||||
}
|
||||
|
||||
is_master = has_usb();
|
||||
|
||||
matrix_init_quantum();
|
||||
}
|
||||
|
||||
@@ -197,7 +193,7 @@ int serial_transaction(void) {
|
||||
|
||||
uint8_t matrix_scan(void)
|
||||
{
|
||||
if (is_master) {
|
||||
if (is_helix_master()) {
|
||||
matrix_master_scan();
|
||||
}else{
|
||||
matrix_slave_scan();
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
#include "helix.h"
|
||||
|
||||
// Each keymap.c should use is_keyboard_master() instead of 'is_master'.
|
||||
// But keep 'is_master' for a while for backwards compatibility
|
||||
// for the old keymap.c.
|
||||
uint8_t is_master = false;
|
||||
|
||||
#ifdef SSD1306OLED
|
||||
#include "ssd1306.h"
|
||||
@@ -15,6 +19,23 @@ void led_set_kb(uint8_t usb_led) {
|
||||
#endif
|
||||
|
||||
void matrix_init_kb(void) {
|
||||
// Each keymap.c should use is_keyboard_master() instead of is_master.
|
||||
// But keep is_master for a while for backwards compatibility
|
||||
// for the old keymap.c.
|
||||
is_master = is_keyboard_master();
|
||||
|
||||
matrix_init_user();
|
||||
};
|
||||
|
||||
void keyboard_post_init_kb(void) {
|
||||
#if defined(DEBUG_MATRIX_SCAN_RATE)
|
||||
debug_enable = true;
|
||||
#endif
|
||||
keyboard_post_init_user();
|
||||
}
|
||||
|
||||
#if defined(SPLIT_KEYBOARD) && defined(SSD1306OLED)
|
||||
void matrix_slave_scan_user(void) {
|
||||
matrix_scan_user();
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -4,18 +4,16 @@
|
||||
|
||||
#include "quantum.h"
|
||||
|
||||
#ifdef RGBLIGHT_ENABLE
|
||||
//rgb led driver
|
||||
#include "ws2812.h"
|
||||
#ifndef SPLIT_KEYBOARD
|
||||
extern bool is_helix_master(void);
|
||||
#define is_keyboard_master() is_helix_master()
|
||||
#endif
|
||||
|
||||
#ifdef USE_I2C
|
||||
#include <stddef.h>
|
||||
#ifdef __AVR__
|
||||
#include <avr/io.h>
|
||||
#include <avr/interrupt.h>
|
||||
#endif
|
||||
#endif
|
||||
// Each keymap.c should use is_keyboard_master() instead of 'is_master', 'has_usb()'.
|
||||
// But keep 'is_master' for a while for backwards compatibility
|
||||
// for the old keymap.c.
|
||||
extern uint8_t is_master; // 'is_master' will be obsolete, it is recommended to use 'is_keyboard_master ()' instead.
|
||||
#define has_usb() is_keyboard_master()
|
||||
|
||||
#ifndef FLIP_HALF
|
||||
// Standard Keymap
|
||||
|
||||
7
keyboards/helix/pico/post_config.h
Normal file
7
keyboards/helix/pico/post_config.h
Normal file
@@ -0,0 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#if defined(SPLIT_KEYBOARD) /* if use split_common */
|
||||
# if defined(RGBLIGHT_ENABLE) && !defined(RGBLIGHT_SPLIT)
|
||||
# define RGBLIGHT_SPLIT /* helix hardware need this */
|
||||
# endif
|
||||
#endif
|
||||
@@ -1,20 +1,5 @@
|
||||
KEYBOARD_LOCAL_FEATURES_MK := $(dir $(lastword $(MAKEFILE_LIST)))local_features.mk
|
||||
|
||||
SRC += local_drivers/i2c.c
|
||||
SRC += local_drivers/serial.c
|
||||
SRC += local_drivers/ssd1306.c
|
||||
KEYBOARD_PATHS += $(HELIX_TOP_DIR)/local_drivers
|
||||
|
||||
# A workaround until #7089 is merged.
|
||||
# serial.c must not be compiled with the -lto option.
|
||||
# The current LIB_SRC has a side effect with the -fno-lto option, so use it.
|
||||
LIB_SRC += local_drivers/serial.c
|
||||
|
||||
CUSTOM_MATRIX = yes
|
||||
|
||||
SRC += pico/matrix.c
|
||||
SRC += pico/split_util.c
|
||||
|
||||
# Helix Spacific Build Options default values
|
||||
OLED_ENABLE = no # OLED_ENABLE
|
||||
LOCAL_GLCDFONT = no # use each keymaps "helixfont.h" insted of "common/glcdfont.c"
|
||||
|
||||
1
keyboards/helix/pico/sc/back/rules.mk
Normal file
1
keyboards/helix/pico/sc/back/rules.mk
Normal file
@@ -0,0 +1 @@
|
||||
LED_BACK_ENABLE = yes
|
||||
1
keyboards/helix/pico/sc/rules.mk
Normal file
1
keyboards/helix/pico/sc/rules.mk
Normal file
@@ -0,0 +1 @@
|
||||
SPLIT_KEYBOARD = yes
|
||||
1
keyboards/helix/pico/sc/under/rules.mk
Normal file
1
keyboards/helix/pico/sc/under/rules.mk
Normal file
@@ -0,0 +1 @@
|
||||
LED_UNDERGLOW_ENABLE = yes
|
||||
@@ -7,6 +7,7 @@
|
||||
#include "split_util.h"
|
||||
#include "matrix.h"
|
||||
#include "keyboard.h"
|
||||
#include "wait.h"
|
||||
|
||||
#ifdef USE_MATRIX_I2C
|
||||
# include "i2c.h"
|
||||
@@ -14,21 +15,65 @@
|
||||
# include "serial.h"
|
||||
#endif
|
||||
|
||||
#ifdef EE_HANDS
|
||||
# include "eeconfig.h"
|
||||
#endif
|
||||
|
||||
#ifndef SPLIT_USB_TIMEOUT
|
||||
#define SPLIT_USB_TIMEOUT 2500
|
||||
#endif
|
||||
|
||||
volatile bool isLeftHand = true;
|
||||
|
||||
static void setup_handedness(void) {
|
||||
#ifdef EE_HANDS
|
||||
isLeftHand = eeprom_read_byte(EECONFIG_HANDEDNESS);
|
||||
#else
|
||||
// I2C_MASTER_RIGHT is deprecated, use MASTER_RIGHT instead, since this works for both serial and i2c
|
||||
#if defined(I2C_MASTER_RIGHT) || defined(MASTER_RIGHT)
|
||||
isLeftHand = !has_usb();
|
||||
#else
|
||||
isLeftHand = has_usb();
|
||||
#endif
|
||||
#endif
|
||||
bool waitForUsb(void) {
|
||||
for (uint8_t i = 0; i < (SPLIT_USB_TIMEOUT / 100); i++) {
|
||||
// This will return true of a USB connection has been established
|
||||
if (UDADDR & _BV(ADDEN)) {
|
||||
return true;
|
||||
}
|
||||
wait_ms(100);
|
||||
}
|
||||
|
||||
// Avoid NO_USB_STARTUP_CHECK - Disable USB as the previous checks seem to enable it somehow
|
||||
(USBCON &= ~(_BV(USBE) | _BV(OTGPADE)));
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool is_keyboard_left(void) {
|
||||
#if defined(SPLIT_HAND_PIN)
|
||||
// Test pin SPLIT_HAND_PIN for High/Low, if low it's right hand
|
||||
setPinInput(SPLIT_HAND_PIN);
|
||||
return readPin(SPLIT_HAND_PIN);
|
||||
#elif defined(EE_HANDS)
|
||||
return eeconfig_read_handedness();
|
||||
#elif defined(MASTER_RIGHT)
|
||||
return !is_helix_master();
|
||||
#endif
|
||||
|
||||
return is_helix_master();
|
||||
}
|
||||
|
||||
bool is_helix_master(void) {
|
||||
static enum { UNKNOWN, MASTER, SLAVE } usbstate = UNKNOWN;
|
||||
|
||||
// only check once, as this is called often
|
||||
if (usbstate == UNKNOWN) {
|
||||
#if defined(SPLIT_USB_DETECT)
|
||||
usbstate = waitForUsb() ? MASTER : SLAVE;
|
||||
#elif defined(__AVR__)
|
||||
USBCON |= (1 << OTGPADE); // enables VBUS pad
|
||||
wait_us(5);
|
||||
|
||||
usbstate = (USBSTA & (1 << VBUS)) ? MASTER : SLAVE; // checks state of VBUS
|
||||
#else
|
||||
usbstate = MASTER;
|
||||
#endif
|
||||
}
|
||||
|
||||
return (usbstate == MASTER);
|
||||
}
|
||||
|
||||
static void keyboard_master_setup(void) {
|
||||
|
||||
#ifdef USE_MATRIX_I2C
|
||||
@@ -47,24 +92,13 @@ static void keyboard_slave_setup(void) {
|
||||
#endif
|
||||
}
|
||||
|
||||
bool has_usb(void) {
|
||||
USBCON |= (1 << OTGPADE); //enables VBUS pad
|
||||
_delay_us(5);
|
||||
return (USBSTA & (1<<VBUS)); //checks state of VBUS
|
||||
}
|
||||
|
||||
void split_keyboard_setup(void) {
|
||||
setup_handedness();
|
||||
isLeftHand = is_keyboard_left();
|
||||
|
||||
if (has_usb()) {
|
||||
if (is_helix_master()) {
|
||||
keyboard_master_setup();
|
||||
} else {
|
||||
keyboard_slave_setup();
|
||||
}
|
||||
sei();
|
||||
}
|
||||
|
||||
// this code runs before the usb and keyboard is initialized
|
||||
void matrix_setup(void) {
|
||||
split_keyboard_setup();
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ extern volatile bool isLeftHand;
|
||||
void matrix_slave_scan(void);
|
||||
|
||||
void split_keyboard_setup(void);
|
||||
bool has_usb(void);
|
||||
bool is_helix_master(void);
|
||||
|
||||
void matrix_master_OLED_init (void);
|
||||
|
||||
|
||||
@@ -9,8 +9,8 @@ Keyboard Maintainer: [Makoto Kurauchi](https://github.com/MakotoKurauchi/) [@plu
|
||||
Hardware Supported: Helix PCB Alpha, Beta, Pro Micro
|
||||
Hardware Availability: [PCB & Case Data](https://github.com/MakotoKurauchi/helix), [Yushakobo Shop](https://yushakobo.jp/shop/), [Little Keyboards](https://littlekeyboards.com/collections/helix)
|
||||
|
||||
Make example for this keyboard (after setting up your build environment):
|
||||
|
||||
make helix:default
|
||||
## How to build
|
||||
* [Helix how to Customize and Compile](rev2/keymaps/default/readme.md#customize)
|
||||
* [HelixPico how to Customize and Compile](pico/keymaps/default/readme.md#customize)
|
||||
|
||||
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.
|
||||
|
||||
@@ -30,7 +30,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#define TAPPING_TERM 100
|
||||
|
||||
/* Use I2C or Serial */
|
||||
#define USE_I2C
|
||||
#define USE_SERIAL
|
||||
//#define USE_MATRIX_I2C
|
||||
|
||||
@@ -68,6 +67,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3, B2 }
|
||||
// #define MATRIX_COL_PINS { B2, B3, B1, F7, F6, F5, F4 } //uncomment this line and comment line above if you need to reverse left-to-right key order
|
||||
|
||||
/* COL2ROW, ROW2COL*/
|
||||
#define DIODE_DIRECTION COL2ROW
|
||||
|
||||
/* define if matrix has ghost */
|
||||
//#define MATRIX_HAS_GHOST
|
||||
|
||||
|
||||
@@ -137,6 +137,16 @@ $ make helix/rev2/oled/back:default # with oled and backlight
|
||||
$ make helix/rev2/oled/under:default # with oled and underglow
|
||||
```
|
||||
|
||||
build (experimental use of split_common)
|
||||
```
|
||||
$ make helix/rev2/sc:default
|
||||
$ make helix/rev2/sc/back:default
|
||||
$ make helix/rev2/sc/under:default
|
||||
$ make helix/rev2/sc/oled:default
|
||||
$ make helix/rev2/sc/oledback:default
|
||||
$ make helix/rev2/sc/oledunder:default
|
||||
```
|
||||
|
||||
flash to keyboard
|
||||
```
|
||||
$ make helix:default:flash
|
||||
|
||||
@@ -9,3 +9,5 @@ OLED_DRIVER_ENABLE = yes
|
||||
OPT_DEFS += -DOLED_FONT_H=\"common/glcdfont.c\"
|
||||
# Xulkal specific oled define
|
||||
OPT_DEFS += -DOLED_90ROTATION
|
||||
|
||||
SPLIT_KEYBOARD = yes
|
||||
|
||||
@@ -10,7 +10,7 @@ define HELIX_CUSTOMISE_MSG
|
||||
$(info - OLED_ENABLE = $(OLED_ENABLE))
|
||||
$(info - LED_BACK_ENABLE = $(LED_BACK_ENABLE))
|
||||
$(info - LED_UNDERGLOW_ENABLE = $(LED_UNDERGLOW_ENABLE))
|
||||
$(info - LED_ANIMATION = $(LED_ANIMATIONS))
|
||||
$(info - LED_ANIMATIONS = $(LED_ANIMATIONS))
|
||||
$(info - IOS_DEVICE_ENABLE = $(IOS_DEVICE_ENABLE))
|
||||
$(info )
|
||||
endef
|
||||
@@ -43,12 +43,35 @@ endef
|
||||
ifeq ($(findstring ios,$(HELIX)), ios)
|
||||
IOS_DEVICE_ENABLE = yes
|
||||
endif
|
||||
ifeq ($(findstring scan,$(HELIX)), scan)
|
||||
# use DEBUG_MATRIX_SCAN_RATE
|
||||
# see docs/newbs_testing_debugging.md
|
||||
OPT_DEFS += -DDEBUG_MATRIX_SCAN_RATE
|
||||
CONSOLE_ENABLE = yes
|
||||
SHOW_VERBOSE_INFO = yes
|
||||
endif
|
||||
ifeq ($(findstring verbose,$(HELIX)), verbose)
|
||||
SHOW_VERBOSE_INFO = yes
|
||||
SHOW_VERBOSE_INFO = yes
|
||||
endif
|
||||
SHOW_HELIX_OPTIONS = yes
|
||||
endif
|
||||
|
||||
ifneq ($(strip $(SPLIT_KEYBOARD)), yes)
|
||||
SRC += local_drivers/serial.c
|
||||
KEYBOARD_PATHS += $(HELIX_TOP_DIR)/local_drivers
|
||||
|
||||
# A workaround until #7089 is merged.
|
||||
# serial.c must not be compiled with the -lto option.
|
||||
# The current LIB_SRC has a side effect with the -fno-lto option, so use it.
|
||||
LIB_SRC += local_drivers/serial.c
|
||||
|
||||
CUSTOM_MATRIX = yes
|
||||
|
||||
SRC += rev2/matrix.c
|
||||
SRC += rev2/split_util.c
|
||||
SRC += rev2/split_scomm.c
|
||||
endif
|
||||
|
||||
########
|
||||
# convert Helix-specific options (that represent combinations of standard options)
|
||||
# into QMK standard options.
|
||||
@@ -80,18 +103,22 @@ ifeq ($(strip $(LED_ANIMATIONS)), yes)
|
||||
endif
|
||||
|
||||
ifeq ($(strip $(OLED_ENABLE)), yes)
|
||||
SRC += local_drivers/i2c.c
|
||||
SRC += local_drivers/ssd1306.c
|
||||
KEYBOARD_PATHS += $(HELIX_TOP_DIR)/local_drivers
|
||||
OPT_DEFS += -DOLED_ENABLE
|
||||
endif
|
||||
|
||||
ifeq ($(strip $(LOCAL_GLCDFONT)), yes)
|
||||
OPT_DEFS += -DLOCAL_GLCDFONT
|
||||
ifeq ($(strip $(LOCAL_GLCDFONT)), yes)
|
||||
OPT_DEFS += -DLOCAL_GLCDFONT
|
||||
endif
|
||||
endif
|
||||
|
||||
ifneq ($(strip $(SHOW_HELIX_OPTIONS)),)
|
||||
$(eval $(call HELIX_CUSTOMISE_MSG))
|
||||
ifneq ($(strip $(SHOW_VERBOSE_INFO)),)
|
||||
$(info -- RGBLIGHT_ENABLE = $(RGBLIGHT_ENABLE))
|
||||
$(info -- OPT_DEFS = $(OPT_DEFS))
|
||||
$(info -- RGBLIGHT_ENABLE = $(RGBLIGHT_ENABLE))
|
||||
$(info -- OLED_DRIVER_ENABLE = $(OLED_DRIVER_ENABLE))
|
||||
$(info -- CONSOLE_ENABLE = $(CONSOLE_ENABLE))
|
||||
$(info -- OPT_DEFS = $(OPT_DEFS))
|
||||
$(info -- LINK_TIME_OPTIMIZATION_ENABLE = $(LINK_TIME_OPTIMIZATION_ENABLE))
|
||||
$(info )
|
||||
endif
|
||||
|
||||
@@ -47,7 +47,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
static uint8_t debouncing = DEBOUNCE;
|
||||
static const int ROWS_PER_HAND = MATRIX_ROWS/2;
|
||||
static uint8_t error_count = 0;
|
||||
uint8_t is_master = 0 ;
|
||||
|
||||
static const uint8_t row_pins[MATRIX_ROWS] = MATRIX_ROW_PINS;
|
||||
static const uint8_t col_pins[MATRIX_COLS] = MATRIX_COL_PINS;
|
||||
@@ -111,8 +110,6 @@ void matrix_init(void)
|
||||
matrix_debouncing[i] = 0;
|
||||
}
|
||||
|
||||
is_master = has_usb();
|
||||
|
||||
matrix_init_quantum();
|
||||
}
|
||||
|
||||
@@ -200,7 +197,7 @@ int serial_transaction(int master_changed) {
|
||||
|
||||
uint8_t matrix_scan(void)
|
||||
{
|
||||
if (is_master) {
|
||||
if (is_helix_master()) {
|
||||
matrix_master_scan();
|
||||
}else{
|
||||
matrix_slave_scan();
|
||||
|
||||
7
keyboards/helix/rev2/post_config.h
Normal file
7
keyboards/helix/rev2/post_config.h
Normal file
@@ -0,0 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#if defined(SPLIT_KEYBOARD) /* if use split_common */
|
||||
# if defined(RGBLIGHT_ENABLE) && !defined(RGBLIGHT_SPLIT)
|
||||
# define RGBLIGHT_SPLIT /* helix hardware need this */
|
||||
# endif
|
||||
#endif
|
||||
@@ -1,5 +1,9 @@
|
||||
#include "helix.h"
|
||||
|
||||
// Each keymap.c should use is_keyboard_master() instead of 'is_master'.
|
||||
// But keep 'is_master' for a while for backwards compatibility
|
||||
// for the old keymap.c.
|
||||
uint8_t is_master = false;
|
||||
|
||||
#ifdef SSD1306OLED
|
||||
#include "ssd1306.h"
|
||||
@@ -15,7 +19,23 @@ void led_set_kb(uint8_t usb_led) {
|
||||
#endif
|
||||
|
||||
void matrix_init_kb(void) {
|
||||
// Each keymap.c should use is_keyboard_master() instead of is_master.
|
||||
// But keep is_master for a while for backwards compatibility
|
||||
// for the old keymap.c.
|
||||
is_master = is_keyboard_master();
|
||||
|
||||
matrix_init_user();
|
||||
};
|
||||
|
||||
void keyboard_post_init_kb(void) {
|
||||
#if defined(DEBUG_MATRIX_SCAN_RATE)
|
||||
debug_enable = true;
|
||||
#endif
|
||||
keyboard_post_init_user();
|
||||
}
|
||||
|
||||
#if defined(SPLIT_KEYBOARD) && defined(SSD1306OLED)
|
||||
void matrix_slave_scan_user(void) {
|
||||
matrix_scan_user();
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -4,18 +4,16 @@
|
||||
|
||||
#include "quantum.h"
|
||||
|
||||
#ifdef RGBLIGHT_ENABLE
|
||||
//rgb led driver
|
||||
#include "ws2812.h"
|
||||
#ifndef SPLIT_KEYBOARD
|
||||
extern bool is_helix_master(void);
|
||||
#define is_keyboard_master() is_helix_master()
|
||||
#endif
|
||||
|
||||
#ifdef USE_I2C
|
||||
#include <stddef.h>
|
||||
#ifdef __AVR__
|
||||
#include <avr/io.h>
|
||||
#include <avr/interrupt.h>
|
||||
#endif
|
||||
#endif
|
||||
// Each keymap.c should use is_keyboard_master() instead of 'is_master', 'has_usb()'.
|
||||
// But keep 'is_master' for a while for backwards compatibility
|
||||
// for the old keymap.c.
|
||||
extern uint8_t is_master; // 'is_master' will be obsolete, it is recommended to use 'is_keyboard_master ()' instead.
|
||||
#define has_usb() is_keyboard_master()
|
||||
|
||||
#if MATRIX_ROWS == 8 // HELIX_ROWS == 4
|
||||
#ifndef FLIP_HALF
|
||||
|
||||
@@ -1,21 +1,5 @@
|
||||
KEYBOARD_LOCAL_FEATURES_MK := $(dir $(lastword $(MAKEFILE_LIST)))local_features.mk
|
||||
|
||||
SRC += local_drivers/i2c.c
|
||||
SRC += local_drivers/serial.c
|
||||
SRC += local_drivers/ssd1306.c
|
||||
KEYBOARD_PATHS += $(HELIX_TOP_DIR)/local_drivers
|
||||
|
||||
# A workaround until #7089 is merged.
|
||||
# serial.c must not be compiled with the -lto option.
|
||||
# The current LIB_SRC has a side effect with the -fno-lto option, so use it.
|
||||
LIB_SRC += local_drivers/serial.c
|
||||
|
||||
CUSTOM_MATRIX = yes
|
||||
|
||||
SRC += rev2/matrix.c
|
||||
SRC += rev2/split_util.c
|
||||
SRC += rev2/split_scomm.c
|
||||
|
||||
# Helix Spacific Build Options default values
|
||||
HELIX_ROWS = 5 # Helix Rows is 4 or 5
|
||||
OLED_ENABLE = no # OLED_ENABLE
|
||||
|
||||
1
keyboards/helix/rev2/sc/back/rules.mk
Normal file
1
keyboards/helix/rev2/sc/back/rules.mk
Normal file
@@ -0,0 +1 @@
|
||||
LED_BACK_ENABLE = yes
|
||||
1
keyboards/helix/rev2/sc/oled/rules.mk
Normal file
1
keyboards/helix/rev2/sc/oled/rules.mk
Normal file
@@ -0,0 +1 @@
|
||||
OLED_ENABLE = yes
|
||||
2
keyboards/helix/rev2/sc/oledback/rules.mk
Normal file
2
keyboards/helix/rev2/sc/oledback/rules.mk
Normal file
@@ -0,0 +1,2 @@
|
||||
OLED_ENABLE = yes
|
||||
LED_BACK_ENABLE = yes
|
||||
2
keyboards/helix/rev2/sc/oledunder/rules.mk
Normal file
2
keyboards/helix/rev2/sc/oledunder/rules.mk
Normal file
@@ -0,0 +1,2 @@
|
||||
OLED_ENABLE = yes
|
||||
LED_UNDERGLOW_ENABLE = yes
|
||||
1
keyboards/helix/rev2/sc/rules.mk
Normal file
1
keyboards/helix/rev2/sc/rules.mk
Normal file
@@ -0,0 +1 @@
|
||||
SPLIT_KEYBOARD = yes
|
||||
1
keyboards/helix/rev2/sc/under/rules.mk
Normal file
1
keyboards/helix/rev2/sc/under/rules.mk
Normal file
@@ -0,0 +1 @@
|
||||
LED_UNDERGLOW_ENABLE = yes
|
||||
@@ -45,7 +45,7 @@ bool waitForUsb(void) {
|
||||
}
|
||||
|
||||
|
||||
__attribute__((weak)) bool is_keyboard_left(void) {
|
||||
bool is_keyboard_left(void) {
|
||||
#if defined(SPLIT_HAND_PIN)
|
||||
// Test pin SPLIT_HAND_PIN for High/Low, if low it's right hand
|
||||
setPinInput(SPLIT_HAND_PIN);
|
||||
@@ -53,13 +53,13 @@ __attribute__((weak)) bool is_keyboard_left(void) {
|
||||
#elif defined(EE_HANDS)
|
||||
return eeconfig_read_handedness();
|
||||
#elif defined(MASTER_RIGHT)
|
||||
return !has_usb();
|
||||
return !is_helix_master();
|
||||
#endif
|
||||
|
||||
return has_usb();
|
||||
return is_helix_master();
|
||||
}
|
||||
|
||||
__attribute__((weak)) bool has_usb(void) {
|
||||
bool is_helix_master(void) {
|
||||
static enum { UNKNOWN, MASTER, SLAVE } usbstate = UNKNOWN;
|
||||
|
||||
// only check once, as this is called often
|
||||
@@ -100,11 +100,10 @@ static void keyboard_slave_setup(void) {
|
||||
void split_keyboard_setup(void) {
|
||||
isLeftHand = is_keyboard_left();
|
||||
|
||||
if (has_usb()) {
|
||||
if (is_helix_master()) {
|
||||
keyboard_master_setup();
|
||||
} else {
|
||||
keyboard_slave_setup();
|
||||
}
|
||||
sei();
|
||||
}
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ extern volatile bool isLeftHand;
|
||||
void matrix_slave_scan(void);
|
||||
|
||||
void split_keyboard_setup(void);
|
||||
bool has_usb(void);
|
||||
bool is_helix_master(void);
|
||||
|
||||
void matrix_master_OLED_init (void);
|
||||
|
||||
|
||||
17
keyboards/hhkb/keymaps/brett/config.h
Normal file
17
keyboards/hhkb/keymaps/brett/config.h
Normal file
@@ -0,0 +1,17 @@
|
||||
#pragma once
|
||||
|
||||
// Define mousekey settings
|
||||
#define MOUSEKEY_DELAY 0
|
||||
#define MOUSEKEY_INTERVAL 20
|
||||
#define MOUSEKEY_MAX_SPEED 2
|
||||
#define MOUSEKEY_TIME_TO_MAX 5
|
||||
#define MOUSEKEY_WHEEL_DELAY 0
|
||||
|
||||
#define LSPO_KEY KC_9
|
||||
#define RSPC_KEY KC_0
|
||||
#define LSPO_MOD KC_LSHIFT
|
||||
#define RSPC_MOD KC_RSHIFT
|
||||
|
||||
// This makes it possible to do rolling combos (zx) with keys that convert to other keys on hold (z becomes ctrl when
|
||||
// you hold it, and when this option isn't enabled, z rapidly followed by x actually sends Ctrl-x. That's bad.)
|
||||
#define IGNORE_MOD_TAP_INTERRUPT
|
||||
119
keyboards/hhkb/keymaps/brett/keymap.c
Normal file
119
keyboards/hhkb/keymaps/brett/keymap.c
Normal file
@@ -0,0 +1,119 @@
|
||||
/* -*- eval: (turn-on-orgtbl); -*-
|
||||
* Brettm12345 HHKB Layout
|
||||
*/
|
||||
#include QMK_KEYBOARD_H
|
||||
#include "brett.h"
|
||||
|
||||
enum layers {
|
||||
BASE = 0,
|
||||
HHKB = 1,
|
||||
PROG = 2,
|
||||
MOUSE = 3
|
||||
};
|
||||
|
||||
// Tap for tab hold for MOUSE
|
||||
#define TAB_MOUSE LT(MOUSE, KC_TAB)
|
||||
|
||||
// Tap for space hold for PROG
|
||||
#define SPACE_PROG LT(PROG, KC_SPC)
|
||||
|
||||
// Tap for ESC hold for CTRL
|
||||
#define CTL_ESC CTL_T(KC_ESC)
|
||||
|
||||
// Tab for ; hold for PROG
|
||||
#define PROG_SCLN LT(PROG, KC_SCLN)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/* BASE Level: Default Layer
|
||||
|---------+---+---+---+---+---+---+---+---+---+---+--------+--------+-----------+---|
|
||||
| Esc | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - | = | \ | ` |
|
||||
|---------+---+---+---+---+---+---+---+---+---+---+--------+--------+-----------+---|
|
||||
| Tab | Q | W | E | R | T | Y | U | I | O | P | [ | ] | Backspace | * |
|
||||
|---------+---+---+---+---+---+---+---+---+---+---+--------+--------+-----------+---|
|
||||
| Control | A | S | D | F | G | H | J | K | L | ; | ' | Return | ****** | * |
|
||||
|---------+---+---+---+---+---+---+---+---+---+---+--------+--------+-----------+---|
|
||||
| LShift | Z | X | C | V | B | N | M | , | . | / | RShift | HHKB | ****** | * |
|
||||
|---------+---+---+---+---+---+---+---+---+---+---+--------+--------+-----------+---|
|
||||
|
||||
|------+------+----------------------------+------+------|
|
||||
| LAlt | LGUI | ******* Space/Prog ******* | RGUI | RAlt |
|
||||
|------+------+----------------------------+------+------|
|
||||
*/
|
||||
|
||||
[BASE] = LAYOUT(
|
||||
KC_GESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSLS, KC_GRV,
|
||||
TAB_MOUSE, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSPC,
|
||||
CTL_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, PROG_SCLN, KC_QUOT, KC_ENT,
|
||||
KC_LSPO, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSPC, MO(HHKB),
|
||||
KC_LALT, KC_LGUI, SPACE_PROG, KC_RGUI, KC_RALT),
|
||||
|
||||
/* HHKB Level: Function Layer
|
||||
|---------+------+------+--------+---------+-------+-----------+---------+---------+---------+----------------+--------+------+--------+-----|
|
||||
| Flash | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | F11 | F12 | Ins | Del |
|
||||
|---------+------+------+--------+---------+-------+-----------+---------+---------+---------+----------------+--------+------+--------+-----|
|
||||
| Caps | Calc | Mail | Media | Browser | My PC | Browser | u | i | o | Print | [ | ] | Backsp | * |
|
||||
| | | | Player | Refresh | | Favorites | | | | Screen | | | | |
|
||||
|---------+------+------+--------+---------+-------+-----------+---------+---------+---------+----------------+--------+------+--------+-----|
|
||||
| Control | Prev | Next | Find | f | g | Browser | Browser | Browser | Browser | ; | ' | Exec | ****** | * |
|
||||
| | | | | | | Back | Home | Search | Forward | | | | | |
|
||||
|---------+------+------+--------+---------+-------+-----------+---------+---------+---------+----------------+--------+------+--------+-----|
|
||||
| LShift | Vol+ | Vol- | Mute | Select | b | n | m | , | Again | Browser Search | RShift | HHKB | ****** | * |
|
||||
|---------+------+------+--------+---------+-------+-----------+---------+---------+---------+----------------+--------+------+--------+-----|
|
||||
|
||||
|------+------+----------------------+------+------|
|
||||
| Menu | LGUI | ******* Play ******* | RGUI | Menu |
|
||||
|------+------+----------------------+------+------|
|
||||
*/
|
||||
[HHKB] = LAYOUT(
|
||||
FLASH, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_INS, KC_DEL,
|
||||
KC_CAPS, KC_CALC, KC_MAIL, KC_MSEL, KC_WREF, KC_MYCM, KC_WFAV, KC_TRNS, KC_TRNS, KC_TRNS, KC_PSCR, KC_TRNS, KC_TRNS, KC_BSPC,
|
||||
KC_TRNS, KC_MPRV, KC_MNXT, KC_FIND, KC_TRNS, KC_TRNS, KC_WBAK, KC_WHOM, KC_WSCH, KC_WFWD, KC_TRNS, KC_TRNS, KC_EXEC,
|
||||
KC_TRNS, KC_VOLU, KC_VOLD, KC_MUTE, KC_SLCT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_AGIN, KC_WSCH, KC_TRNS, KC_TRNS,
|
||||
KC_MENU, KC_TRNS, KC_MPLY, KC_TRNS, KC_MENU),
|
||||
|
||||
|
||||
/* Programming Level: Symbols Layer
|
||||
|--------------+-------+-------+-------+-------+-------+-------+-------+-------+-------+--------+--------+--------+--------+---|
|
||||
| Esc | TTY 1 | TTY 2 | TTY 3 | TTY 4 | TTY 5 | TTY 6 | TTY 7 | TTY 8 | TTY 9 | TTY 10 | TTY 11 | TTY 12 | \ | ` |
|
||||
|--------------+-------+-------+-------+-------+-------+-------+-------+-------+-------+--------+--------+--------+--------+---|
|
||||
| Tab/Mouse | => | @ | >>= | =<< | ‖ | <> | <|> | <*> | <@> | |> | <$ | $> | Backsp | * |
|
||||
|--------------+-------+-------+-------+-------+-------+-------+-------+-------+-------+--------+--------+--------+--------+---|
|
||||
| Toggle Mouse | -> | * | <$> | <#> | && | Left | Down | Up | Right | :: | ` | Return | ****** | * |
|
||||
|--------------+-------+-------+-------+-------+-------+-------+-------+-------+-------+--------+--------+--------+--------+---|
|
||||
| LShift | z | x | c | v | b | n | m | <- | -> | <> | Shift | HHKB | ****** | * |
|
||||
|--------------+-------+-------+-------+-------+-------+-------+-------+-------+-------+--------+--------+--------+--------+---|
|
||||
|
||||
|------+------+----------------------------+------+------|
|
||||
| LAlt | LGUI | ******* Space/Prog ******* | RGUI | RAlt |
|
||||
|------+------+----------------------------+------+------|
|
||||
*/
|
||||
[PROG] = LAYOUT(
|
||||
KC_GESC, LCA(KC_F1), LCA(KC_F2), LCA(KC_F3), LCA(KC_F4), LCA(KC_F5), LCA(KC_F6), LCA(KC_F7), LCA(KC_F8), LCA(KC_F9), LCA(KC_F10), LCA(KC_F11), LCA(KC_F12), KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, FAT_ARROW, KC_AT, BIND, BIND_FLIPPED, OR, CONCAT, ALT, APPLY, FLAP, PIPE, VOID_LEFT, VOID_RIGHT, KC_TRNS,
|
||||
TG(MOUSE), SKINNY_ARROW, KC_ASTR, MAP, MAP_FLIPPED, AND, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, DOUBLE_COLON, KC_GRV, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, REVERSE_ARROW, SKINNY_ARROW, CONCAT, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
|
||||
|
||||
|
||||
/* Mouse Level: Mouse Layer
|
||||
|--------------+---------+---------+---------+---------+---------+-------+-------+---------+---------+---------+-----------+-----------------+--------+---|
|
||||
| Esc | Speed 1 | Speed 2 | Speed 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - | = | \ | ` |
|
||||
|--------------+---------+---------+---------+---------+---------+-------+-------+---------+---------+---------+-----------+-----------------+--------+---|
|
||||
| Mouse(Tab) | Q | Up | Button3 | Button4 | Button5 | Y | U | Button3 | Button4 | Button5 | [ | ] | Backsp | * |
|
||||
|--------------+---------+---------+---------+---------+---------+-------+-------+---------+---------+---------+-----------+-----------------+--------+---|
|
||||
| Control(Esc) | Left | Down | Right | Button1 | Button2 | SLeft | SDown | SUp | SRight | Button1 | Button2 | Control(Return) | ****** | * |
|
||||
|--------------+---------+---------+---------+---------+---------+-------+-------+---------+---------+---------+-----------+-----------------+--------+---|
|
||||
| LShift(() | Z | X | C | V | B | N | M | Button5 | Button4 | Button3 | RShift()) | HHKB | ****** | * |
|
||||
|--------------+---------+---------+---------+---------+---------+-------+-------+---------+---------+---------+-----------+-----------------+--------+---|
|
||||
|
||||
|---------+---------+----------------------------+---------+---------|
|
||||
| LAlt([) | LGUI({) | ******* Space/Prog ******* | RGUI(}) | RAlt(]) |
|
||||
|---------+---------+----------------------------+---------+---------|
|
||||
*/
|
||||
[MOUSE] = LAYOUT(
|
||||
KC_TRNS, KC_ACL0, KC_ACL1, KC_ACL2, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_MS_U, KC_BTN3, KC_BTN4, KC_BTN5, KC_TRNS, KC_TRNS, KC_BTN3, KC_BTN4, KC_BTN5, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
TG(MOUSE), KC_MS_L, KC_MS_D, KC_MS_R, KC_BTN1, KC_BTN2, KC_WH_L, KC_WH_D, KC_WH_U, KC_WH_R, KC_BTN1, KC_BTN2, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
|
||||
};
|
||||
13
keyboards/hhkb/keymaps/brett/readme.md
Normal file
13
keyboards/hhkb/keymaps/brett/readme.md
Normal file
@@ -0,0 +1,13 @@
|
||||
# Generated Keymap Layout
|
||||
|
||||
This layout was generated by the QMK API. You can find the JSON data used to
|
||||
generate this keymap in the file layers.json.
|
||||
|
||||
To make use of this file you will need follow the following steps:
|
||||
|
||||
* Download or Clone QMK Firmware: <https://github.com/qmk/qmk_firmware/>
|
||||
* Extract QMK Firmware to a location on your hard drive
|
||||
* Copy this folder into %s
|
||||
* You are now ready to compile or use your keymap with the source
|
||||
|
||||
More information can be found in the QMK docs: <https://docs.qmk.fm>
|
||||
4
keyboards/hhkb/keymaps/brett/rules.mk
Normal file
4
keyboards/hhkb/keymaps/brett/rules.mk
Normal file
@@ -0,0 +1,4 @@
|
||||
MOUSEKEY_ENABLE = yes
|
||||
TAP_DANCE_ENABLE = no
|
||||
LEADER_ENABLE = no
|
||||
UNICODE_ENABLE = no
|
||||
@@ -32,7 +32,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
if (record->event.pressed) {
|
||||
SEND_STRING("Hello from Illuminati Works");
|
||||
} else {
|
||||
SEND_STRING("iS0 working properly");
|
||||
SEND_STRING("iS0 working properly");
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
55
keyboards/palette1202/config.h
Normal file
55
keyboards/palette1202/config.h
Normal file
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
Copyright 2019 niltea
|
||||
|
||||
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 "config_common.h"
|
||||
|
||||
/* USB Device descriptor parameter */
|
||||
#define VENDOR_ID 0xFEED
|
||||
#define PRODUCT_ID 0x1202
|
||||
#define DEVICE_VER 0x0001
|
||||
#define MANUFACTURER niltea
|
||||
#define PRODUCT Palette1202
|
||||
#define DESCRIPTION A left hand device with rotary encoder
|
||||
|
||||
/* key matrix size */
|
||||
#define MATRIX_ROWS 3
|
||||
#define MATRIX_COLS 5
|
||||
|
||||
#define MATRIX_ROW_PINS { B6, B2, B3 }
|
||||
#define MATRIX_COL_PINS { C6, D7, E6, B4, B5 }
|
||||
#define UNUSED_PINS { D2, D3, D4, B1 }
|
||||
|
||||
/* COL2ROW, ROW2COL*/
|
||||
#define DIODE_DIRECTION COL2ROW
|
||||
|
||||
/* Encoders */
|
||||
#define ENCODERS_PAD_A { F4, F6 }
|
||||
#define ENCODERS_PAD_B { F5, F7 }
|
||||
|
||||
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
|
||||
#define DEBOUNCE 5
|
||||
|
||||
/* Register custom font file */
|
||||
#ifdef OLED_DRIVER_ENABLE
|
||||
#define OLED_FONT_H "lib/glcdfont.c"
|
||||
#endif
|
||||
|
||||
/* Feature disable options */
|
||||
#define NO_DEBUG
|
||||
#define NO_PRINT
|
||||
30
keyboards/palette1202/info.json
Normal file
30
keyboards/palette1202/info.json
Normal file
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"keyboard_name": "Palette1202",
|
||||
"url": "https://github.com/niltea/Palette1202",
|
||||
"maintainer": "niltea",
|
||||
"width": 5,
|
||||
"height": 3.5,
|
||||
"layouts": {
|
||||
"LAYOUT": {
|
||||
"key_count": 14,
|
||||
"layout": [
|
||||
{ "label":"Tab", "x": 0, "y": 0.75 },
|
||||
{ "label":"GUI + A", "x": 1, "y": 0.25 },
|
||||
{ "label":"E", "x": 2, "y": 0 },
|
||||
{ "label":"P", "x": 3, "y": 0.5 },
|
||||
{ "label":"GUI + 0", "x": 4, "y": 0 },
|
||||
|
||||
{ "label":"Fn", "x": 0, "y": 1.75 },
|
||||
{ "label":"M", "x": 1, "y": 1.25 },
|
||||
{ "label":"BackSP", "x": 2, "y": 1 },
|
||||
{ "label":"B", "x": 3, "y": 1.5 },
|
||||
{ "label":"HYPR", "x": 4, "y": 1 },
|
||||
|
||||
{ "label":"Shift", "x": 1, "y": 2.5 },
|
||||
{ "label":"LGUI", "x": 2, "y": 2.5 },
|
||||
{ "label":"GUI + Z", "x": 3, "y": 2.5 },
|
||||
{ "label":"Space", "x": 4, "y": 2.5, "r": 15 }
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
20
keyboards/palette1202/keymaps/default/config.h
Normal file
20
keyboards/palette1202/keymaps/default/config.h
Normal file
@@ -0,0 +1,20 @@
|
||||
/* Copyright 2019 niltea
|
||||
*
|
||||
* 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 TAPPING_FORCE_HOLD
|
||||
#define TAPPING_TERM 100
|
||||
329
keyboards/palette1202/keymaps/default/keymap.c
Normal file
329
keyboards/palette1202/keymaps/default/keymap.c
Normal file
@@ -0,0 +1,329 @@
|
||||
/* Copyright 2019 niltea
|
||||
*
|
||||
* 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 QMK_KEYBOARD_H
|
||||
#ifdef OLED_DRIVER_ENABLE
|
||||
#include <string.h>
|
||||
#include "lib/oled_helper.h"
|
||||
#endif
|
||||
|
||||
enum custom_keycode {
|
||||
Mac_CS = SAFE_RANGE,
|
||||
Mac_PS,
|
||||
Win_CS,
|
||||
Win_PS,
|
||||
IOS_CS,
|
||||
};
|
||||
enum layerID {
|
||||
MAC_CS_1 = 0,
|
||||
MAC_CS_2,
|
||||
MAC_PS_1,
|
||||
MAC_PS_2,
|
||||
WIN_CS_1,
|
||||
WIN_CS_2,
|
||||
WIN_PS_1,
|
||||
WIN_PS_2,
|
||||
IOS_CS_1,
|
||||
IOS_CS_2,
|
||||
SETTING,
|
||||
};
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
// Mac
|
||||
// Clip Studio
|
||||
[MAC_CS_1] = LAYOUT(
|
||||
KC_TAB, LGUI(KC_A), KC_E, KC_P, LGUI(KC_0),
|
||||
MO(MAC_CS_2), KC_M, KC_BSPC, KC_B, KC_HYPR,
|
||||
KC_LSFT, KC_LGUI, LGUI(KC_Z), KC_SPC
|
||||
),
|
||||
[MAC_CS_2] = LAYOUT(
|
||||
MO(SETTING), KC_ESC, KC_G, KC_R, LGUI(KC_GRV),
|
||||
_______, LGUI(KC_D), KC_K, KC_F, LGUI(KC_S),
|
||||
KC_LALT, KC_I, SGUI(KC_Z), KC_H
|
||||
),
|
||||
// Photoshop
|
||||
[MAC_PS_1] = LAYOUT(
|
||||
KC_TAB, LGUI(KC_A), KC_E, KC_B, LGUI(KC_1),
|
||||
MO(MAC_PS_2), KC_L, LGUI(KC_DEL), LGUI(KC_QUOT), KC_MEH,
|
||||
KC_LSFT, KC_LGUI, LGUI(KC_Z), KC_SPC
|
||||
),
|
||||
[MAC_PS_2] = LAYOUT(
|
||||
MO(SETTING), KC_ESC, KC_G, KC_R, KC_ESC,
|
||||
_______, LGUI(KC_D), KC_V, LGUI(KC_T), LGUI(KC_S),
|
||||
KC_LALT, KC_I, SGUI(KC_Z), KC_H
|
||||
),
|
||||
|
||||
// Windows
|
||||
// Clip Studio
|
||||
[WIN_CS_1] = LAYOUT(
|
||||
KC_TAB, LCTL(KC_A), KC_E, KC_P, LCTL(KC_0),
|
||||
MO(WIN_CS_2), KC_M, KC_BSPC, KC_B, KC_HYPR,
|
||||
KC_LSFT, KC_LCTRL, LCTL(KC_Z), KC_SPC
|
||||
),
|
||||
[WIN_CS_2] = LAYOUT(
|
||||
MO(SETTING), KC_ESC, KC_G, KC_R, LCTL(KC_GRV),
|
||||
_______, LCTL(KC_D), KC_K, KC_F, LCTL(KC_S),
|
||||
KC_LALT, KC_I, C(S(KC_Z)), KC_H
|
||||
),
|
||||
// Photoshop
|
||||
[WIN_PS_1] = LAYOUT(
|
||||
KC_TAB, LCTL(KC_A), KC_E, KC_B, LCTL(KC_1),
|
||||
MO(WIN_PS_2), KC_L, LCTL(KC_DEL), LCTL(KC_QUOT), KC_MEH,
|
||||
KC_LSFT, KC_LCTRL, LCTL(KC_Z), KC_SPC
|
||||
),
|
||||
[WIN_PS_2] = LAYOUT(
|
||||
MO(SETTING), KC_ESC, KC_G, KC_R, KC_ESC,
|
||||
_______, LCTL(KC_D), KC_V, LCTL(KC_T), LCTL(KC_S),
|
||||
KC_LALT, KC_I, C(S(KC_Z)), KC_H
|
||||
),
|
||||
// iOS
|
||||
// Clip Studio
|
||||
[IOS_CS_1] = LAYOUT(
|
||||
KC_TAB, LGUI(KC_A), KC_E, KC_P, LGUI(KC_0),
|
||||
MO(IOS_CS_2), KC_M, KC_BSPC, KC_B, LGUI(KC_LALT),
|
||||
KC_LSFT, KC_LGUI, LGUI(KC_Z), KC_SPC
|
||||
),
|
||||
[IOS_CS_2] = LAYOUT(
|
||||
MO(SETTING), KC_ESC, KC_G, KC_R, LGUI(KC_EQL),
|
||||
_______, LGUI(KC_D), KC_K, KC_F, LGUI(KC_S),
|
||||
KC_LALT, KC_I, SGUI(KC_Z), KC_H
|
||||
),
|
||||
[SETTING] = LAYOUT(
|
||||
_______, IOS_CS, Win_CS, Mac_CS, KC_NO,
|
||||
_______, KC_NO, Win_PS, Mac_PS, KC_NO,
|
||||
KC_NO, KC_NO, KC_NO, KC_NO
|
||||
),
|
||||
};
|
||||
|
||||
void encoder_update_user(uint8_t index, bool clockwise) {
|
||||
uint8_t currentDefault = get_highest_layer(default_layer_state);
|
||||
uint8_t currentLayer = get_highest_layer(layer_state);
|
||||
if (index == 0) { /* the upper encoder */
|
||||
switch (currentDefault) {
|
||||
case MAC_CS_1:
|
||||
if (currentLayer % 2 == 0) {
|
||||
// default layer
|
||||
// Zoom
|
||||
tap_code16(!clockwise ? G(KC_EQL) : G(KC_MINS));
|
||||
} else {
|
||||
// Fn Layer
|
||||
// rotate canvas
|
||||
tap_code(!clockwise ? KC_QUOT : KC_MINS);
|
||||
}
|
||||
break;
|
||||
case MAC_PS_1:
|
||||
if (currentLayer % 2 == 0) {
|
||||
// default layer
|
||||
// Zoom
|
||||
tap_code16(!clockwise ? G(KC_EQL) : G(KC_MINS));
|
||||
} else {
|
||||
// Fn Layer
|
||||
// undo / redo
|
||||
tap_code16(!clockwise ? S(G(KC_Z)) : G(KC_Z));
|
||||
}
|
||||
break;
|
||||
case WIN_CS_1:
|
||||
if (currentLayer % 2 == 0) {
|
||||
// default layer
|
||||
// Zoom
|
||||
tap_code16(!clockwise ? C(KC_EQL) : C(KC_MINS));
|
||||
} else {
|
||||
// Fn Layer
|
||||
// rotate canvas
|
||||
tap_code(!clockwise ? KC_QUOT : KC_MINS);
|
||||
}
|
||||
break;
|
||||
case WIN_PS_1:
|
||||
if (currentLayer % 2 == 0) {
|
||||
// default layer
|
||||
// Zoom
|
||||
tap_code16(!clockwise ? C(KC_SCLN) : C(KC_MINS));
|
||||
} else {
|
||||
// Fn Layer
|
||||
// undo / redo
|
||||
tap_code16(!clockwise ? C(S(KC_Z)) : C(KC_Z));
|
||||
}
|
||||
break;
|
||||
case IOS_CS_1:
|
||||
if (currentLayer % 2 == 0) {
|
||||
// default layer
|
||||
// Zoom
|
||||
tap_code16(!clockwise ? G(KC_SCLN) : G(KC_MINS));
|
||||
} else {
|
||||
// Fn Layer
|
||||
// rotate canvas
|
||||
tap_code(!clockwise ? KC_EQL : KC_MINS);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
} else if (index == 1) { /* the lower encoder */
|
||||
switch (currentDefault) {
|
||||
case MAC_CS_1:
|
||||
if (currentLayer % 2 == 0) {
|
||||
// default layer
|
||||
// size of brush
|
||||
tap_code(!clockwise ? KC_RBRC : KC_LBRC);
|
||||
} else {
|
||||
// Fn Layer
|
||||
// opacity of brush
|
||||
tap_code16(!clockwise ? G(KC_RBRC) : G(KC_LBRC));
|
||||
}
|
||||
break;
|
||||
case MAC_PS_1:
|
||||
if (currentLayer % 2 == 0) {
|
||||
// default layer
|
||||
// size of brush
|
||||
tap_code(!clockwise ? KC_RBRC : KC_LBRC);
|
||||
} else {
|
||||
// Fn Layer
|
||||
// opacity of brush
|
||||
tap_code16(!clockwise ? KC_RCBR : KC_LCBR);
|
||||
}
|
||||
break;
|
||||
case WIN_CS_1:
|
||||
if (currentLayer % 2 == 0) {
|
||||
// default layer
|
||||
// rotate canvas
|
||||
tap_code(!clockwise ? KC_RBRC : KC_LBRC);
|
||||
} else {
|
||||
// Fn Layer
|
||||
// opacity of brush
|
||||
tap_code16(!clockwise ? C(KC_RBRC) : C(KC_LBRC));
|
||||
}
|
||||
break;
|
||||
case WIN_PS_1:
|
||||
if (currentLayer % 2 == 0) {
|
||||
// default layer
|
||||
// rotate canvas
|
||||
tap_code(!clockwise ? KC_RBRC : KC_LBRC);
|
||||
} else {
|
||||
// Fn Layer
|
||||
// opacity of brush
|
||||
tap_code16(!clockwise ? KC_RCBR : KC_LCBR);
|
||||
}
|
||||
break;
|
||||
case IOS_CS_1:
|
||||
if (currentLayer % 2 == 0) {
|
||||
// default layer
|
||||
// size of brush
|
||||
tap_code(!clockwise ? KC_BSLS : KC_RBRC);
|
||||
} else {
|
||||
// Fn Layer
|
||||
// opacity of brush
|
||||
tap_code16(!clockwise ? G(KC_BSLS) : G(KC_RBRC));
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// custom keycode
|
||||
// switch default layer
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case Mac_CS:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(MAC_CS_1);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case Mac_PS:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(MAC_PS_1);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case Win_CS:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(WIN_CS_1);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case Win_PS:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(WIN_PS_1);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case IOS_CS:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(IOS_CS_1);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// OLED Display
|
||||
#ifdef OLED_DRIVER_ENABLE
|
||||
void oled_task_user(void) {
|
||||
// get layer Number
|
||||
uint8_t currentDefault = get_highest_layer(default_layer_state);
|
||||
uint8_t currentLayer = get_highest_layer(layer_state);
|
||||
// write OS mode / 1st line of the logo
|
||||
switch (currentDefault) {
|
||||
case MAC_CS_1:
|
||||
case MAC_PS_1:
|
||||
render_row(0, "Mac ");
|
||||
break;
|
||||
case WIN_CS_1:
|
||||
case WIN_PS_1:
|
||||
render_row(0, "Win ");
|
||||
break;
|
||||
case IOS_CS_1:
|
||||
render_row(0, "iOS ");
|
||||
break;
|
||||
default:
|
||||
render_row(0, " ");
|
||||
}
|
||||
|
||||
// write Application mode / 2nd line of the logo
|
||||
switch (currentDefault) {
|
||||
case MAC_CS_1:
|
||||
case WIN_CS_1:
|
||||
case IOS_CS_1:
|
||||
render_row(1, "A:CS");
|
||||
break;
|
||||
case MAC_PS_1:
|
||||
case WIN_PS_1:
|
||||
render_row(1, "A:Ps");
|
||||
break;
|
||||
default:
|
||||
render_row(1, " ");
|
||||
}
|
||||
|
||||
if (currentLayer == SETTING) {
|
||||
// 3rd & 4th line of the logo
|
||||
render_row(2, "****");
|
||||
render_row(3, "LSEL");
|
||||
} else {
|
||||
// Layer Status / 3rd line of the logo
|
||||
if (currentLayer % 2 == 0) {
|
||||
// default layer
|
||||
render_row(2, "L:DF");
|
||||
} else {
|
||||
// Fn Layer
|
||||
render_row(2, "L:Fn");
|
||||
}
|
||||
// pressed key / 4th line of the logo
|
||||
render_row(3, " ");
|
||||
}
|
||||
}
|
||||
#endif // #ifdef OLED_DRIVER_ENABLE
|
||||
1
keyboards/palette1202/keymaps/default/readme.md
Normal file
1
keyboards/palette1202/keymaps/default/readme.md
Normal file
@@ -0,0 +1 @@
|
||||
# The default keymap for Palette1202
|
||||
150
keyboards/palette1202/keymaps/key-check/keymap.c
Normal file
150
keyboards/palette1202/keymaps/key-check/keymap.c
Normal file
@@ -0,0 +1,150 @@
|
||||
/* Copyright 2019 niltea
|
||||
*
|
||||
* 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 QMK_KEYBOARD_H
|
||||
#ifdef OLED_DRIVER_ENABLE
|
||||
#include <string.h>
|
||||
#include "lib/oled_helper.h"
|
||||
#endif
|
||||
|
||||
// Defines the keycodes used by our macros in process_record_user
|
||||
enum custom_keycodes {
|
||||
KEY_01 = SAFE_RANGE,
|
||||
KEY_02,
|
||||
KEY_03,
|
||||
KEY_04,
|
||||
KEY_05,
|
||||
KEY_06,
|
||||
KEY_07,
|
||||
KEY_08,
|
||||
KEY_09,
|
||||
KEY_10,
|
||||
KEY_11,
|
||||
KEY_12,
|
||||
KEY_13,
|
||||
KEY_14
|
||||
};
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[0] = LAYOUT(
|
||||
KEY_01, KEY_02, KEY_03, KEY_04, KEY_05,
|
||||
KEY_06, KEY_07, KEY_08, KEY_09, KEY_10,
|
||||
KEY_11, KEY_12, KEY_13, KEY_14
|
||||
),
|
||||
};
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case KEY_01:
|
||||
if (record->event.pressed) {
|
||||
SEND_STRING("R1C1");
|
||||
}
|
||||
break;
|
||||
case KEY_02:
|
||||
if (record->event.pressed) {
|
||||
SEND_STRING("R1C2");
|
||||
}
|
||||
break;
|
||||
case KEY_03:
|
||||
if (record->event.pressed) {
|
||||
SEND_STRING("R1C3");
|
||||
}
|
||||
break;
|
||||
case KEY_04:
|
||||
if (record->event.pressed) {
|
||||
SEND_STRING("R1C4");
|
||||
}
|
||||
break;
|
||||
case KEY_05:
|
||||
if (record->event.pressed) {
|
||||
SEND_STRING("ENCODER-UPPER:Button");
|
||||
}
|
||||
break;
|
||||
|
||||
case KEY_06:
|
||||
if (record->event.pressed) {
|
||||
SEND_STRING("R2C1");
|
||||
}
|
||||
break;
|
||||
case KEY_07:
|
||||
if (record->event.pressed) {
|
||||
SEND_STRING("R2C2");
|
||||
}
|
||||
break;
|
||||
case KEY_08:
|
||||
if (record->event.pressed) {
|
||||
SEND_STRING("R2C3");
|
||||
}
|
||||
break;
|
||||
|
||||
case KEY_09:
|
||||
if (record->event.pressed) {
|
||||
SEND_STRING("R2C4");
|
||||
}
|
||||
break;
|
||||
case KEY_10:
|
||||
if (record->event.pressed) {
|
||||
SEND_STRING("ENCODER-LOWER:Button");
|
||||
}
|
||||
break;
|
||||
case KEY_11:
|
||||
if (record->event.pressed) {
|
||||
SEND_STRING("R3C1");
|
||||
}
|
||||
break;
|
||||
case KEY_12:
|
||||
if (record->event.pressed) {
|
||||
SEND_STRING("R3C2");
|
||||
}
|
||||
break;
|
||||
case KEY_13:
|
||||
if (record->event.pressed) {
|
||||
SEND_STRING("R3C3");
|
||||
}
|
||||
break;
|
||||
case KEY_14:
|
||||
if (record->event.pressed) {
|
||||
SEND_STRING("R3C4");
|
||||
}
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
void encoder_update_user(uint8_t index, bool clockwise) {
|
||||
if (index == 0) { /* the upper encoder */
|
||||
if (clockwise) {
|
||||
SEND_STRING("ENCODER-UPPER:CW");
|
||||
} else {
|
||||
SEND_STRING("ENCODER-UPPER:CCW");
|
||||
}
|
||||
} else if (index == 1) { /* the lower encoder */
|
||||
if (clockwise) {
|
||||
SEND_STRING("ENCODER-LOWER:CW");
|
||||
} else {
|
||||
SEND_STRING("ENCODER-LOWER:CCW");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// OLED Display
|
||||
#ifdef OLED_DRIVER_ENABLE
|
||||
void oled_task_user(void) {
|
||||
render_row(0, "TEST");
|
||||
render_row(1, "test");
|
||||
render_row(2, "TEST");
|
||||
render_row(3, "test");
|
||||
}
|
||||
#endif // #ifdef OLED_DRIVER_ENABLE
|
||||
2
keyboards/palette1202/keymaps/key-check/readme.md
Normal file
2
keyboards/palette1202/keymaps/key-check/readme.md
Normal file
@@ -0,0 +1,2 @@
|
||||
# The test-purpose keymap for Palette1202
|
||||
組み立て後のテスト用keymapです。
|
||||
233
keyboards/palette1202/lib/glcdfont.c
Normal file
233
keyboards/palette1202/lib/glcdfont.c
Normal file
@@ -0,0 +1,233 @@
|
||||
// This is the 'classic' fixed-space bitmap font for Adafruit_GFX since 1.0.
|
||||
// See gfxfont.h for newer custom bitmap font info.
|
||||
|
||||
#include "progmem.h"
|
||||
|
||||
// Standard ASCII 5x7 font
|
||||
|
||||
static const unsigned char font[] PROGMEM = {
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x3e, 0x5b, 0x4f, 0x5b, 0x3e, 0x00,
|
||||
0x3e, 0x6b, 0x4f, 0x6b, 0x3e, 0x00,
|
||||
0x1c, 0x3e, 0x7c, 0x3e, 0x1c, 0x00,
|
||||
0x18, 0x3c, 0x7e, 0x3c, 0x18, 0x00,
|
||||
0x1c, 0x57, 0x7d, 0x57, 0x1c, 0x00,
|
||||
0x1c, 0x5e, 0x7f, 0x5e, 0x1c, 0x00,
|
||||
0x00, 0x18, 0x3c, 0x18, 0x00, 0x00,
|
||||
0xff, 0xe7, 0xc3, 0xe7, 0xff, 0x00,
|
||||
0x00, 0x18, 0x24, 0x18, 0x00, 0x00,
|
||||
0xff, 0xe7, 0xdb, 0xe7, 0xff, 0x00,
|
||||
0x30, 0x28, 0x1a, 0x06, 0x0e, 0x00,
|
||||
0x26, 0x29, 0x79, 0x29, 0x26, 0x00,
|
||||
0x40, 0x7f, 0x05, 0x05, 0x07, 0x00,
|
||||
0x40, 0x7f, 0x05, 0x25, 0x3f, 0x00,
|
||||
0x5a, 0x3c, 0xe7, 0x3c, 0x5a, 0x00,
|
||||
0x7f, 0x3e, 0x1c, 0x1c, 0x08, 0x00,
|
||||
0x08, 0x1c, 0x1c, 0x3e, 0x7f, 0x00,
|
||||
0x14, 0x22, 0x7f, 0x22, 0x14, 0x00,
|
||||
0x5f, 0x5f, 0x00, 0x5f, 0x5f, 0x00,
|
||||
0x06, 0x09, 0x7f, 0x01, 0x7f, 0x00,
|
||||
0x00, 0x66, 0x89, 0x95, 0x6a, 0x00,
|
||||
0x60, 0x60, 0x60, 0x60, 0x60, 0x00,
|
||||
0x94, 0xa2, 0xff, 0xa2, 0x94, 0x00,
|
||||
0x08, 0x04, 0x7e, 0x04, 0x08, 0x00,
|
||||
0x10, 0x20, 0x7e, 0x20, 0x10, 0x00,
|
||||
0x08, 0x08, 0x2a, 0x1c, 0x08, 0x00,
|
||||
0x08, 0x1c, 0x2a, 0x08, 0x08, 0x00,
|
||||
0x1e, 0x10, 0x10, 0x10, 0x10, 0x00,
|
||||
0x0c, 0x1e, 0x0c, 0x1e, 0x0c, 0x00,
|
||||
0x30, 0x38, 0x3e, 0x38, 0x30, 0x00,
|
||||
0x06, 0x0e, 0x3e, 0x0e, 0x06, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x5f, 0x00, 0x00, 0x00,
|
||||
0x00, 0x07, 0x00, 0x07, 0x00, 0x00,
|
||||
0x14, 0x7f, 0x14, 0x7f, 0x14, 0x00,
|
||||
0x24, 0x2a, 0x7f, 0x2a, 0x12, 0x00,
|
||||
0x23, 0x13, 0x08, 0x64, 0x62, 0x00,
|
||||
0x36, 0x49, 0x56, 0x20, 0x50, 0x00,
|
||||
0x00, 0x08, 0x07, 0x03, 0x00, 0x00,
|
||||
0x00, 0x1c, 0x22, 0x41, 0x00, 0x00,
|
||||
0x00, 0x41, 0x22, 0x1c, 0x00, 0x00,
|
||||
0x2a, 0x1c, 0x7f, 0x1c, 0x2a, 0x00,
|
||||
0x08, 0x08, 0x3e, 0x08, 0x08, 0x00,
|
||||
0x00, 0x80, 0x70, 0x30, 0x00, 0x00,
|
||||
0x08, 0x08, 0x08, 0x08, 0x08, 0x00,
|
||||
0x00, 0x00, 0x60, 0x60, 0x00, 0x00,
|
||||
0x20, 0x10, 0x08, 0x04, 0x02, 0x00,
|
||||
0x3e, 0x51, 0x49, 0x45, 0x3e, 0x00,
|
||||
0x00, 0x42, 0x7f, 0x40, 0x00, 0x00,
|
||||
0x72, 0x49, 0x49, 0x49, 0x46, 0x00,
|
||||
0x21, 0x41, 0x49, 0x4d, 0x33, 0x00,
|
||||
0x18, 0x14, 0x12, 0x7f, 0x10, 0x00,
|
||||
0x27, 0x45, 0x45, 0x45, 0x39, 0x00,
|
||||
0x3c, 0x4a, 0x49, 0x49, 0x31, 0x00,
|
||||
0x41, 0x21, 0x11, 0x09, 0x07, 0x00,
|
||||
0x36, 0x49, 0x49, 0x49, 0x36, 0x00,
|
||||
0x46, 0x49, 0x49, 0x29, 0x1e, 0x00,
|
||||
0x00, 0x00, 0x14, 0x00, 0x00, 0x00,
|
||||
0x00, 0x40, 0x34, 0x00, 0x00, 0x00,
|
||||
0x00, 0x08, 0x14, 0x22, 0x41, 0x00,
|
||||
0x14, 0x14, 0x14, 0x14, 0x14, 0x00,
|
||||
0x00, 0x41, 0x22, 0x14, 0x08, 0x00,
|
||||
0x02, 0x01, 0x59, 0x09, 0x06, 0x00,
|
||||
0x3e, 0x41, 0x5d, 0x59, 0x4e, 0x00,
|
||||
0x78, 0x16, 0x11, 0x16, 0x78, 0x00,
|
||||
0x7f, 0x49, 0x49, 0x49, 0x36, 0x00,
|
||||
0x3e, 0x41, 0x41, 0x41, 0x22, 0x00,
|
||||
0x7f, 0x41, 0x41, 0x41, 0x3e, 0x00,
|
||||
0x7f, 0x49, 0x49, 0x49, 0x41, 0x00,
|
||||
0x7f, 0x09, 0x09, 0x09, 0x01, 0x00,
|
||||
0x3e, 0x41, 0x41, 0x51, 0x73, 0x00,
|
||||
0x7f, 0x08, 0x08, 0x08, 0x7f, 0x00,
|
||||
0x00, 0x41, 0x7f, 0x41, 0x00, 0x00,
|
||||
0x20, 0x40, 0x41, 0x3f, 0x01, 0x00,
|
||||
0x7f, 0x08, 0x14, 0x22, 0x41, 0x00,
|
||||
0x7f, 0x40, 0x40, 0x40, 0x40, 0x00,
|
||||
0x7f, 0x02, 0x1c, 0x02, 0x7f, 0x00,
|
||||
0x7f, 0x04, 0x08, 0x10, 0x7f, 0x00,
|
||||
0x3e, 0x41, 0x41, 0x41, 0x3e, 0x00,
|
||||
0x7f, 0x09, 0x09, 0x09, 0x06, 0x00,
|
||||
0x3e, 0x41, 0x51, 0x21, 0x5e, 0x00,
|
||||
0x7f, 0x09, 0x19, 0x29, 0x46, 0x00,
|
||||
0x26, 0x49, 0x49, 0x49, 0x32, 0x00,
|
||||
0x03, 0x01, 0x7f, 0x01, 0x03, 0x00,
|
||||
0x3f, 0x40, 0x40, 0x40, 0x3f, 0x00,
|
||||
0x1f, 0x20, 0x40, 0x20, 0x1f, 0x00,
|
||||
0x3f, 0x40, 0x38, 0x40, 0x3f, 0x00,
|
||||
0x63, 0x14, 0x08, 0x14, 0x63, 0x00,
|
||||
0x03, 0x04, 0x78, 0x04, 0x03, 0x00,
|
||||
0x61, 0x59, 0x49, 0x4d, 0x43, 0x00,
|
||||
0x00, 0x7f, 0x41, 0x41, 0x41, 0x00,
|
||||
0x02, 0x04, 0x08, 0x10, 0x20, 0x00,
|
||||
0x00, 0x41, 0x41, 0x41, 0x7f, 0x00,
|
||||
0x04, 0x02, 0x01, 0x02, 0x04, 0x00,
|
||||
0x40, 0x40, 0x40, 0x40, 0x40, 0x00,
|
||||
0x00, 0x03, 0x07, 0x08, 0x00, 0x00,
|
||||
0x20, 0x54, 0x54, 0x78, 0x40, 0x00,
|
||||
0x7f, 0x28, 0x44, 0x44, 0x38, 0x00,
|
||||
0x38, 0x44, 0x44, 0x44, 0x28, 0x00,
|
||||
0x38, 0x44, 0x44, 0x28, 0x7f, 0x00,
|
||||
0x38, 0x54, 0x54, 0x54, 0x18, 0x00,
|
||||
0x00, 0x08, 0x7e, 0x09, 0x02, 0x00,
|
||||
0x18, 0x24, 0x24, 0x1c, 0x78, 0x00,
|
||||
0x7f, 0x08, 0x04, 0x04, 0x78, 0x00,
|
||||
0x00, 0x44, 0x7d, 0x40, 0x00, 0x00,
|
||||
0x20, 0x40, 0x40, 0x3d, 0x00, 0x00,
|
||||
0x7f, 0x10, 0x28, 0x44, 0x00, 0x00,
|
||||
0x00, 0x41, 0x7f, 0x40, 0x00, 0x00,
|
||||
0x7c, 0x04, 0x78, 0x04, 0x78, 0x00,
|
||||
0x7c, 0x08, 0x04, 0x04, 0x78, 0x00,
|
||||
0x38, 0x44, 0x44, 0x44, 0x38, 0x00,
|
||||
0xfc, 0x18, 0x24, 0x24, 0x18, 0x00,
|
||||
0x18, 0x24, 0x24, 0x18, 0xfc, 0x00,
|
||||
0x7c, 0x08, 0x04, 0x04, 0x08, 0x00,
|
||||
0x08, 0x54, 0x54, 0x54, 0x20, 0x00,
|
||||
0x04, 0x04, 0x3f, 0x44, 0x24, 0x00,
|
||||
0x3c, 0x40, 0x40, 0x20, 0x7c, 0x00,
|
||||
0x1c, 0x20, 0x40, 0x20, 0x1c, 0x00,
|
||||
0x1c, 0x60, 0x10, 0x60, 0x1c, 0x00,
|
||||
0x44, 0x28, 0x10, 0x28, 0x44, 0x00,
|
||||
0x44, 0x28, 0x10, 0x08, 0x04, 0x00,
|
||||
0x44, 0x64, 0x54, 0x4c, 0x44, 0x00,
|
||||
0x00, 0x08, 0x36, 0x41, 0x00, 0x00,
|
||||
0x00, 0x00, 0x77, 0x00, 0x00, 0x00,
|
||||
0x00, 0x41, 0x36, 0x08, 0x00, 0x00,
|
||||
0x02, 0x01, 0x02, 0x04, 0x02, 0x00,
|
||||
0x3c, 0x26, 0x23, 0x26, 0x3c, 0x00,
|
||||
0xff, 0xff, 0xff, 0xff, 0x0f, 0x0f,
|
||||
0x0f, 0xff, 0xff, 0xfe, 0xfc, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0xf8, 0xfc, 0xfe, 0xff, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0xc0, 0xf0, 0xfc, 0xff, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0xc0, 0xf0, 0xfc,
|
||||
0xff, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0xff, 0xff, 0xff, 0xff, 0x00, 0x00,
|
||||
0x00, 0xff, 0xff, 0xff, 0xff, 0x00,
|
||||
0x00, 0xfe, 0xff, 0xff, 0x0f, 0x0f,
|
||||
0x0f, 0xff, 0xff, 0xfe, 0x00, 0x00,
|
||||
0xff, 0xff, 0xff, 0xff, 0x00, 0x00,
|
||||
0xfe, 0xff, 0xff, 0x0f, 0x0f, 0x0f,
|
||||
0xff, 0xff, 0xfe, 0x00, 0x00, 0x0e,
|
||||
0xff, 0xff, 0xff, 0xff, 0x0e, 0x0e,
|
||||
0x0e, 0x00, 0x0e, 0xff, 0xff, 0xff,
|
||||
0xff, 0x0e, 0x0e, 0x0e, 0x00, 0x00,
|
||||
0xfe, 0xff, 0xff, 0x0f, 0x0f, 0x0f,
|
||||
0xff, 0xff, 0xfe, 0x00, 0x00, 0xf3,
|
||||
0xf3, 0x03, 0x03, 0xe3, 0xf3, 0x73,
|
||||
0x73, 0xf3, 0xe3, 0x03, 0xc3, 0xe3,
|
||||
0x73, 0x33, 0x73, 0xe3, 0xc3, 0x03,
|
||||
0xe3, 0xf3, 0x73, 0x73, 0xf3, 0xe3,
|
||||
0x03, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0xff, 0xff, 0xff, 0xff, 0x78, 0x78,
|
||||
0x78, 0x7f, 0x7f, 0x3f, 0x0f, 0x00,
|
||||
0x00, 0xf8, 0xfc, 0xfe, 0x1e, 0x1e,
|
||||
0x1e, 0xff, 0xff, 0xff, 0x00, 0x00,
|
||||
0xff, 0xff, 0xff, 0xff, 0x00, 0x00,
|
||||
0xff, 0xff, 0xff, 0x1c, 0x1c, 0x1c,
|
||||
0x9f, 0x9f, 0x9f, 0x00, 0x00, 0x00,
|
||||
0xff, 0xff, 0xff, 0xff, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0xff, 0xff, 0xff,
|
||||
0xff, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0xff, 0xff, 0xff, 0x1c, 0x1c, 0x1c,
|
||||
0x9f, 0x9f, 0x9f, 0x00, 0x00, 0xff,
|
||||
0xff, 0x00, 0x00, 0x01, 0x81, 0xe0,
|
||||
0xf8, 0x3f, 0x0f, 0x00, 0xff, 0xff,
|
||||
0x00, 0x00, 0x00, 0xff, 0xff, 0x00,
|
||||
0x01, 0x81, 0xe0, 0xf8, 0x3f, 0x0f,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0xff, 0xff, 0xff, 0xff, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x7f, 0xff, 0xff, 0xf0, 0xf0,
|
||||
0xf0, 0xff, 0xff, 0xff, 0x00, 0x00,
|
||||
0xff, 0xff, 0xff, 0xff, 0x00, 0x00,
|
||||
0x7f, 0xff, 0xff, 0xf0, 0xf0, 0xf0,
|
||||
0xff, 0xff, 0x7f, 0x00, 0x00, 0x00,
|
||||
0x7f, 0xff, 0xff, 0xff, 0xe0, 0xe0,
|
||||
0xe0, 0x00, 0x00, 0x7f, 0xff, 0xff,
|
||||
0xff, 0xe0, 0xe0, 0xe0, 0x00, 0x00,
|
||||
0x7f, 0xff, 0xff, 0xf0, 0xf0, 0xf0,
|
||||
0xff, 0xff, 0x7f, 0x00, 0x00, 0xcf,
|
||||
0xcf, 0xc0, 0xc0, 0xce, 0xcf, 0xcf,
|
||||
0xce, 0xce, 0xce, 0xc0, 0xc3, 0xc7,
|
||||
0xce, 0xcc, 0xce, 0xc7, 0xc3, 0xc0,
|
||||
0xce, 0xcf, 0xcf, 0xce, 0xce, 0xce,
|
||||
0xc0, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
||||
};
|
||||
30
keyboards/palette1202/lib/oled_helper.c
Normal file
30
keyboards/palette1202/lib/oled_helper.c
Normal file
@@ -0,0 +1,30 @@
|
||||
#ifdef OLED_DRIVER_ENABLE
|
||||
#include QMK_KEYBOARD_H
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
// returns character cord of the logo by line number
|
||||
char *read_logo(int row) {
|
||||
static char logoLines[][18] = {
|
||||
{ 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89, 0x8a, 0x8b, 0x8c, 0x8d, 0x8e, 0x8f, 0x90, 0},
|
||||
{ 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, 0x98, 0x99, 0x9a, 0x9b, 0x9c, 0x9d, 0x9e, 0x9f, 0xa0, 0xa1, 0},
|
||||
{ 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7, 0xa8, 0xa9, 0xaa, 0xab, 0xac, 0xad, 0xae, 0xaf, 0xb0, 0xb1, 0xb2, 0},
|
||||
{ 0xb3, 0xb4, 0xb5, 0xb6, 0xb7, 0xb8, 0xb9, 0xba, 0xbb, 0xbc, 0xbd, 0xbe, 0xbf, 0xc0, 0xc1, 0xc2, 0xc3, 0}
|
||||
};
|
||||
return logoLines[row];
|
||||
}
|
||||
|
||||
void render_row(int row, const char* status) {
|
||||
// reset cursor position
|
||||
oled_set_cursor(0, row);
|
||||
// read logo charcode
|
||||
char * logoLine = read_logo(row);
|
||||
// copy logo into buffer
|
||||
char writeLine[22];
|
||||
strcpy(writeLine, logoLine);
|
||||
// combine status string with logo
|
||||
strcat(writeLine, status);
|
||||
// write the line to OLED
|
||||
oled_write(writeLine, false);
|
||||
}
|
||||
#endif
|
||||
7
keyboards/palette1202/lib/oled_helper.h
Normal file
7
keyboards/palette1202/lib/oled_helper.h
Normal file
@@ -0,0 +1,7 @@
|
||||
#pragma once
|
||||
#ifdef OLED_DRIVER_ENABLE
|
||||
|
||||
void render_row(int row, const char* status);
|
||||
|
||||
#endif /* #ifdef OLED_DRIVER_ENABLE */
|
||||
|
||||
24
keyboards/palette1202/palette1202.c
Normal file
24
keyboards/palette1202/palette1202.c
Normal file
@@ -0,0 +1,24 @@
|
||||
/* Copyright 2019 niltea
|
||||
*
|
||||
* 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 "palette1202.h"
|
||||
|
||||
// initialize OLED if OLED is enabled
|
||||
#ifdef OLED_DRIVER_ENABLE
|
||||
oled_rotation_t oled_init_user(oled_rotation_t rotation) {
|
||||
return OLED_ROTATION_180;
|
||||
}
|
||||
#endif
|
||||
|
||||
37
keyboards/palette1202/palette1202.h
Normal file
37
keyboards/palette1202/palette1202.h
Normal file
@@ -0,0 +1,37 @@
|
||||
/* Copyright 2019 niltea
|
||||
*
|
||||
* 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 "quantum.h"
|
||||
|
||||
/* This a shortcut to help you visually see your layout.
|
||||
*
|
||||
* The first section contains all of the arguments representing the physical
|
||||
* layout of the board and position of the keys.
|
||||
*
|
||||
* The second converts the arguments into a two-dimensional array which
|
||||
* represents the switch matrix.
|
||||
*/
|
||||
#define LAYOUT( \
|
||||
k00, k01, k02, k03, k04, \
|
||||
k10, k11, k12, k13, k14, \
|
||||
k21, k22, k23, k24 \
|
||||
) \
|
||||
{ \
|
||||
{ k00, k01, k02, k03, k04 }, \
|
||||
{ k10, k11, k12, k13, k14 }, \
|
||||
{ KC_NO, k21, k22, k23, k24 }, \
|
||||
}
|
||||
22
keyboards/palette1202/readme.md
Normal file
22
keyboards/palette1202/readme.md
Normal file
@@ -0,0 +1,22 @@
|
||||
# Palette1202
|
||||
|
||||

|
||||
|
||||
A left hand device with rotary encoder, for artists.
|
||||
|
||||
* Keyboard Maintainer: [niltea](https://github.com/niltea)
|
||||
* Hardware Supported: Palette1202
|
||||
* Hardware Availability: [Pixiv Booth](https://booth.pm/)
|
||||
* [PCB & Case](https://github.com/niltea/Palette1202)
|
||||
|
||||
Make example for this keyboard (after setting up your build environment):
|
||||
|
||||
- default
|
||||
|
||||
make palette1202:default:flash
|
||||
|
||||
- key check (for after build)
|
||||
|
||||
make palette1202:key-check: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).
|
||||
37
keyboards/palette1202/rules.mk
Normal file
37
keyboards/palette1202/rules.mk
Normal file
@@ -0,0 +1,37 @@
|
||||
# MCU name
|
||||
MCU = atmega32u4
|
||||
|
||||
# Bootloader selection
|
||||
# Teensy halfkay
|
||||
# Pro Micro caterina
|
||||
# Atmel DFU atmel-dfu
|
||||
# LUFA DFU lufa-dfu
|
||||
# QMK DFU qmk-dfu
|
||||
# ATmega32A bootloadHID
|
||||
# ATmega328P USBasp
|
||||
BOOTLOADER = atmel-dfu
|
||||
|
||||
# Build Options
|
||||
# change yes to no to disable
|
||||
#
|
||||
BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration
|
||||
MOUSEKEY_ENABLE = yes # Mouse keys
|
||||
EXTRAKEY_ENABLE = yes # Audio control and System control
|
||||
CONSOLE_ENABLE = yes # Console for debug
|
||||
COMMAND_ENABLE = yes # 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
|
||||
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
|
||||
MIDI_ENABLE = no # MIDI support
|
||||
BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
|
||||
AUDIO_ENABLE = no # Audio output on port C6
|
||||
FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches
|
||||
HD44780_ENABLE = no # Enable support for HD44780 based LCDs
|
||||
ENCODER_ENABLE = yes # Enable support for rotary encoders
|
||||
OLED_DRIVER_ENABLE = yes # Enable support for OLED display
|
||||
|
||||
# Additional code
|
||||
SRC += lib/oled_helper.c # Adding OLED
|
||||
@@ -38,17 +38,23 @@
|
||||
# include "velocikey.h"
|
||||
#endif
|
||||
|
||||
#ifndef MIN
|
||||
# define MIN(a, b) (((a) < (b)) ? (a) : (b))
|
||||
#endif
|
||||
|
||||
#ifdef RGBLIGHT_SPLIT
|
||||
/* for split keyboard */
|
||||
# define RGBLIGHT_SPLIT_SET_CHANGE_MODE rgblight_status.change_flags |= RGBLIGHT_STATUS_CHANGE_MODE
|
||||
# define RGBLIGHT_SPLIT_SET_CHANGE_HSVS rgblight_status.change_flags |= RGBLIGHT_STATUS_CHANGE_HSVS
|
||||
# define RGBLIGHT_SPLIT_SET_CHANGE_MODEHSVS rgblight_status.change_flags |= (RGBLIGHT_STATUS_CHANGE_MODE | RGBLIGHT_STATUS_CHANGE_HSVS)
|
||||
# define RGBLIGHT_SPLIT_SET_CHANGE_LAYERS rgblight_status.change_flags |= RGBLIGHT_STATUS_CHANGE_LAYERS
|
||||
# define RGBLIGHT_SPLIT_SET_CHANGE_TIMER_ENABLE rgblight_status.change_flags |= RGBLIGHT_STATUS_CHANGE_TIMER
|
||||
# define RGBLIGHT_SPLIT_ANIMATION_TICK rgblight_status.change_flags |= RGBLIGHT_STATUS_ANIMATION_TICK
|
||||
#else
|
||||
# define RGBLIGHT_SPLIT_SET_CHANGE_MODE
|
||||
# define RGBLIGHT_SPLIT_SET_CHANGE_HSVS
|
||||
# define RGBLIGHT_SPLIT_SET_CHANGE_MODEHSVS
|
||||
# define RGBLIGHT_SPLIT_SET_CHANGE_LAYERS
|
||||
# define RGBLIGHT_SPLIT_SET_CHANGE_TIMER_ENABLE
|
||||
# define RGBLIGHT_SPLIT_ANIMATION_TICK
|
||||
#endif
|
||||
@@ -97,6 +103,10 @@ LED_TYPE led[RGBLED_NUM];
|
||||
# define LED_ARRAY led
|
||||
#endif
|
||||
|
||||
#ifdef RGBLIGHT_LAYERS
|
||||
rgblight_segment_t const *const *rgblight_layers = NULL;
|
||||
#endif
|
||||
|
||||
static uint8_t clipping_start_pos = 0;
|
||||
static uint8_t clipping_num_leds = RGBLED_NUM;
|
||||
static uint8_t effect_start_pos = 0;
|
||||
@@ -211,9 +221,7 @@ void rgblight_init(void) {
|
||||
|
||||
eeconfig_debug_rgblight(); // display current eeprom values
|
||||
|
||||
#ifdef RGBLIGHT_USE_TIMER
|
||||
rgblight_timer_init(); // setup the timer
|
||||
#endif
|
||||
|
||||
if (rgblight_config.enable) {
|
||||
rgblight_mode_noeeprom(rgblight_config.mode);
|
||||
@@ -230,9 +238,7 @@ void rgblight_update_dword(uint32_t dword) {
|
||||
if (rgblight_config.enable)
|
||||
rgblight_mode_noeeprom(rgblight_config.mode);
|
||||
else {
|
||||
#ifdef RGBLIGHT_USE_TIMER
|
||||
rgblight_timer_disable();
|
||||
#endif
|
||||
rgblight_set();
|
||||
}
|
||||
}
|
||||
@@ -300,13 +306,9 @@ void rgblight_mode_eeprom_helper(uint8_t mode, bool write_to_eeprom) {
|
||||
dprintf("rgblight mode [NOEEPROM]: %u\n", rgblight_config.mode);
|
||||
}
|
||||
if (is_static_effect(rgblight_config.mode)) {
|
||||
#ifdef RGBLIGHT_USE_TIMER
|
||||
rgblight_timer_disable();
|
||||
#endif
|
||||
} else {
|
||||
#ifdef RGBLIGHT_USE_TIMER
|
||||
rgblight_timer_enable();
|
||||
#endif
|
||||
}
|
||||
#ifdef RGBLIGHT_USE_TIMER
|
||||
animation_status.restart = true;
|
||||
@@ -354,9 +356,7 @@ void rgblight_disable(void) {
|
||||
rgblight_config.enable = 0;
|
||||
eeconfig_update_rgblight(rgblight_config.raw);
|
||||
dprintf("rgblight disable [EEPROM]: rgblight_config.enable = %u\n", rgblight_config.enable);
|
||||
#ifdef RGBLIGHT_USE_TIMER
|
||||
rgblight_timer_disable();
|
||||
#endif
|
||||
RGBLIGHT_SPLIT_SET_CHANGE_MODE;
|
||||
wait_ms(50);
|
||||
rgblight_set();
|
||||
@@ -365,9 +365,7 @@ void rgblight_disable(void) {
|
||||
void rgblight_disable_noeeprom(void) {
|
||||
rgblight_config.enable = 0;
|
||||
dprintf("rgblight disable [NOEEPROM]: rgblight_config.enable = %u\n", rgblight_config.enable);
|
||||
#ifdef RGBLIGHT_USE_TIMER
|
||||
rgblight_timer_disable();
|
||||
#endif
|
||||
RGBLIGHT_SPLIT_SET_CHANGE_MODE;
|
||||
wait_ms(50);
|
||||
rgblight_set();
|
||||
@@ -616,11 +614,67 @@ void rgblight_sethsv_master(uint8_t hue, uint8_t sat, uint8_t val) { rgblight_se
|
||||
void rgblight_sethsv_slave(uint8_t hue, uint8_t sat, uint8_t val) { rgblight_sethsv_range(hue, sat, val, (uint8_t)RGBLED_NUM / 2, (uint8_t)RGBLED_NUM); }
|
||||
#endif // ifndef RGBLIGHT_SPLIT
|
||||
|
||||
#ifdef RGBLIGHT_LAYERS
|
||||
void rgblight_set_layer_state(uint8_t layer, bool enabled) {
|
||||
uint8_t mask = 1 << layer;
|
||||
if (enabled) {
|
||||
rgblight_status.enabled_layer_mask |= mask;
|
||||
} else {
|
||||
rgblight_status.enabled_layer_mask &= ~mask;
|
||||
}
|
||||
RGBLIGHT_SPLIT_SET_CHANGE_LAYERS;
|
||||
// Static modes don't have a ticker running to update the LEDs
|
||||
if (rgblight_status.timer_enabled == false) {
|
||||
rgblight_mode_noeeprom(rgblight_config.mode);
|
||||
}
|
||||
}
|
||||
|
||||
bool rgblight_get_layer_state(uint8_t layer) {
|
||||
uint8_t mask = 1 << layer;
|
||||
return (rgblight_status.enabled_layer_mask & mask) != 0;
|
||||
}
|
||||
|
||||
// Write any enabled LED layers into the buffer
|
||||
static void rgblight_layers_write(void) {
|
||||
uint8_t i = 0;
|
||||
// For each layer
|
||||
for (const rgblight_segment_t *const *layer_ptr = rgblight_layers; i < RGBLIGHT_MAX_LAYERS; layer_ptr++, i++) {
|
||||
if (!rgblight_get_layer_state(i)) {
|
||||
continue; // Layer is disabled
|
||||
}
|
||||
const rgblight_segment_t *segment_ptr = pgm_read_ptr(layer_ptr);
|
||||
if (segment_ptr == NULL) {
|
||||
break; // No more layers
|
||||
}
|
||||
// For each segment
|
||||
while (1) {
|
||||
rgblight_segment_t segment;
|
||||
memcpy_P(&segment, segment_ptr, sizeof(rgblight_segment_t));
|
||||
if (segment.index == RGBLIGHT_END_SEGMENT_INDEX) {
|
||||
break; // No more segments
|
||||
}
|
||||
// Write segment.count LEDs
|
||||
LED_TYPE *const limit = &led[MIN(segment.index + segment.count, RGBLED_NUM)];
|
||||
for (LED_TYPE *led_ptr = &led[segment.index]; led_ptr < limit; led_ptr++) {
|
||||
sethsv(segment.hue, segment.sat, segment.val, led_ptr);
|
||||
}
|
||||
segment_ptr++;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef RGBLIGHT_CUSTOM_DRIVER
|
||||
void rgblight_set(void) {
|
||||
LED_TYPE *start_led;
|
||||
uint16_t num_leds = clipping_num_leds;
|
||||
|
||||
# ifdef RGBLIGHT_LAYERS
|
||||
if (rgblight_layers != NULL) {
|
||||
rgblight_layers_write();
|
||||
}
|
||||
# endif
|
||||
|
||||
if (!rgblight_config.enable) {
|
||||
for (uint8_t i = effect_start_pos; i < effect_end_pos; i++) {
|
||||
led[i].r = 0;
|
||||
@@ -664,6 +718,11 @@ void rgblight_get_syncinfo(rgblight_syncinfo_t *syncinfo) {
|
||||
|
||||
/* for split keyboard slave side */
|
||||
void rgblight_update_sync(rgblight_syncinfo_t *syncinfo, bool write_to_eeprom) {
|
||||
# ifdef RGBLIGHT_LAYERS
|
||||
if (syncinfo->status.change_flags & RGBLIGHT_STATUS_CHANGE_LAYERS) {
|
||||
rgblight_status.enabled_layer_mask = syncinfo->status.enabled_layer_mask;
|
||||
}
|
||||
# endif
|
||||
if (syncinfo->status.change_flags & RGBLIGHT_STATUS_CHANGE_MODE) {
|
||||
if (syncinfo->config.enable) {
|
||||
rgblight_config.enable = 1; // == rgblight_enable_noeeprom();
|
||||
|
||||
@@ -16,8 +16,6 @@
|
||||
#ifndef RGBLIGHT_H
|
||||
#define RGBLIGHT_H
|
||||
|
||||
#include "rgblight_reconfig.h"
|
||||
|
||||
/***** rgblight_mode(mode)/rgblight_mode_noeeprom(mode) ****
|
||||
|
||||
old mode number (before 0.6.117) to new mode name table
|
||||
@@ -64,6 +62,39 @@
|
||||
|-----------------|-----------------------------------|
|
||||
*****/
|
||||
|
||||
#ifdef RGBLIGHT_ANIMATIONS
|
||||
// for backward compatibility
|
||||
# define RGBLIGHT_EFFECT_BREATHING
|
||||
# define RGBLIGHT_EFFECT_RAINBOW_MOOD
|
||||
# define RGBLIGHT_EFFECT_RAINBOW_SWIRL
|
||||
# define RGBLIGHT_EFFECT_SNAKE
|
||||
# define RGBLIGHT_EFFECT_KNIGHT
|
||||
# define RGBLIGHT_EFFECT_CHRISTMAS
|
||||
# define RGBLIGHT_EFFECT_STATIC_GRADIENT
|
||||
# define RGBLIGHT_EFFECT_RGB_TEST
|
||||
# define RGBLIGHT_EFFECT_ALTERNATING
|
||||
#endif
|
||||
|
||||
#ifdef RGBLIGHT_STATIC_PATTERNS
|
||||
# define RGBLIGHT_EFFECT_STATIC_GRADIENT
|
||||
#endif
|
||||
|
||||
// clang-format off
|
||||
|
||||
// check dynamic animation effects chose ?
|
||||
#if defined(RGBLIGHT_EFFECT_BREATHING) \
|
||||
|| defined(RGBLIGHT_EFFECT_RAINBOW_MOOD) \
|
||||
|| defined(RGBLIGHT_EFFECT_RAINBOW_SWIRL) \
|
||||
|| defined(RGBLIGHT_EFFECT_SNAKE) \
|
||||
|| defined(RGBLIGHT_EFFECT_KNIGHT) \
|
||||
|| defined(RGBLIGHT_EFFECT_CHRISTMAS) \
|
||||
|| defined(RGBLIGHT_EFFECT_RGB_TEST) \
|
||||
|| defined(RGBLIGHT_EFFECT_ALTERNATING)
|
||||
# define RGBLIGHT_USE_TIMER
|
||||
#endif
|
||||
|
||||
// clang-format on
|
||||
|
||||
#define _RGBM_SINGLE_STATIC(sym) RGBLIGHT_MODE_##sym,
|
||||
#define _RGBM_SINGLE_DYNAMIC(sym) RGBLIGHT_MODE_##sym,
|
||||
#define _RGBM_MULTI_STATIC(sym) RGBLIGHT_MODE_##sym,
|
||||
@@ -139,6 +170,32 @@ enum RGBLIGHT_EFFECT_MODE {
|
||||
# include <avr/pgmspace.h>
|
||||
# endif
|
||||
|
||||
# ifdef RGBLIGHT_LAYERS
|
||||
typedef struct {
|
||||
uint8_t index; // The first LED to light
|
||||
uint8_t count; // The number of LEDs to light
|
||||
uint8_t hue;
|
||||
uint8_t sat;
|
||||
uint8_t val;
|
||||
} rgblight_segment_t;
|
||||
|
||||
# define RGBLIGHT_END_SEGMENT_INDEX (255)
|
||||
# define RGBLIGHT_END_SEGMENTS \
|
||||
{ RGBLIGHT_END_SEGMENT_INDEX, 0, 0, 0 }
|
||||
# define RGBLIGHT_MAX_LAYERS 8
|
||||
# define RGBLIGHT_LAYER_SEGMENTS(...) \
|
||||
{ __VA_ARGS__, RGBLIGHT_END_SEGMENTS }
|
||||
# define RGBLIGHT_LAYERS_LIST(...) \
|
||||
{ __VA_ARGS__, NULL }
|
||||
|
||||
// Get/set enabled rgblight layers
|
||||
void rgblight_set_layer_state(uint8_t layer, bool enabled);
|
||||
bool rgblight_get_layer_state(uint8_t layer);
|
||||
|
||||
// Point this to an array of rgblight_segment_t arrays in keyboard_post_init_user to use rgblight layers
|
||||
extern const rgblight_segment_t *const *rgblight_layers;
|
||||
# endif
|
||||
|
||||
extern LED_TYPE led[RGBLED_NUM];
|
||||
|
||||
extern const uint8_t RGBLED_BREATHING_INTERVALS[4] PROGMEM;
|
||||
@@ -168,6 +225,9 @@ typedef struct _rgblight_status_t {
|
||||
# ifdef RGBLIGHT_SPLIT
|
||||
uint8_t change_flags;
|
||||
# endif
|
||||
# ifdef RGBLIGHT_LAYERS
|
||||
uint8_t enabled_layer_mask;
|
||||
# endif
|
||||
} rgblight_status_t;
|
||||
|
||||
/* === Utility Functions ===*/
|
||||
@@ -263,18 +323,26 @@ void rgblight_mode_eeprom_helper(uint8_t mode, bool write_to_eeprom);
|
||||
# define EZ_RGB(val) rgblight_show_solid_color((val >> 16) & 0xFF, (val >> 8) & 0xFF, val & 0xFF)
|
||||
void rgblight_show_solid_color(uint8_t r, uint8_t g, uint8_t b);
|
||||
|
||||
# ifdef RGBLIGHT_USE_TIMER
|
||||
void rgblight_task(void);
|
||||
|
||||
void rgblight_timer_init(void);
|
||||
void rgblight_timer_enable(void);
|
||||
void rgblight_timer_disable(void);
|
||||
void rgblight_timer_toggle(void);
|
||||
# else
|
||||
# define rgblight_task()
|
||||
# define rgblight_timer_init()
|
||||
# define rgblight_timer_enable()
|
||||
# define rgblight_timer_disable()
|
||||
# define rgblight_timer_toggle()
|
||||
# endif
|
||||
|
||||
# ifdef RGBLIGHT_SPLIT
|
||||
# define RGBLIGHT_STATUS_CHANGE_MODE (1 << 0)
|
||||
# define RGBLIGHT_STATUS_CHANGE_HSVS (1 << 1)
|
||||
# define RGBLIGHT_STATUS_CHANGE_TIMER (1 << 2)
|
||||
# define RGBLIGHT_STATUS_ANIMATION_TICK (1 << 3)
|
||||
# define RGBLIGHT_STATUS_CHANGE_LAYERS (1 << 4)
|
||||
|
||||
typedef struct _rgblight_syncinfo_t {
|
||||
rgblight_config_t config;
|
||||
|
||||
@@ -1,29 +0,0 @@
|
||||
#ifndef RGBLIGHT_RECONFIG_H
|
||||
#define RGBLIGHT_RECONFIG_H
|
||||
|
||||
#ifdef RGBLIGHT_ANIMATIONS
|
||||
// for backward compatibility
|
||||
# define RGBLIGHT_EFFECT_BREATHING
|
||||
# define RGBLIGHT_EFFECT_RAINBOW_MOOD
|
||||
# define RGBLIGHT_EFFECT_RAINBOW_SWIRL
|
||||
# define RGBLIGHT_EFFECT_SNAKE
|
||||
# define RGBLIGHT_EFFECT_KNIGHT
|
||||
# define RGBLIGHT_EFFECT_CHRISTMAS
|
||||
# define RGBLIGHT_EFFECT_STATIC_GRADIENT
|
||||
# define RGBLIGHT_EFFECT_RGB_TEST
|
||||
# define RGBLIGHT_EFFECT_ALTERNATING
|
||||
#endif
|
||||
|
||||
#ifdef RGBLIGHT_STATIC_PATTERNS
|
||||
# define RGBLIGHT_EFFECT_STATIC_GRADIENT
|
||||
#endif
|
||||
|
||||
// check dynamic animation effects chose ?
|
||||
#if defined(RGBLIGHT_EFFECT_BREATHING) || defined(RGBLIGHT_EFFECT_RAINBOW_MOOD) || defined(RGBLIGHT_EFFECT_RAINBOW_SWIRL) || defined(RGBLIGHT_EFFECT_SNAKE) || defined(RGBLIGHT_EFFECT_KNIGHT) || defined(RGBLIGHT_EFFECT_CHRISTMAS) || defined(RGBLIGHT_EFFECT_RGB_TEST) || defined(RGBLIGHT_EFFECT_ALTERNATING)
|
||||
# define RGBLIGHT_USE_TIMER
|
||||
# ifndef RGBLIGHT_ANIMATIONS
|
||||
# define RGBLIGHT_ANIMATIONS // for backward compatibility
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#endif // RGBLIGHT_RECONFIG_H
|
||||
@@ -49,7 +49,7 @@ static void default_layer_state_set(layer_state_t state) {
|
||||
*
|
||||
* Print out the hex value of the 32-bit default layer state, as well as the value of the highest bit.
|
||||
*/
|
||||
void default_layer_debug(void) { dprintf("%08lX(%u)", default_layer_state, biton32(default_layer_state)); }
|
||||
void default_layer_debug(void) { dprintf("%08lX(%u)", default_layer_state, get_highest_layer(default_layer_state)); }
|
||||
|
||||
/** \brief Default Layer Set
|
||||
*
|
||||
@@ -178,7 +178,7 @@ void layer_xor(layer_state_t state) { layer_state_set(layer_state ^ state); }
|
||||
*
|
||||
* Print out the hex value of the 32-bit layer state, as well as the value of the highest bit.
|
||||
*/
|
||||
void layer_debug(void) { dprintf("%08lX(%u)", layer_state, biton32(layer_state)); }
|
||||
void layer_debug(void) { dprintf("%08lX(%u)", layer_state, get_highest_layer(layer_state)); }
|
||||
#endif
|
||||
|
||||
#if !defined(NO_ACTION_LAYER) && !defined(STRICT_LAYER_RELEASE)
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
#include "timer.h"
|
||||
#include "led.h"
|
||||
#include "host.h"
|
||||
#include "rgblight_reconfig.h"
|
||||
|
||||
#ifdef PROTOCOL_LUFA
|
||||
# include "lufa.h"
|
||||
@@ -30,23 +29,6 @@ static bool rgblight_enabled;
|
||||
static bool is_suspended;
|
||||
#endif
|
||||
|
||||
#define wdt_intr_enable(value) \
|
||||
__asm__ __volatile__("in __tmp_reg__,__SREG__" \
|
||||
"\n\t" \
|
||||
"cli" \
|
||||
"\n\t" \
|
||||
"wdr" \
|
||||
"\n\t" \
|
||||
"sts %0,%1" \
|
||||
"\n\t" \
|
||||
"out __SREG__,__tmp_reg__" \
|
||||
"\n\t" \
|
||||
"sts %0,%2" \
|
||||
"\n\t" \
|
||||
: /* no outputs */ \
|
||||
: "M"(_SFR_MEM_ADDR(_WD_CONTROL_REG)), "r"(_BV(_WD_CHANGE_BIT) | _BV(WDE)), "r"((uint8_t)((value & 0x08 ? _WD_PS3_MASK : 0x00) | _BV(WDIE) | (value & 0x07))) \
|
||||
: "r0")
|
||||
|
||||
/** \brief Suspend idle
|
||||
*
|
||||
* FIXME: needs doc
|
||||
@@ -122,9 +104,7 @@ static void power_down(uint8_t wdto) {
|
||||
// stop_all_notes();
|
||||
# endif /* AUDIO_ENABLE */
|
||||
# if defined(RGBLIGHT_SLEEP) && defined(RGBLIGHT_ENABLE)
|
||||
# ifdef RGBLIGHT_ANIMATIONS
|
||||
rgblight_timer_disable();
|
||||
# endif
|
||||
if (!is_suspended) {
|
||||
is_suspended = true;
|
||||
rgblight_enabled = rgblight_config.enable;
|
||||
@@ -204,9 +184,7 @@ void suspend_wakeup_init(void) {
|
||||
# endif
|
||||
rgblight_enable_noeeprom();
|
||||
}
|
||||
# ifdef RGBLIGHT_ANIMATIONS
|
||||
rgblight_timer_enable();
|
||||
# endif
|
||||
#endif
|
||||
suspend_wakeup_init_kb();
|
||||
}
|
||||
|
||||
@@ -7,21 +7,22 @@
|
||||
#include <avr/wdt.h>
|
||||
#include <avr/interrupt.h>
|
||||
|
||||
#define wdt_intr_enable(value) \
|
||||
__asm__ __volatile__("in __tmp_reg__,__SREG__" \
|
||||
"\n\t" \
|
||||
"cli" \
|
||||
"\n\t" \
|
||||
"wdr" \
|
||||
"\n\t" \
|
||||
"sts %0,%1" \
|
||||
"\n\t" \
|
||||
"out __SREG__,__tmp_reg__" \
|
||||
"\n\t" \
|
||||
"sts %0,%2" \
|
||||
"\n\t" \
|
||||
: /* no outputs */ \
|
||||
: "M"(_SFR_MEM_ADDR(_WD_CONTROL_REG)), "r"(_BV(_WD_CHANGE_BIT) | _BV(WDE)), "r"((uint8_t)((value & 0x08 ? _WD_PS3_MASK : 0x00) | _BV(WDIE) | (value & 0x07))) \
|
||||
: "r0")
|
||||
// clang-format off
|
||||
#define wdt_intr_enable(value) \
|
||||
__asm__ __volatile__ ( \
|
||||
"in __tmp_reg__,__SREG__" "\n\t" \
|
||||
"cli" "\n\t" \
|
||||
"wdr" "\n\t" \
|
||||
"sts %0,%1" "\n\t" \
|
||||
"out __SREG__,__tmp_reg__" "\n\t" \
|
||||
"sts %0,%2" "\n\t" \
|
||||
: /* no outputs */ \
|
||||
: "M" (_SFR_MEM_ADDR(_WD_CONTROL_REG)), \
|
||||
"r" (_BV(_WD_CHANGE_BIT) | _BV(WDE)), \
|
||||
"r" ((uint8_t) ((value & 0x08 ? _WD_PS3_MASK : 0x00) | \
|
||||
_BV(WDIE) | (value & 0x07)) ) \
|
||||
: "r0" \
|
||||
)
|
||||
// clang-format on
|
||||
|
||||
#endif
|
||||
|
||||
@@ -51,9 +51,7 @@ void suspend_power_down(void) {
|
||||
// shouldn't power down TPM/FTM if we want a breathing LED
|
||||
// also shouldn't power down USB
|
||||
#if defined(RGBLIGHT_SLEEP) && defined(RGBLIGHT_ENABLE)
|
||||
# ifdef RGBLIGHT_ANIMATIONS
|
||||
rgblight_timer_disable();
|
||||
# endif
|
||||
if (!is_suspended) {
|
||||
is_suspended = true;
|
||||
rgblight_enabled = rgblight_config.enable;
|
||||
@@ -126,9 +124,7 @@ void suspend_wakeup_init(void) {
|
||||
if (rgblight_enabled) {
|
||||
rgblight_enable_noeeprom();
|
||||
}
|
||||
# ifdef RGBLIGHT_ANIMATIONS
|
||||
rgblight_timer_enable();
|
||||
# endif
|
||||
#endif
|
||||
suspend_wakeup_init_kb();
|
||||
}
|
||||
|
||||
@@ -335,7 +335,7 @@ MATRIX_LOOP_END:
|
||||
matrix_scan_perf_task();
|
||||
#endif
|
||||
|
||||
#if defined(RGBLIGHT_ANIMATIONS) && defined(RGBLIGHT_ENABLE)
|
||||
#if defined(RGBLIGHT_ENABLE)
|
||||
rgblight_task();
|
||||
#endif
|
||||
|
||||
|
||||
@@ -32,9 +32,8 @@
|
||||
#include "sendchar.h"
|
||||
#include "debug.h"
|
||||
#include "printf.h"
|
||||
#include "rgblight_reconfig.h"
|
||||
|
||||
#if (defined(RGB_MIDI) || defined(RGBLIGHT_ANIMATIONS)) && defined(RGBLIGHT_ENABLE)
|
||||
#if defined(RGBLIGHT_ENABLE)
|
||||
# include "rgblight.h"
|
||||
#endif
|
||||
#ifdef SLEEP_LED_ENABLE
|
||||
|
||||
@@ -54,7 +54,6 @@
|
||||
#include "quantum.h"
|
||||
#include <util/atomic.h>
|
||||
#include "outputselect.h"
|
||||
#include "rgblight_reconfig.h"
|
||||
|
||||
#ifdef NKRO_ENABLE
|
||||
# include "keycode_config.h"
|
||||
@@ -78,7 +77,7 @@ extern keymap_config_t keymap_config;
|
||||
# include "virtser.h"
|
||||
#endif
|
||||
|
||||
#if (defined(RGB_MIDI) || defined(RGBLIGHT_ANIMATIONS)) && defined(RGBLIGHT_ENABLE)
|
||||
#if defined(RGBLIGHT_ENABLE)
|
||||
# include "rgblight.h"
|
||||
#endif
|
||||
|
||||
|
||||
@@ -20,9 +20,8 @@
|
||||
#include "timer.h"
|
||||
#include "uart.h"
|
||||
#include "debug.h"
|
||||
#include "rgblight_reconfig.h"
|
||||
|
||||
#if (defined(RGB_MIDI) || defined(RGBLIGHT_ANIMATIONS)) && defined(RGBLIGHT_ENABLE)
|
||||
#if defined(RGBLIGHT_ENABLE)
|
||||
# include "rgblight.h"
|
||||
#endif
|
||||
|
||||
|
||||
61
users/brett/brett.c
Normal file
61
users/brett/brett.c
Normal file
@@ -0,0 +1,61 @@
|
||||
#include "brett.h"
|
||||
|
||||
char * get_key(uint16_t keycode) {
|
||||
switch (keycode) {
|
||||
case FAT_ARROW:
|
||||
return "=>";
|
||||
case SKINNY_ARROW:
|
||||
return "->";
|
||||
case REVERSE_ARROW:
|
||||
return "<-";
|
||||
case CONCAT:
|
||||
return "<>";
|
||||
case MAP:
|
||||
return "<$>";
|
||||
case MAP_FLIPPED:
|
||||
return "<#>";
|
||||
case FLAP:
|
||||
return "<@>";
|
||||
case PIPE:
|
||||
return "|>";
|
||||
case ALT:
|
||||
return "<|>";
|
||||
case APPLY:
|
||||
return "<*>";
|
||||
case AND:
|
||||
return "&&";
|
||||
case OR:
|
||||
return "||";
|
||||
case BIND:
|
||||
return ">>=";
|
||||
case BIND_FLIPPED:
|
||||
return "=<<";
|
||||
case DOUBLE_COLON:
|
||||
return "::";
|
||||
case VOID_LEFT:
|
||||
return "<$";
|
||||
case VOID_RIGHT:
|
||||
return "$>";
|
||||
default:
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
bool pressed = record->event.pressed;
|
||||
switch (keycode) {
|
||||
case FAT_ARROW ... DOUBLE_COLON:
|
||||
if (pressed) {
|
||||
send_string(get_key(keycode));
|
||||
}
|
||||
return false;
|
||||
case FLASH:
|
||||
if (!pressed) {
|
||||
SEND_STRING("make -j8 --output-sync " QMK_KEYBOARD ":" QMK_KEYMAP ":flash" SS_TAP(X_ENTER));
|
||||
reset_keyboard();
|
||||
}
|
||||
return false;
|
||||
default:
|
||||
return true;
|
||||
}
|
||||
}
|
||||
25
users/brett/brett.h
Normal file
25
users/brett/brett.h
Normal file
@@ -0,0 +1,25 @@
|
||||
#pragma once
|
||||
|
||||
enum userspace_custom_keycodes {
|
||||
PLACEHOLDER = SAFE_RANGE, // Can always be here
|
||||
FAT_ARROW, // =>
|
||||
SKINNY_ARROW, // ->
|
||||
REVERSE_ARROW, // <-
|
||||
CONCAT, // <>
|
||||
MAP, // <$>
|
||||
MAP_FLIPPED, // <#>
|
||||
FLAP, // <@>
|
||||
PIPE, // |>
|
||||
ALT, // <|>
|
||||
APPLY, // <*>
|
||||
AND, // &&
|
||||
OR, // ||
|
||||
BIND, // >>=
|
||||
BIND_FLIPPED, // =<<
|
||||
VOID_LEFT, // <$
|
||||
VOID_RIGHT, // $>
|
||||
DOUBLE_COLON, // ::
|
||||
FLASH // Handle keyboard flashing
|
||||
};
|
||||
|
||||
bool process_record_keymap(uint16_t keycode, keyrecord_t *record);
|
||||
1
users/brett/rules.mk
Normal file
1
users/brett/rules.mk
Normal file
@@ -0,0 +1 @@
|
||||
SRC += brett.c
|
||||
@@ -7,11 +7,6 @@
|
||||
rgblight_config_t rgblight_config;
|
||||
#endif
|
||||
|
||||
#if KEYBOARD_helix_rev2
|
||||
extern uint8_t is_master;
|
||||
bool is_keyboard_master(void) { return is_master; }
|
||||
#endif
|
||||
|
||||
static void render_logo(void)
|
||||
{
|
||||
static const char PROGMEM font_logo[] = {
|
||||
|
||||
Reference in New Issue
Block a user