Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2b66acf04a | ||
|
|
5ac6fe1888 | ||
|
|
979ac0d8da | ||
|
|
7a89b51018 | ||
|
|
2a05d433c9 | ||
|
|
1aa40dde46 | ||
|
|
2ffb08843b | ||
|
|
2a8ccafe6e | ||
|
|
1757960b7b | ||
|
|
668121bbf8 | ||
|
|
483ab88489 | ||
|
|
dbbab40981 | ||
|
|
20a0fa9209 | ||
|
|
2d14d12c74 | ||
|
|
0ba352356d | ||
|
|
a4fd5e2491 |
No files matched your search
+1
-1
@@ -23,4 +23,4 @@ endif
|
|||||||
|
|
||||||
# Generate the keymap.c
|
# Generate the keymap.c
|
||||||
$(KEYBOARD_OUTPUT)/src/keymap.c: $(KEYMAP_JSON)
|
$(KEYBOARD_OUTPUT)/src/keymap.c: $(KEYMAP_JSON)
|
||||||
bin/qmk json-keymap --quiet --output $(KEYMAP_C) $(KEYMAP_JSON)
|
bin/qmk json2c --quiet --output $(KEYMAP_C) $(KEYMAP_JSON)
|
||||||
+104
-1
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
QMK can leverage the Analog-to-Digital Converter (ADC) on supported MCUs to measure voltages on certain pins. This can be useful for implementing things such as battery level indicators for Bluetooth keyboards, or volume controls using a potentiometer, as opposed to a [rotary encoder](feature_encoders.md).
|
QMK can leverage the Analog-to-Digital Converter (ADC) on supported MCUs to measure voltages on certain pins. This can be useful for implementing things such as battery level indicators for Bluetooth keyboards, or volume controls using a potentiometer, as opposed to a [rotary encoder](feature_encoders.md).
|
||||||
|
|
||||||
This driver is currently AVR-only. The values returned are 10-bit integers (0-1023) mapped between 0V and VCC (usually 5V or 3.3V).
|
This driver currently supports both AVR and a limited selection of ARM devices. On AVR devices, the values returned are 10-bit integers (0-1023) mapped between 0V and VCC (usually 5V or 3.3V). On supported ARM devices, there is more flexibility in control of operation through `#define`s, but by default the values returned are 12-bit integers (0-4095) mapped between 0V and VCC (usually 3.3V).
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
@@ -20,6 +20,8 @@ Then place this include at the top of your code:
|
|||||||
|
|
||||||
## Channels
|
## Channels
|
||||||
|
|
||||||
|
### AVR
|
||||||
|
|
||||||
|Channel|AT90USB64/128|ATmega16/32U4|ATmega32A|ATmega328P|
|
|Channel|AT90USB64/128|ATmega16/32U4|ATmega32A|ATmega328P|
|
||||||
|-------|-------------|-------------|---------|----------|
|
|-------|-------------|-------------|---------|----------|
|
||||||
|0 |`F0` |`F0` |`A0` |`C0` |
|
|0 |`F0` |`F0` |`A0` |`C0` |
|
||||||
@@ -39,8 +41,84 @@ Then place this include at the top of your code:
|
|||||||
|
|
||||||
<sup>\* The ATmega328P possesses two extra ADC channels; however, they are not present on the DIP pinout, and are not shared with GPIO pins. You can use `adc_read()` directly to gain access to these.</sup>
|
<sup>\* The ATmega328P possesses two extra ADC channels; however, they are not present on the DIP pinout, and are not shared with GPIO pins. You can use `adc_read()` directly to gain access to these.</sup>
|
||||||
|
|
||||||
|
### ARM
|
||||||
|
|
||||||
|
Note that some of these pins are doubled-up on ADCs with the same channel. This is because the pins can be used for either ADC.
|
||||||
|
|
||||||
|
Also note that the F0 and F3 use different numbering schemes. The F0 has a single ADC and the channels are 0-based, whereas the F3 has 4 ADCs and the channels are 1 based. This is because the F0 uses the `ADCv1` implementation of the ADC, whereas the F3 uses the `ADCv3` implementation.
|
||||||
|
|
||||||
|
|ADC|Channel|STM32F0XX|STM32F3XX|
|
||||||
|
|---|-------|---------|---------|
|
||||||
|
|1 |0 |`A0` | |
|
||||||
|
|1 |1 |`A1` |`A0` |
|
||||||
|
|1 |2 |`A2` |`A1` |
|
||||||
|
|1 |3 |`A3` |`A2` |
|
||||||
|
|1 |4 |`A4` |`A3` |
|
||||||
|
|1 |5 |`A5` |`F4` |
|
||||||
|
|1 |6 |`A6` |`C0` |
|
||||||
|
|1 |7 |`A7` |`C1` |
|
||||||
|
|1 |8 |`B0` |`C2` |
|
||||||
|
|1 |9 |`B1` |`C3` |
|
||||||
|
|1 |10 |`C0` |`F2` |
|
||||||
|
|1 |11 |`C1` | |
|
||||||
|
|1 |12 |`C2` | |
|
||||||
|
|1 |13 |`C3` | |
|
||||||
|
|1 |14 |`C4` | |
|
||||||
|
|1 |15 |`C5` | |
|
||||||
|
|1 |16 | | |
|
||||||
|
|2 |1 | |`A4` |
|
||||||
|
|2 |2 | |`A5` |
|
||||||
|
|2 |3 | |`A6` |
|
||||||
|
|2 |4 | |`A7` |
|
||||||
|
|2 |5 | |`C4` |
|
||||||
|
|2 |6 | |`C0` |
|
||||||
|
|2 |7 | |`C1` |
|
||||||
|
|2 |8 | |`C2` |
|
||||||
|
|2 |9 | |`C3` |
|
||||||
|
|2 |10 | |`F2` |
|
||||||
|
|2 |11 | |`C5` |
|
||||||
|
|2 |12 | |`B2` |
|
||||||
|
|2 |13 | | |
|
||||||
|
|2 |14 | | |
|
||||||
|
|2 |15 | | |
|
||||||
|
|2 |16 | | |
|
||||||
|
|3 |1 | |`B1` |
|
||||||
|
|3 |2 | |`E9` |
|
||||||
|
|3 |3 | |`E13` |
|
||||||
|
|3 |4 | | |
|
||||||
|
|3 |5 | | |
|
||||||
|
|3 |6 | |`E8` |
|
||||||
|
|3 |7 | |`D10` |
|
||||||
|
|3 |8 | |`D11` |
|
||||||
|
|3 |9 | |`D12` |
|
||||||
|
|3 |10 | |`D13` |
|
||||||
|
|3 |11 | |`D14` |
|
||||||
|
|3 |12 | |`B0` |
|
||||||
|
|3 |13 | |`E7` |
|
||||||
|
|3 |14 | |`E10` |
|
||||||
|
|3 |15 | |`E11` |
|
||||||
|
|3 |16 | |`E12` |
|
||||||
|
|4 |1 | |`E14` |
|
||||||
|
|4 |2 | |`B12` |
|
||||||
|
|4 |3 | |`B13` |
|
||||||
|
|4 |4 | |`B14` |
|
||||||
|
|4 |5 | |`B15` |
|
||||||
|
|4 |6 | |`E8` |
|
||||||
|
|4 |7 | |`D10` |
|
||||||
|
|4 |8 | |`D11` |
|
||||||
|
|4 |9 | |`D12` |
|
||||||
|
|4 |10 | |`D13` |
|
||||||
|
|4 |11 | |`D14` |
|
||||||
|
|4 |12 | |`D8` |
|
||||||
|
|4 |13 | |`D9` |
|
||||||
|
|4 |14 | | |
|
||||||
|
|4 |15 | | |
|
||||||
|
|4 |16 | | |
|
||||||
|
|
||||||
## Functions
|
## Functions
|
||||||
|
|
||||||
|
### AVR
|
||||||
|
|
||||||
|Function |Description |
|
|Function |Description |
|
||||||
|----------------------------|-------------------------------------------------------------------------------------------------------------------|
|
|----------------------------|-------------------------------------------------------------------------------------------------------------------|
|
||||||
|`analogReference(mode)` |Sets the analog voltage reference source. Must be one of `ADC_REF_EXTERNAL`, `ADC_REF_POWER` or `ADC_REF_INTERNAL`.|
|
|`analogReference(mode)` |Sets the analog voltage reference source. Must be one of `ADC_REF_EXTERNAL`, `ADC_REF_POWER` or `ADC_REF_INTERNAL`.|
|
||||||
@@ -48,3 +126,28 @@ Then place this include at the top of your code:
|
|||||||
|`analogReadPin(pin)` |Reads the value from the specified QMK pin, eg. `F6` for ADC6 on the ATmega32U4. |
|
|`analogReadPin(pin)` |Reads the value from the specified QMK pin, eg. `F6` for ADC6 on the ATmega32U4. |
|
||||||
|`pinToMux(pin)` |Translates a given QMK pin to a mux value. If an unsupported pin is given, returns the mux value for "0V (GND)". |
|
|`pinToMux(pin)` |Translates a given QMK pin to a mux value. If an unsupported pin is given, returns the mux value for "0V (GND)". |
|
||||||
|`adc_read(mux)` |Reads the value from the ADC according to the specified mux. See your MCU's datasheet for more information. |
|
|`adc_read(mux)` |Reads the value from the ADC according to the specified mux. See your MCU's datasheet for more information. |
|
||||||
|
|
||||||
|
### ARM
|
||||||
|
|
||||||
|
Note that care was taken to match all of the functions used for AVR devices, however complications in the ARM platform prevent that from always being possible. For example, the `STM32` chips do not have assigned Arduino pins. We could use the default pin numbers, but those numbers change based on the package type of the device. For this reason, please specify your target pins with their identifiers (`A0`, `F3`, etc.). Also note that there are some variants of functions that accept the target ADC for the pin. Some pins can be used for multiple ADCs, and this specified can help you pick which ADC will be used to interact with that pin.
|
||||||
|
|
||||||
|
|Function |Description |
|
||||||
|
|----------------------------|--------------------------------------------------------------------------------------------------------------------|
|
||||||
|
|`analogReadPin(pin)` |Reads the value from the specified QMK pin, eg. `A0` for channel 0 on the STM32F0 and ADC1 channel 1 on the STM32F3. Note that if a pin can be used for multiple ADCs, it will pick the lower numbered ADC for this function. eg. `C0` will be channel 6 of ADC 1 when it could be used for ADC 2 as well.|
|
||||||
|
|`analogReadPinAdc(pin, adc)`|Reads the value from the specified QMK pin and ADC, eg. `C0, 1` will read from channel 6, ADC 2 instead of ADC 1. Note that the ADCs are 0-indexed for this function.|
|
||||||
|
|`pinToMux(pin)` |Translates a given QMK pin to a channel and ADC combination. If an unsupported pin is given, returns the mux value for "0V (GND)".|
|
||||||
|
|`adc_read(mux)` |Reads the value from the ADC according to the specified pin and adc combination. See your MCU's datasheet for more information.|
|
||||||
|
|
||||||
|
## Configuration
|
||||||
|
|
||||||
|
## ARM
|
||||||
|
|
||||||
|
The ARM implementation of the ADC has a few additional options that you can override in your own keyboards and keymaps to change how it operates.
|
||||||
|
|
||||||
|
|`#define` |Type |Default |Description|
|
||||||
|
|-------------------|------|---------------------|-----------|
|
||||||
|
|ADC_CIRCULAR_BUFFER|`bool`|`false` |If `TRUE`, then the implementation will use a circular buffer.|
|
||||||
|
|ADC_NUM_CHANNELS |`int` |`1` |Sets the number of channels that will be scanned as part of an ADC operation. The current implementation only supports `1`.|
|
||||||
|
|ADC_BUFFER_DEPTH |`int` |`2` |Sets the depth of each result. Since we are only getting a 12-bit result by default, we set this to `2` bytes so we can contain our one value. This could be set to 1 if you opt for a 8-bit or lower result.|
|
||||||
|
|ADC_SAMPLING_RATE |`int` |`ADC_SMPR_SMP_1P5` |Sets the sampling rate of the ADC. By default, it is set to the fastest setting. Please consult the corresponding `hal_adc_lld.h` in ChibiOS for your specific microcontroller for further documentation on your available options.|
|
||||||
|
|ADC_RESOLUTION |`int` |`ADC_CFGR1_RES_12BIT`|The resolution of your result. We choose 12 bit by default, but you can opt for 12, 10, 8, or 6 bit. Please consult the corresponding `hal_adc_lld.h` in ChibiOS for your specific microcontroller for further documentation on your available options.|
|
||||||
+2
-2
@@ -231,14 +231,14 @@ Check your environment and report problems only:
|
|||||||
|
|
||||||
qmk doctor -n
|
qmk doctor -n
|
||||||
|
|
||||||
## `qmk json-keymap`
|
## `qmk json2c`
|
||||||
|
|
||||||
Creates a keymap.c from a QMK Configurator export.
|
Creates a keymap.c from a QMK Configurator export.
|
||||||
|
|
||||||
**Usage**:
|
**Usage**:
|
||||||
|
|
||||||
```
|
```
|
||||||
qmk json-keymap [-o OUTPUT] filename
|
qmk json2c [-o OUTPUT] filename
|
||||||
```
|
```
|
||||||
|
|
||||||
## `qmk kle2json`
|
## `qmk kle2json`
|
||||||
|
|||||||
@@ -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
|
* pin the DI on the WS2812 is hooked-up to
|
||||||
* `#define RGBLIGHT_ANIMATIONS`
|
* `#define RGBLIGHT_ANIMATIONS`
|
||||||
* run RGB 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`
|
* `#define RGBLED_NUM 12`
|
||||||
* number of LEDs
|
* number of LEDs
|
||||||
* `#define RGBLIGHT_SPLIT`
|
* `#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};
|
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
|
## 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:
|
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(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) |
|
|`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
|
#### query
|
||||||
|Function |Description |
|
|Function |Description |
|
||||||
|-----------------------|-----------------|
|
|-----------------------|-----------------|
|
||||||
|
|||||||
+2
-2
@@ -215,14 +215,14 @@ qmk doctor [-y] [-n]
|
|||||||
|
|
||||||
qmk doctor -n
|
qmk doctor -n
|
||||||
|
|
||||||
## `qmk json-keymap`
|
## `qmk json2c`
|
||||||
|
|
||||||
QMK Configurator からエクスポートしたものから keymap.c を生成します。
|
QMK Configurator からエクスポートしたものから keymap.c を生成します。
|
||||||
|
|
||||||
**使用法**:
|
**使用法**:
|
||||||
|
|
||||||
```
|
```
|
||||||
qmk json-keymap [-o OUTPUT] filename
|
qmk json2c [-o OUTPUT] filename
|
||||||
```
|
```
|
||||||
|
|
||||||
## `qmk kle2json`
|
## `qmk kle2json`
|
||||||
|
|||||||
@@ -0,0 +1,207 @@
|
|||||||
|
/* Copyright 2019 Drew Mills
|
||||||
|
*
|
||||||
|
* 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 "analog.h"
|
||||||
|
#include "quantum.h"
|
||||||
|
|
||||||
|
/* User configurable ADC options */
|
||||||
|
#ifndef ADC_CIRCULAR_BUFFER
|
||||||
|
# define ADC_CIRCULAR_BUFFER FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef ADC_NUM_CHANNELS
|
||||||
|
# define ADC_NUM_CHANNELS 1
|
||||||
|
#elif ADC_NUM_CHANNELS != 1
|
||||||
|
# error "The ARM ADC implementation currently only supports reading one channel at a time."
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef ADC_BUFFER_DEPTH
|
||||||
|
# define ADC_BUFFER_DEPTH 2
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// For more sampling rate options, look at hal_adc_lld.h in ChibiOS
|
||||||
|
#ifndef ADC_SAMPLING_RATE
|
||||||
|
# define ADC_SAMPLING_RATE ADC_SMPR_SMP_1P5
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// Options are 12, 10, 8, and 6 bit.
|
||||||
|
#ifndef ADC_RESOLUTION
|
||||||
|
# define ADC_RESOLUTION ADC_CFGR1_RES_12BIT
|
||||||
|
#endif
|
||||||
|
|
||||||
|
static ADCConfig adcCfg = {};
|
||||||
|
static adcsample_t sampleBuffer[ADC_NUM_CHANNELS * ADC_BUFFER_DEPTH];
|
||||||
|
|
||||||
|
// Initialize to max number of ADCs, set to empty object to initialize all to false.
|
||||||
|
#if defined(STM32F0XX)
|
||||||
|
static bool adcInitialized[1] = {};
|
||||||
|
#elif defined(STM32F3XX)
|
||||||
|
static bool adcInitialized[4] = {};
|
||||||
|
#else
|
||||||
|
# error "adcInitialized has not been implemented for this ARM microcontroller."
|
||||||
|
#endif
|
||||||
|
|
||||||
|
static ADCConversionGroup adcConversionGroup = {
|
||||||
|
ADC_CIRCULAR_BUFFER,
|
||||||
|
(uint16_t)(ADC_NUM_CHANNELS),
|
||||||
|
NULL, // No end callback
|
||||||
|
NULL, // No error callback
|
||||||
|
#if defined(STM32F0XX)
|
||||||
|
ADC_CFGR1_CONT | ADC_RESOLUTION,
|
||||||
|
ADC_TR(0, 0).ADC_SAMPLING_RATE,
|
||||||
|
NULL, // Doesn't specify a default channel
|
||||||
|
#elif defined(STM32F3XX)
|
||||||
|
ADC_CFGR_CONT | ADC_RESOLUTION,
|
||||||
|
ADC_TR(0, 4095),
|
||||||
|
{
|
||||||
|
ADC_SAMPLING_RATE,
|
||||||
|
ADC_SAMPLING_RATE,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
0, // Doesn't specify a default channel
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
},
|
||||||
|
#endif
|
||||||
|
};
|
||||||
|
|
||||||
|
static inline ADCDriver* intToADCDriver(uint8_t adcInt) {
|
||||||
|
ADCDriver* target;
|
||||||
|
|
||||||
|
switch (adcInt) {
|
||||||
|
// clang-format off
|
||||||
|
#if STM32_ADC_USE_ADC1
|
||||||
|
case 0: target = &ADCD1; break;
|
||||||
|
#endif
|
||||||
|
#if STM32_ADC_USE_ADC2
|
||||||
|
case 1: target = &ADCD2; break;
|
||||||
|
#endif
|
||||||
|
#if STM32_ADC_USE_ADC3
|
||||||
|
case 2: target = &ADCD3; break;
|
||||||
|
#endif
|
||||||
|
#if STM32_ADC_USE_ADC4
|
||||||
|
case 3: target = &ADCD4; break;
|
||||||
|
#endif
|
||||||
|
default: target = NULL; break;
|
||||||
|
// clang-format on
|
||||||
|
}
|
||||||
|
|
||||||
|
return target;
|
||||||
|
}
|
||||||
|
|
||||||
|
static inline void manageAdcInitializationDriver(uint8_t adc, ADCDriver* adcDriver) {
|
||||||
|
if (!adcInitialized[adc]) {
|
||||||
|
adcStart(adcDriver, &adcCfg);
|
||||||
|
adcInitialized[adc] = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
static inline void manageAdcInitialization(uint8_t adc) { manageAdcInitializationDriver(adc, intToADCDriver(adc)); }
|
||||||
|
|
||||||
|
pin_and_adc pinToMux(pin_t pin) {
|
||||||
|
switch (pin) {
|
||||||
|
// clang-format off
|
||||||
|
#if defined(STM32F0XX)
|
||||||
|
case A0: return (pin_and_adc){ ADC_CHANNEL_IN0, 0 };
|
||||||
|
case A1: return (pin_and_adc){ ADC_CHANNEL_IN1, 0 };
|
||||||
|
case A2: return (pin_and_adc){ ADC_CHANNEL_IN2, 0 };
|
||||||
|
case A3: return (pin_and_adc){ ADC_CHANNEL_IN3, 0 };
|
||||||
|
case A4: return (pin_and_adc){ ADC_CHANNEL_IN4, 0 };
|
||||||
|
case A5: return (pin_and_adc){ ADC_CHANNEL_IN5, 0 };
|
||||||
|
case A6: return (pin_and_adc){ ADC_CHANNEL_IN6, 0 };
|
||||||
|
case A7: return (pin_and_adc){ ADC_CHANNEL_IN7, 0 };
|
||||||
|
case B0: return (pin_and_adc){ ADC_CHANNEL_IN8, 0 };
|
||||||
|
case B1: return (pin_and_adc){ ADC_CHANNEL_IN9, 0 };
|
||||||
|
case C0: return (pin_and_adc){ ADC_CHANNEL_IN10, 0 };
|
||||||
|
case C1: return (pin_and_adc){ ADC_CHANNEL_IN11, 0 };
|
||||||
|
case C2: return (pin_and_adc){ ADC_CHANNEL_IN12, 0 };
|
||||||
|
case C3: return (pin_and_adc){ ADC_CHANNEL_IN13, 0 };
|
||||||
|
case C4: return (pin_and_adc){ ADC_CHANNEL_IN14, 0 };
|
||||||
|
case C5: return (pin_and_adc){ ADC_CHANNEL_IN15, 0 };
|
||||||
|
#elif defined(STM32F3XX)
|
||||||
|
case A0: return (pin_and_adc){ ADC_CHANNEL_IN1, 0 };
|
||||||
|
case A1: return (pin_and_adc){ ADC_CHANNEL_IN2, 0 };
|
||||||
|
case A2: return (pin_and_adc){ ADC_CHANNEL_IN3, 0 };
|
||||||
|
case A3: return (pin_and_adc){ ADC_CHANNEL_IN4, 0 };
|
||||||
|
case A4: return (pin_and_adc){ ADC_CHANNEL_IN1, 1 };
|
||||||
|
case A5: return (pin_and_adc){ ADC_CHANNEL_IN2, 1 };
|
||||||
|
case A6: return (pin_and_adc){ ADC_CHANNEL_IN3, 1 };
|
||||||
|
case A7: return (pin_and_adc){ ADC_CHANNEL_IN4, 1 };
|
||||||
|
case B0: return (pin_and_adc){ ADC_CHANNEL_IN12, 2 };
|
||||||
|
case B1: return (pin_and_adc){ ADC_CHANNEL_IN1, 2 };
|
||||||
|
case B2: return (pin_and_adc){ ADC_CHANNEL_IN12, 1 };
|
||||||
|
case B12: return (pin_and_adc){ ADC_CHANNEL_IN2, 3 };
|
||||||
|
case B13: return (pin_and_adc){ ADC_CHANNEL_IN3, 3 };
|
||||||
|
case B14: return (pin_and_adc){ ADC_CHANNEL_IN4, 3 };
|
||||||
|
case B15: return (pin_and_adc){ ADC_CHANNEL_IN5, 3 };
|
||||||
|
case C0: return (pin_and_adc){ ADC_CHANNEL_IN6, 0 }; // Can also be ADC2
|
||||||
|
case C1: return (pin_and_adc){ ADC_CHANNEL_IN7, 0 }; // Can also be ADC2
|
||||||
|
case C2: return (pin_and_adc){ ADC_CHANNEL_IN8, 0 }; // Can also be ADC2
|
||||||
|
case C3: return (pin_and_adc){ ADC_CHANNEL_IN9, 0 }; // Can also be ADC2
|
||||||
|
case C4: return (pin_and_adc){ ADC_CHANNEL_IN5, 1 };
|
||||||
|
case C5: return (pin_and_adc){ ADC_CHANNEL_IN11, 1 };
|
||||||
|
case D8: return (pin_and_adc){ ADC_CHANNEL_IN12, 3 };
|
||||||
|
case D9: return (pin_and_adc){ ADC_CHANNEL_IN13, 3 };
|
||||||
|
case D10: return (pin_and_adc){ ADC_CHANNEL_IN7, 2 }; // Can also be ADC4
|
||||||
|
case D11: return (pin_and_adc){ ADC_CHANNEL_IN8, 2 }; // Can also be ADC4
|
||||||
|
case D12: return (pin_and_adc){ ADC_CHANNEL_IN9, 2 }; // Can also be ADC4
|
||||||
|
case D13: return (pin_and_adc){ ADC_CHANNEL_IN10, 2 }; // Can also be ADC4
|
||||||
|
case D14: return (pin_and_adc){ ADC_CHANNEL_IN11, 2 }; // Can also be ADC4
|
||||||
|
case E7: return (pin_and_adc){ ADC_CHANNEL_IN13, 2 };
|
||||||
|
case E8: return (pin_and_adc){ ADC_CHANNEL_IN6, 2 }; // Can also be ADC4
|
||||||
|
case E9: return (pin_and_adc){ ADC_CHANNEL_IN2, 2 };
|
||||||
|
case E10: return (pin_and_adc){ ADC_CHANNEL_IN14, 2 };
|
||||||
|
case E11: return (pin_and_adc){ ADC_CHANNEL_IN15, 2 };
|
||||||
|
case E12: return (pin_and_adc){ ADC_CHANNEL_IN16, 2 };
|
||||||
|
case E13: return (pin_and_adc){ ADC_CHANNEL_IN3, 2 };
|
||||||
|
case E14: return (pin_and_adc){ ADC_CHANNEL_IN1, 3 };
|
||||||
|
case E15: return (pin_and_adc){ ADC_CHANNEL_IN2, 3 };
|
||||||
|
case F2: return (pin_and_adc){ ADC_CHANNEL_IN10, 0 }; // Can also be ADC2
|
||||||
|
case F4: return (pin_and_adc){ ADC_CHANNEL_IN5, 0 };
|
||||||
|
#else
|
||||||
|
#error "An ADC pin-to-mux configuration has not been specified for this microcontroller."
|
||||||
|
#endif
|
||||||
|
default: return (pin_and_adc){ 0, 0 };
|
||||||
|
// clang-format on
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
adcsample_t analogReadPin(pin_t pin) { return adc_read(pinToMux(pin)); }
|
||||||
|
|
||||||
|
adcsample_t analogReadPinAdc(pin_t pin, uint8_t adc) {
|
||||||
|
pin_and_adc target = pinToMux(pin);
|
||||||
|
target.adc = adc;
|
||||||
|
return adc_read(target);
|
||||||
|
}
|
||||||
|
|
||||||
|
adcsample_t adc_read(pin_and_adc mux) {
|
||||||
|
#if defined(STM32F0XX)
|
||||||
|
adcConversionGroup.sqr = ADC_CHSELR_CHSEL1;
|
||||||
|
#elif defined(STM32F3XX)
|
||||||
|
adcConversionGroup.sqr[0] = ADC_SQR1_SQ1_N(mux.pin);
|
||||||
|
#else
|
||||||
|
# error "adc_read has not been updated to support this ARM microcontroller."
|
||||||
|
#endif
|
||||||
|
|
||||||
|
ADCDriver* targetDriver = intToADCDriver(mux.adc);
|
||||||
|
manageAdcInitializationDriver(mux.adc, targetDriver);
|
||||||
|
|
||||||
|
adcConvert(targetDriver, &adcConversionGroup, &sampleBuffer[0], ADC_BUFFER_DEPTH);
|
||||||
|
adcsample_t* result = sampleBuffer;
|
||||||
|
|
||||||
|
return *result;
|
||||||
|
}
|
||||||
@@ -0,0 +1,57 @@
|
|||||||
|
/* Copyright 2019 Drew Mills
|
||||||
|
*
|
||||||
|
* 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"
|
||||||
|
#include "ch.h"
|
||||||
|
#include <hal.h>
|
||||||
|
|
||||||
|
#if !defined(STM32F0XX) && !defined(STM32F3XX)
|
||||||
|
# error "Only STM23F0 and STM32F3 devices have ADC support in QMK at this time."
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if !HAL_USE_ADC
|
||||||
|
# error "You need to set HAL_USE_ADC to TRUE in your halconf.h to use the ADC."
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if !STM32_ADC_USE_ADC1 && !STM32_ADC_USE_ADC2 && !STM32_ADC_USE_ADC3 && !STM32_ADC_USE_ADC4
|
||||||
|
# error "You need to set one of the 'STM32_ADC_USE_ADCx' settings to TRUE in your mcuconf.h to use the ADC."
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if STM32_ADC_DUAL_MODE
|
||||||
|
# error "STM32 ADC Dual Mode is not supported at this time."
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if STM32_ADCV3_OVERSAMPLING
|
||||||
|
# error "STM32 ADCV3 Oversampling is not supported at this time."
|
||||||
|
#endif
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
pin_t pin;
|
||||||
|
uint8_t adc;
|
||||||
|
} pin_and_adc;
|
||||||
|
#define PIN_AND_ADC(p, a) \
|
||||||
|
(pin_and_adc) { p, a }
|
||||||
|
|
||||||
|
// analogReference has been left un-defined for ARM devices.
|
||||||
|
// void analogReference(uint8_t mode);
|
||||||
|
|
||||||
|
adcsample_t analogReadPin(pin_t pin);
|
||||||
|
adcsample_t analogReadPinAdc(pin_t pin, uint8_t adc);
|
||||||
|
pin_and_adc pinToMux(pin_t pin);
|
||||||
|
|
||||||
|
adcsample_t adc_read(pin_and_adc mux);
|
||||||
@@ -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
|
|
||||||
+4
@@ -21,3 +21,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
#undef MATRIX_COL_PINS
|
#undef MATRIX_COL_PINS
|
||||||
#define MATRIX_COL_PINS { C4, B7, C6, C7, B6, B5, B4, B3, B2, B1, B0, D6 }
|
#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
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
# Dummy rules.mk, rev0 uses parent rules.mk as is
|
||||||
@@ -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
|
||||||
@@ -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 */
|
/* Select hand configuration */
|
||||||
#define EE_HANDS
|
#define EE_HANDS
|
||||||
|
|
||||||
#undef SSD1306OLED
|
#ifdef OLED_DRIVER_ENABLE
|
||||||
|
# undef SSD1306OLED
|
||||||
#define USE_SERIAL_PD2
|
# define OLED_TIMEOUT 600000
|
||||||
|
|
||||||
#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
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define TAPPING_TERM 150
|
#undef USE_I2C
|
||||||
// #define PERMISSIVE_HOLD
|
#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 IGNORE_MOD_TAP_INTERRUPT
|
||||||
// #define RETRO_TAPPING
|
|
||||||
|
|
||||||
#define TAPPING_TOGGLE 2
|
#define TAPPING_TOGGLE 2
|
||||||
|
|
||||||
#define MOUSEKEY_DELAY 0
|
#ifdef MOUSEKEY_ENABLE
|
||||||
#define MOUSEKEY_INTERVAL 16
|
# define MOUSEKEY_DELAY 0
|
||||||
#define MOUSEKEY_MAX_SPEED 6
|
# define MOUSEKEY_INTERVAL 16
|
||||||
#define MOUSEKEY_TIME_TO_MAX 32
|
# define MOUSEKEY_MAX_SPEED 6
|
||||||
#define MOUSEKEY_WHEEL_MAX_SPEED 4
|
# define MOUSEKEY_TIME_TO_MAX 36
|
||||||
#define MOUSEKEY_WHEEL_TIME_TO_MAX 40
|
# 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
|
#define NO_ACTION_ONESHOT
|
||||||
|
|
||||||
#undef PRODUCT
|
#undef PRODUCT
|
||||||
#define PRODUCT Corne Keyboard
|
#define PRODUCT Corne Keyboard
|
||||||
|
|
||||||
|
#define LCPC_KEYS KC_LCTL, KC_LSFT, KC_9
|
||||||
|
#define RCPC_KEYS KC_RCTL, KC_RSFT, KC_0
|
||||||
@@ -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,
|
||||||
|
};
|
||||||
@@ -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,
|
||||||
|
};
|
||||||
@@ -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
|
#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 {
|
enum layer_names {
|
||||||
_COLEMAKDHM,
|
_COLEMAKDHM,
|
||||||
_GAMING,
|
_GAMING,
|
||||||
_GAMING_EXT,
|
_GAMING_EXT,
|
||||||
_NUM,
|
_NUMPAD,
|
||||||
_FN,
|
_SYM,
|
||||||
_NAV,
|
_NAV,
|
||||||
_UTIL
|
_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
|
// Base layers
|
||||||
#define COLEMAK DF(_COLEMAKDHM)
|
#define COLEMAK DF(_COLEMAKDHM)
|
||||||
#define GAMING DF(_GAMING)
|
#define GAMING DF(_GAMING)
|
||||||
|
|
||||||
// Layer toggle and switch
|
// Layer toggle and switch
|
||||||
#define T_NAV TT(_NAV)
|
#define T_NAV TT(_NAV)
|
||||||
#define S_NAV MO(_NAV)
|
#define S_NAV MO(_NAV)
|
||||||
|
|
||||||
#define T_NUM TT(_NUM)
|
#define T_SYM TT(_SYM)
|
||||||
#define S_NUM MO(_NUM)
|
#define S_SYM MO(_SYM)
|
||||||
|
|
||||||
// Layer keys with functionality on tap
|
// Layer keys with functionality on tap
|
||||||
#define FN_TAB LT(_FN, KC_TAB)
|
|
||||||
#define NAV_0 LT(_NAV, KC_0)
|
#define NAV_0 LT(_NAV, KC_0)
|
||||||
|
#define TAB_NUM LT(_NUMPAD, KC_TAB)
|
||||||
|
|
||||||
#define EXT_SF LT(_GAMING_EXT, KC_LSHIFT)
|
#define EXT_SF LT(_GAMING_EXT, KC_LSHIFT)
|
||||||
|
|
||||||
// Tap/mod keys
|
// Tap/mod keys
|
||||||
#define RCTBR RCTL_T(KC_RBRACKET)
|
#define RCTL_BR RCTL_T(KC_RBRACKET)
|
||||||
#define LCTBR LCTL_T(KC_LBRACKET)
|
#define LCTL_BR LCTL_T(KC_LBRACKET)
|
||||||
|
|
||||||
#define SFSPC LSFT_T(KC_SPACE)
|
#define SFT_SPC LSFT_T(KC_SPACE)
|
||||||
#define SFENT LSFT_T(KC_ENTER)
|
#define SFT_ENT RSFT_T(KC_ENTER)
|
||||||
|
|
||||||
// Global tab forward and backward
|
// Global tab forward and backward
|
||||||
#define TBFWD LCTL(KC_TAB)
|
#define TAB_FWD LCTL(KC_TAB)
|
||||||
#define TBBCK LCTL(LSFT(KC_TAB))
|
#define TAB_BCK LCTL(LSFT(KC_TAB))
|
||||||
|
#define TAB_CLS LCTL(KC_W)
|
||||||
|
|
||||||
// Custom key for NUM layer
|
#define WIN_CLS LALT(KC_F4)
|
||||||
#define CTEQL RCTL_T(KC_EQL)
|
|
||||||
|
// 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)
|
#define KC_EUR ALGR(KC_5)
|
||||||
@@ -48,19 +86,19 @@ enum layer_names {
|
|||||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
[_COLEMAKDHM] = LAYOUT( \
|
[_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( \
|
[_GAMING] = LAYOUT( \
|
||||||
//,-----------------------------------------------------. ,-----------------------------------------------------.
|
//,-----------------------------------------------------. ,-----------------------------------------------------.
|
||||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,\
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_BSPC,\
|
||||||
//|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------|
|
//|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------|
|
||||||
KC_TAB, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,\
|
KC_TAB, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,\
|
||||||
//|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------|
|
//|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------|
|
||||||
@@ -72,59 +110,59 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||||||
|
|
||||||
[_GAMING_EXT] = LAYOUT( \
|
[_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, _______, _______ \
|
_______, _______, _______, 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_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( \
|
[_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, _______,\
|
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, _______ \
|
_______, _______, _______, _______, S_NAV, _______ \
|
||||||
//`--------------------------' `--------------------------'
|
//`--------------------------' `--------------------------'
|
||||||
),
|
),
|
||||||
|
|
||||||
[_UTIL] = LAYOUT( \
|
[_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) {
|
layer_state_t layer_state_set_user(layer_state_t state) {
|
||||||
switch (get_highest_layer(default_layer_state)) {
|
switch (get_highest_layer(default_layer_state)) {
|
||||||
case _COLEMAKDHM:
|
case _COLEMAKDHM:
|
||||||
state = update_tri_layer_state(state, _NUM, _NAV, _UTIL);
|
state = update_tri_layer_state(state, _SYM, _NAV, _UTIL);
|
||||||
break;
|
break;
|
||||||
case _GAMING:
|
case _GAMING:
|
||||||
state = update_tri_layer_state(state, _GAMING_EXT, _NAV, _UTIL);
|
state = update_tri_layer_state(state, _GAMING_EXT, _NAV, _UTIL);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return state;
|
return state;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef OLED_DRIVER_ENABLE
|
#ifdef OLED_DRIVER_ENABLE
|
||||||
oled_rotation_t oled_init_user(oled_rotation_t rotation) {
|
oled_rotation_t oled_init_user(oled_rotation_t rotation) {
|
||||||
if (is_master) {
|
if (is_master) {
|
||||||
return OLED_ROTATION_270;
|
return OLED_ROTATION_270;
|
||||||
} else {
|
} else {
|
||||||
return OLED_ROTATION_180;
|
return OLED_ROTATION_180;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void render_crkbd_logo(void) {
|
void render_crkbd_logo(void) {
|
||||||
static const char PROGMEM crkbd_logo[] = {
|
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,
|
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,
|
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,
|
0xc0, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7, 0xc8, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf, 0xd0, 0xd1, 0xd2, 0xd3, 0xd4,
|
||||||
0};
|
0};
|
||||||
oled_write_P(crkbd_logo, false);
|
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) {
|
void render_status(void) {
|
||||||
// oled_write_P(PSTR("Layout: "), false);
|
// oled_write_P(PSTR("Layout: "), false);
|
||||||
switch (get_highest_layer(default_layer_state)) {
|
switch (get_highest_layer(default_layer_state)) {
|
||||||
case _COLEMAKDHM:
|
case _COLEMAKDHM:
|
||||||
oled_write_P(PSTR("CLMK "), false);
|
oled_write_P(PSTR("TYPE "), false);
|
||||||
break;
|
break;
|
||||||
case _GAMING:
|
case _GAMING:
|
||||||
oled_write_P(PSTR("GAME "), false);
|
oled_write_P(PSTR("GAME "), false);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
oled_write_P(PSTR("\n"), false);
|
oled_write_P(PSTR("\n"), false);
|
||||||
|
|
||||||
switch (get_highest_layer(layer_state)) {
|
switch (get_highest_layer(layer_state)) {
|
||||||
case 0:
|
case 0:
|
||||||
oled_write_P(PSTR(" "), false);
|
oled_write_P(PSTR(" "), false);
|
||||||
break;
|
break;
|
||||||
case _NUM:
|
case _SYM:
|
||||||
oled_write_P(PSTR("Comm "), false);
|
oled_write_P(PSTR("Sym "), false);
|
||||||
break;
|
break;
|
||||||
case _FN:
|
case _NAV:
|
||||||
oled_write_P(PSTR("Stage"), false);
|
oled_write_P(PSTR("Nav "), false);
|
||||||
break;
|
break;
|
||||||
case _NAV:
|
case _GAMING_EXT:
|
||||||
oled_write_P(PSTR("Fuel "), false);
|
oled_write_P(PSTR("Ext "), false);
|
||||||
break;
|
break;
|
||||||
case _GAMING_EXT:
|
case _NUMPAD:
|
||||||
oled_write_P(PSTR("Ext "), false);
|
oled_write_P(PSTR("Num "), false);
|
||||||
break;
|
break;
|
||||||
case _UTIL:
|
case _UTIL:
|
||||||
oled_write_P(PSTR("Util "), false);
|
oled_write_P(PSTR("Util "), false);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
oled_write_P(PSTR("Unkn "), false);
|
oled_write_P(PSTR("Unkn "), false);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
oled_write_P(PSTR("\n"), false);
|
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("SHIFT") : PSTR("\n"), false);
|
||||||
oled_write_P( (modifiers & MOD_MASK_SHIFT) ? PSTR("PULSE") : PSTR(" "), false);
|
oled_write_P((modifiers & MOD_MASK_CTRL) ? PSTR("CTRL ") : PSTR("\n"), false);
|
||||||
oled_write_P( (modifiers & MOD_MASK_ALT) ? PSTR("STBY ") : PSTR(" "), false);
|
oled_write_P((modifiers & MOD_MASK_ALT) ? PSTR("ALT ") : PSTR("\n"), false);
|
||||||
oled_write_P( (modifiers & MOD_MASK_GUI) ? PSTR("GYRO ") : PSTR(" "), 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();
|
uint8_t led_usb_state = host_keyboard_leds();
|
||||||
oled_write_P(PSTR("Mode:\n"), false);
|
oled_write_P(PSTR("Mode:"), 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_NUM_LOCK) ? PSTR(" NUM ") : PSTR("\n"), 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_CAPS_LOCK) ? PSTR(" CAPS") : PSTR("\n"), false);
|
||||||
oled_write_P(IS_LED_ON(led_usb_state, USB_LED_SCROLL_LOCK) ? PSTR(" SCRL") : PSTR(" "), 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) {
|
void oled_task_user(void) {
|
||||||
if (is_master) {
|
if (timer_elapsed32(oled_timer) > OLED_TIMEOUT) {
|
||||||
render_status(); // Renders the current keyboard state (layer, lock, caps, scroll, etc)
|
oled_off();
|
||||||
} else {
|
return;
|
||||||
render_crkbd_logo();
|
} else {
|
||||||
// oled_scroll_left(); // Turns on scrolling
|
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
|
#endif
|
||||||
|
|
||||||
void suspend_power_down_keymap(void) {
|
void suspend_power_down_keymap(void) {
|
||||||
|
oled_off();
|
||||||
rgb_matrix_set_suspend_state(true);
|
rgb_matrix_set_suspend_state(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
void suspend_wakeup_init_keymap(void) {
|
void suspend_wakeup_init_keymap(void) {
|
||||||
|
oled_on();
|
||||||
rgb_matrix_set_suspend_state(false);
|
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
|
### 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.
|
Includes a number row, the symbols normally on SHIFT and numbers, as well as a numpad under right side homing keys.
|
||||||
|
|
||||||
### NAV
|
### 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.
|
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.
|
||||||
|
|
||||||
## 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.
|
|
||||||
|
|
||||||
### UTIL
|
### 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
|
### 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.
|
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
|
### 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
|
## 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
|
LINK_TIME_OPTIMIZATION_ENABLE = yes
|
||||||
|
|
||||||
# Build Options
|
#Build Options
|
||||||
# change to "no" to disable the options, or define them in the Makefile in
|
#change to "no" to disable the options, or define them in the Makefile in
|
||||||
# the appropriate keymap folder that will get included automatically
|
#the appropriate keymap folder that will get included automatically
|
||||||
#
|
#
|
||||||
MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
|
|
||||||
EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
|
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
|
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)
|
BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
|
||||||
CONSOLE_ENABLE = no # Console for debug(+400)
|
CONSOLE_ENABLE = no # Console for debug(+400)
|
||||||
COMMAND_ENABLE = no # Commands for debug and configuration
|
COMMAND_ENABLE = no # Commands for debug and configuration
|
||||||
@@ -22,13 +23,21 @@ SWAP_HANDS_ENABLE = no # Enable one-hand typing
|
|||||||
|
|
||||||
RGB_MATRIX_ENABLE = WS2812
|
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
|
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
||||||
|
|
||||||
BOOTLOADER = qmk-dfu
|
BOOTLOADER = qmk-dfu
|
||||||
|
|
||||||
OLED_DRIVER_ENABLE = yes
|
OLED_DRIVER_ENABLE = yes
|
||||||
|
|
||||||
# ifneq ($(strip $(OLED_DRIVER_ENABLE)), yes)
|
ifeq ($(strip $(THEME)), godspeed)
|
||||||
# RGB_MATRIX_SPLIT_RIGHT=yes
|
OPT_DEFS += -DTHEME_GODSPEED
|
||||||
# endif
|
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
|
# Build Options
|
||||||
# change yes to no to disable
|
# 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
|
MOUSEKEY_ENABLE = no # Mouse keys
|
||||||
EXTRAKEY_ENABLE = yes # Audio control and System control
|
EXTRAKEY_ENABLE = yes # Audio control and System control
|
||||||
CONSOLE_ENABLE = no # Console for debug
|
CONSOLE_ENABLE = no # Console for debug
|
||||||
|
|||||||
@@ -6,8 +6,6 @@
|
|||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include "i2c.h"
|
#include "i2c.h"
|
||||||
|
|
||||||
#ifdef USE_I2C
|
|
||||||
|
|
||||||
// Limits the amount of we wait for any one i2c transaction.
|
// Limits the amount of we wait for any one i2c transaction.
|
||||||
// Since were running SCL line 100kHz (=> 10μs/bit), and each transactions is
|
// 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.
|
// 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
|
// Reset everything, so we are ready for the next TWI interrupt
|
||||||
TWCR |= (1<<TWIE) | (1<<TWINT) | (ack<<TWEA) | (1<<TWEN);
|
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
|
#define TAPPING_TERM 100
|
||||||
|
|
||||||
/* Use I2C or Serial */
|
/* Use I2C or Serial */
|
||||||
#define USE_I2C
|
|
||||||
#define USE_SERIAL
|
#define USE_SERIAL
|
||||||
//#define USE_MATRIX_I2C
|
//#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 { 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
|
// #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 if matrix has ghost */
|
||||||
//#define 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
|
$ 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
|
flash to keyboard
|
||||||
```
|
```
|
||||||
$ make helix/pico:default:flash
|
$ make helix/pico:default:flash
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ define HELIX_CUSTOMISE_MSG
|
|||||||
$(info - OLED_ENABLE = $(OLED_ENABLE))
|
$(info - OLED_ENABLE = $(OLED_ENABLE))
|
||||||
$(info - LED_BACK_ENABLE = $(LED_BACK_ENABLE))
|
$(info - LED_BACK_ENABLE = $(LED_BACK_ENABLE))
|
||||||
$(info - LED_UNDERGLOW_ENABLE = $(LED_UNDERGLOW_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 - IOS_DEVICE_ENABLE = $(IOS_DEVICE_ENABLE))
|
||||||
$(info )
|
$(info )
|
||||||
endef
|
endef
|
||||||
@@ -43,12 +43,34 @@ endef
|
|||||||
ifeq ($(findstring ios,$(HELIX)), ios)
|
ifeq ($(findstring ios,$(HELIX)), ios)
|
||||||
IOS_DEVICE_ENABLE = yes
|
IOS_DEVICE_ENABLE = yes
|
||||||
endif
|
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)
|
ifeq ($(findstring verbose,$(HELIX)), verbose)
|
||||||
SHOW_VERBOSE_INFO = yes
|
SHOW_VERBOSE_INFO = yes
|
||||||
endif
|
endif
|
||||||
SHOW_HELIX_OPTIONS = yes
|
SHOW_HELIX_OPTIONS = yes
|
||||||
endif
|
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)
|
# convert Helix-specific options (that represent combinations of standard options)
|
||||||
# into QMK standard options.
|
# into QMK standard options.
|
||||||
@@ -73,11 +95,13 @@ ifeq ($(strip $(LED_ANIMATIONS)), yes)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(strip $(OLED_ENABLE)), yes)
|
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
|
OPT_DEFS += -DOLED_ENABLE
|
||||||
endif
|
ifeq ($(strip $(LOCAL_GLCDFONT)), yes)
|
||||||
|
OPT_DEFS += -DLOCAL_GLCDFONT
|
||||||
ifeq ($(strip $(LOCAL_GLCDFONT)), yes)
|
endif
|
||||||
OPT_DEFS += -DLOCAL_GLCDFONT
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(strip $(AUDIO_ENABLE)),yes)
|
ifeq ($(strip $(AUDIO_ENABLE)),yes)
|
||||||
@@ -92,8 +116,10 @@ endif
|
|||||||
ifneq ($(strip $(SHOW_HELIX_OPTIONS)),)
|
ifneq ($(strip $(SHOW_HELIX_OPTIONS)),)
|
||||||
$(eval $(call HELIX_CUSTOMISE_MSG))
|
$(eval $(call HELIX_CUSTOMISE_MSG))
|
||||||
ifneq ($(strip $(SHOW_VERBOSE_INFO)),)
|
ifneq ($(strip $(SHOW_VERBOSE_INFO)),)
|
||||||
$(info -- RGBLIGHT_ENABLE = $(RGBLIGHT_ENABLE))
|
$(info -- RGBLIGHT_ENABLE = $(RGBLIGHT_ENABLE))
|
||||||
$(info -- OPT_DEFS = $(OPT_DEFS))
|
$(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 -- LINK_TIME_OPTIMIZATION_ENABLE = $(LINK_TIME_OPTIMIZATION_ENABLE))
|
||||||
$(info )
|
$(info )
|
||||||
endif
|
endif
|
||||||
|
|||||||
@@ -46,7 +46,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
static uint8_t debouncing = DEBOUNCE;
|
static uint8_t debouncing = DEBOUNCE;
|
||||||
static const int ROWS_PER_HAND = MATRIX_ROWS/2;
|
static const int ROWS_PER_HAND = MATRIX_ROWS/2;
|
||||||
static uint8_t error_count = 0;
|
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 row_pins[MATRIX_ROWS] = MATRIX_ROW_PINS;
|
||||||
static const uint8_t col_pins[MATRIX_COLS] = MATRIX_COL_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)
|
void matrix_init(void)
|
||||||
{
|
{
|
||||||
debug_enable = true;
|
split_keyboard_setup();
|
||||||
debug_matrix = true;
|
|
||||||
debug_mouse = true;
|
|
||||||
// initialize row and col
|
// initialize row and col
|
||||||
unselect_rows();
|
unselect_rows();
|
||||||
init_cols();
|
init_cols();
|
||||||
@@ -111,8 +109,6 @@ void matrix_init(void)
|
|||||||
matrix_debouncing[i] = 0;
|
matrix_debouncing[i] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
is_master = has_usb();
|
|
||||||
|
|
||||||
matrix_init_quantum();
|
matrix_init_quantum();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -197,7 +193,7 @@ int serial_transaction(void) {
|
|||||||
|
|
||||||
uint8_t matrix_scan(void)
|
uint8_t matrix_scan(void)
|
||||||
{
|
{
|
||||||
if (is_master) {
|
if (is_helix_master()) {
|
||||||
matrix_master_scan();
|
matrix_master_scan();
|
||||||
}else{
|
}else{
|
||||||
matrix_slave_scan();
|
matrix_slave_scan();
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
#include "helix.h"
|
#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
|
#ifdef SSD1306OLED
|
||||||
#include "ssd1306.h"
|
#include "ssd1306.h"
|
||||||
@@ -15,6 +19,23 @@ void led_set_kb(uint8_t usb_led) {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
void matrix_init_kb(void) {
|
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();
|
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"
|
#include "quantum.h"
|
||||||
|
|
||||||
#ifdef RGBLIGHT_ENABLE
|
#ifndef SPLIT_KEYBOARD
|
||||||
//rgb led driver
|
extern bool is_helix_master(void);
|
||||||
#include "ws2812.h"
|
#define is_keyboard_master() is_helix_master()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef USE_I2C
|
// Each keymap.c should use is_keyboard_master() instead of 'is_master', 'has_usb()'.
|
||||||
#include <stddef.h>
|
// But keep 'is_master' for a while for backwards compatibility
|
||||||
#ifdef __AVR__
|
// for the old keymap.c.
|
||||||
#include <avr/io.h>
|
extern uint8_t is_master; // 'is_master' will be obsolete, it is recommended to use 'is_keyboard_master ()' instead.
|
||||||
#include <avr/interrupt.h>
|
#define has_usb() is_keyboard_master()
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef FLIP_HALF
|
#ifndef FLIP_HALF
|
||||||
// Standard Keymap
|
// Standard Keymap
|
||||||
|
|||||||
@@ -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
|
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
|
# Helix Spacific Build Options default values
|
||||||
OLED_ENABLE = no # OLED_ENABLE
|
OLED_ENABLE = no # OLED_ENABLE
|
||||||
LOCAL_GLCDFONT = no # use each keymaps "helixfont.h" insted of "common/glcdfont.c"
|
LOCAL_GLCDFONT = no # use each keymaps "helixfont.h" insted of "common/glcdfont.c"
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
LED_BACK_ENABLE = yes
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
SPLIT_KEYBOARD = yes
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
LED_UNDERGLOW_ENABLE = yes
|
||||||
@@ -7,6 +7,7 @@
|
|||||||
#include "split_util.h"
|
#include "split_util.h"
|
||||||
#include "matrix.h"
|
#include "matrix.h"
|
||||||
#include "keyboard.h"
|
#include "keyboard.h"
|
||||||
|
#include "wait.h"
|
||||||
|
|
||||||
#ifdef USE_MATRIX_I2C
|
#ifdef USE_MATRIX_I2C
|
||||||
# include "i2c.h"
|
# include "i2c.h"
|
||||||
@@ -14,21 +15,65 @@
|
|||||||
# include "serial.h"
|
# include "serial.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef EE_HANDS
|
||||||
|
# include "eeconfig.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef SPLIT_USB_TIMEOUT
|
||||||
|
#define SPLIT_USB_TIMEOUT 2500
|
||||||
|
#endif
|
||||||
|
|
||||||
volatile bool isLeftHand = true;
|
volatile bool isLeftHand = true;
|
||||||
|
|
||||||
static void setup_handedness(void) {
|
bool waitForUsb(void) {
|
||||||
#ifdef EE_HANDS
|
for (uint8_t i = 0; i < (SPLIT_USB_TIMEOUT / 100); i++) {
|
||||||
isLeftHand = eeprom_read_byte(EECONFIG_HANDEDNESS);
|
// This will return true of a USB connection has been established
|
||||||
#else
|
if (UDADDR & _BV(ADDEN)) {
|
||||||
// I2C_MASTER_RIGHT is deprecated, use MASTER_RIGHT instead, since this works for both serial and i2c
|
return true;
|
||||||
#if defined(I2C_MASTER_RIGHT) || defined(MASTER_RIGHT)
|
}
|
||||||
isLeftHand = !has_usb();
|
wait_ms(100);
|
||||||
#else
|
}
|
||||||
isLeftHand = has_usb();
|
|
||||||
#endif
|
// Avoid NO_USB_STARTUP_CHECK - Disable USB as the previous checks seem to enable it somehow
|
||||||
#endif
|
(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) {
|
static void keyboard_master_setup(void) {
|
||||||
|
|
||||||
#ifdef USE_MATRIX_I2C
|
#ifdef USE_MATRIX_I2C
|
||||||
@@ -47,24 +92,13 @@ static void keyboard_slave_setup(void) {
|
|||||||
#endif
|
#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) {
|
void split_keyboard_setup(void) {
|
||||||
setup_handedness();
|
isLeftHand = is_keyboard_left();
|
||||||
|
|
||||||
if (has_usb()) {
|
if (is_helix_master()) {
|
||||||
keyboard_master_setup();
|
keyboard_master_setup();
|
||||||
} else {
|
} else {
|
||||||
keyboard_slave_setup();
|
keyboard_slave_setup();
|
||||||
}
|
}
|
||||||
sei();
|
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 matrix_slave_scan(void);
|
||||||
|
|
||||||
void split_keyboard_setup(void);
|
void split_keyboard_setup(void);
|
||||||
bool has_usb(void);
|
bool is_helix_master(void);
|
||||||
|
|
||||||
void matrix_master_OLED_init (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 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)
|
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):
|
## How to build
|
||||||
|
* [Helix how to Customize and Compile](rev2/keymaps/default/readme.md#customize)
|
||||||
make helix:default
|
* [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.
|
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
|
#define TAPPING_TERM 100
|
||||||
|
|
||||||
/* Use I2C or Serial */
|
/* Use I2C or Serial */
|
||||||
#define USE_I2C
|
|
||||||
#define USE_SERIAL
|
#define USE_SERIAL
|
||||||
//#define USE_MATRIX_I2C
|
//#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 { 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
|
// #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 if matrix has ghost */
|
||||||
//#define 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
|
$ 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
|
flash to keyboard
|
||||||
```
|
```
|
||||||
$ make helix:default:flash
|
$ make helix:default:flash
|
||||||
|
|||||||
@@ -9,3 +9,5 @@ OLED_DRIVER_ENABLE = yes
|
|||||||
OPT_DEFS += -DOLED_FONT_H=\"common/glcdfont.c\"
|
OPT_DEFS += -DOLED_FONT_H=\"common/glcdfont.c\"
|
||||||
# Xulkal specific oled define
|
# Xulkal specific oled define
|
||||||
OPT_DEFS += -DOLED_90ROTATION
|
OPT_DEFS += -DOLED_90ROTATION
|
||||||
|
|
||||||
|
SPLIT_KEYBOARD = yes
|
||||||
@@ -10,7 +10,7 @@ define HELIX_CUSTOMISE_MSG
|
|||||||
$(info - OLED_ENABLE = $(OLED_ENABLE))
|
$(info - OLED_ENABLE = $(OLED_ENABLE))
|
||||||
$(info - LED_BACK_ENABLE = $(LED_BACK_ENABLE))
|
$(info - LED_BACK_ENABLE = $(LED_BACK_ENABLE))
|
||||||
$(info - LED_UNDERGLOW_ENABLE = $(LED_UNDERGLOW_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 - IOS_DEVICE_ENABLE = $(IOS_DEVICE_ENABLE))
|
||||||
$(info )
|
$(info )
|
||||||
endef
|
endef
|
||||||
@@ -43,12 +43,35 @@ endef
|
|||||||
ifeq ($(findstring ios,$(HELIX)), ios)
|
ifeq ($(findstring ios,$(HELIX)), ios)
|
||||||
IOS_DEVICE_ENABLE = yes
|
IOS_DEVICE_ENABLE = yes
|
||||||
endif
|
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)
|
ifeq ($(findstring verbose,$(HELIX)), verbose)
|
||||||
SHOW_VERBOSE_INFO = yes
|
SHOW_VERBOSE_INFO = yes
|
||||||
endif
|
endif
|
||||||
SHOW_HELIX_OPTIONS = yes
|
SHOW_HELIX_OPTIONS = yes
|
||||||
endif
|
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)
|
# convert Helix-specific options (that represent combinations of standard options)
|
||||||
# into QMK standard options.
|
# into QMK standard options.
|
||||||
@@ -80,18 +103,22 @@ ifeq ($(strip $(LED_ANIMATIONS)), yes)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(strip $(OLED_ENABLE)), yes)
|
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
|
OPT_DEFS += -DOLED_ENABLE
|
||||||
endif
|
ifeq ($(strip $(LOCAL_GLCDFONT)), yes)
|
||||||
|
OPT_DEFS += -DLOCAL_GLCDFONT
|
||||||
ifeq ($(strip $(LOCAL_GLCDFONT)), yes)
|
endif
|
||||||
OPT_DEFS += -DLOCAL_GLCDFONT
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq ($(strip $(SHOW_HELIX_OPTIONS)),)
|
ifneq ($(strip $(SHOW_HELIX_OPTIONS)),)
|
||||||
$(eval $(call HELIX_CUSTOMISE_MSG))
|
$(eval $(call HELIX_CUSTOMISE_MSG))
|
||||||
ifneq ($(strip $(SHOW_VERBOSE_INFO)),)
|
ifneq ($(strip $(SHOW_VERBOSE_INFO)),)
|
||||||
$(info -- RGBLIGHT_ENABLE = $(RGBLIGHT_ENABLE))
|
$(info -- RGBLIGHT_ENABLE = $(RGBLIGHT_ENABLE))
|
||||||
$(info -- OPT_DEFS = $(OPT_DEFS))
|
$(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 -- LINK_TIME_OPTIMIZATION_ENABLE = $(LINK_TIME_OPTIMIZATION_ENABLE))
|
||||||
$(info )
|
$(info )
|
||||||
endif
|
endif
|
||||||
|
|||||||
@@ -47,7 +47,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
static uint8_t debouncing = DEBOUNCE;
|
static uint8_t debouncing = DEBOUNCE;
|
||||||
static const int ROWS_PER_HAND = MATRIX_ROWS/2;
|
static const int ROWS_PER_HAND = MATRIX_ROWS/2;
|
||||||
static uint8_t error_count = 0;
|
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 row_pins[MATRIX_ROWS] = MATRIX_ROW_PINS;
|
||||||
static const uint8_t col_pins[MATRIX_COLS] = MATRIX_COL_PINS;
|
static const uint8_t col_pins[MATRIX_COLS] = MATRIX_COL_PINS;
|
||||||
@@ -111,8 +110,6 @@ void matrix_init(void)
|
|||||||
matrix_debouncing[i] = 0;
|
matrix_debouncing[i] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
is_master = has_usb();
|
|
||||||
|
|
||||||
matrix_init_quantum();
|
matrix_init_quantum();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -200,7 +197,7 @@ int serial_transaction(int master_changed) {
|
|||||||
|
|
||||||
uint8_t matrix_scan(void)
|
uint8_t matrix_scan(void)
|
||||||
{
|
{
|
||||||
if (is_master) {
|
if (is_helix_master()) {
|
||||||
matrix_master_scan();
|
matrix_master_scan();
|
||||||
}else{
|
}else{
|
||||||
matrix_slave_scan();
|
matrix_slave_scan();
|
||||||
|
|||||||
@@ -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"
|
#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
|
#ifdef SSD1306OLED
|
||||||
#include "ssd1306.h"
|
#include "ssd1306.h"
|
||||||
@@ -15,7 +19,23 @@ void led_set_kb(uint8_t usb_led) {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
void matrix_init_kb(void) {
|
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();
|
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"
|
#include "quantum.h"
|
||||||
|
|
||||||
#ifdef RGBLIGHT_ENABLE
|
#ifndef SPLIT_KEYBOARD
|
||||||
//rgb led driver
|
extern bool is_helix_master(void);
|
||||||
#include "ws2812.h"
|
#define is_keyboard_master() is_helix_master()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef USE_I2C
|
// Each keymap.c should use is_keyboard_master() instead of 'is_master', 'has_usb()'.
|
||||||
#include <stddef.h>
|
// But keep 'is_master' for a while for backwards compatibility
|
||||||
#ifdef __AVR__
|
// for the old keymap.c.
|
||||||
#include <avr/io.h>
|
extern uint8_t is_master; // 'is_master' will be obsolete, it is recommended to use 'is_keyboard_master ()' instead.
|
||||||
#include <avr/interrupt.h>
|
#define has_usb() is_keyboard_master()
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if MATRIX_ROWS == 8 // HELIX_ROWS == 4
|
#if MATRIX_ROWS == 8 // HELIX_ROWS == 4
|
||||||
#ifndef FLIP_HALF
|
#ifndef FLIP_HALF
|
||||||
|
|||||||
@@ -1,21 +1,5 @@
|
|||||||
KEYBOARD_LOCAL_FEATURES_MK := $(dir $(lastword $(MAKEFILE_LIST)))local_features.mk
|
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 Spacific Build Options default values
|
||||||
HELIX_ROWS = 5 # Helix Rows is 4 or 5
|
HELIX_ROWS = 5 # Helix Rows is 4 or 5
|
||||||
OLED_ENABLE = no # OLED_ENABLE
|
OLED_ENABLE = no # OLED_ENABLE
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
LED_BACK_ENABLE = yes
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
OLED_ENABLE = yes
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
OLED_ENABLE = yes
|
||||||
|
LED_BACK_ENABLE = yes
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
OLED_ENABLE = yes
|
||||||
|
LED_UNDERGLOW_ENABLE = yes
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
SPLIT_KEYBOARD = yes
|
||||||
@@ -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)
|
#if defined(SPLIT_HAND_PIN)
|
||||||
// Test pin SPLIT_HAND_PIN for High/Low, if low it's right hand
|
// Test pin SPLIT_HAND_PIN for High/Low, if low it's right hand
|
||||||
setPinInput(SPLIT_HAND_PIN);
|
setPinInput(SPLIT_HAND_PIN);
|
||||||
@@ -53,13 +53,13 @@ __attribute__((weak)) bool is_keyboard_left(void) {
|
|||||||
#elif defined(EE_HANDS)
|
#elif defined(EE_HANDS)
|
||||||
return eeconfig_read_handedness();
|
return eeconfig_read_handedness();
|
||||||
#elif defined(MASTER_RIGHT)
|
#elif defined(MASTER_RIGHT)
|
||||||
return !has_usb();
|
return !is_helix_master();
|
||||||
#endif
|
#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;
|
static enum { UNKNOWN, MASTER, SLAVE } usbstate = UNKNOWN;
|
||||||
|
|
||||||
// only check once, as this is called often
|
// only check once, as this is called often
|
||||||
@@ -100,11 +100,10 @@ static void keyboard_slave_setup(void) {
|
|||||||
void split_keyboard_setup(void) {
|
void split_keyboard_setup(void) {
|
||||||
isLeftHand = is_keyboard_left();
|
isLeftHand = is_keyboard_left();
|
||||||
|
|
||||||
if (has_usb()) {
|
if (is_helix_master()) {
|
||||||
keyboard_master_setup();
|
keyboard_master_setup();
|
||||||
} else {
|
} else {
|
||||||
keyboard_slave_setup();
|
keyboard_slave_setup();
|
||||||
}
|
}
|
||||||
sei();
|
sei();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -12,7 +12,7 @@ extern volatile bool isLeftHand;
|
|||||||
void matrix_slave_scan(void);
|
void matrix_slave_scan(void);
|
||||||
|
|
||||||
void split_keyboard_setup(void);
|
void split_keyboard_setup(void);
|
||||||
bool has_usb(void);
|
bool is_helix_master(void);
|
||||||
|
|
||||||
void matrix_master_OLED_init (void);
|
void matrix_master_OLED_init (void);
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
@@ -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),
|
||||||
|
};
|
||||||
@@ -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>
|
||||||
@@ -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) {
|
if (record->event.pressed) {
|
||||||
SEND_STRING("Hello from Illuminati Works");
|
SEND_STRING("Hello from Illuminati Works");
|
||||||
} else {
|
} else {
|
||||||
SEND_STRING("iS0 working properly");
|
SEND_STRING("iS0 working properly");
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,36 @@
|
|||||||
|
/* Copyright 2020 Lorenz Wellmer
|
||||||
|
*
|
||||||
|
* 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
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
|
||||||
|
[0] = LAYOUT_tkl_ansi(
|
||||||
|
KC_ESC, 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_PSCR, KC_SLCK, KC_PAUS,
|
||||||
|
KC_GRV, 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_BSPC, KC_INS, KC_HOME, KC_PGUP,
|
||||||
|
KC_TAB, 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_BSLS, KC_DEL, KC_END, KC_PGDN,
|
||||||
|
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,
|
||||||
|
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP,
|
||||||
|
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_RGUI, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT),
|
||||||
|
|
||||||
|
[1] = LAYOUT_tkl_ansi(
|
||||||
|
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, BL_TOGG, BL_DEC, BL_INC,
|
||||||
|
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_VOLU,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RESET, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MPLY, KC_MNXT, KC_VOLD,
|
||||||
|
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, 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),
|
||||||
|
|
||||||
|
};
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
# The default ANSI keymap for Kira 80
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
/* Copyright 2020 Lorenz Wellmer
|
||||||
|
*
|
||||||
|
* 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
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
|
||||||
|
[0] = LAYOUT_tkl_ansi_wkl(
|
||||||
|
KC_ESC, 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_PSCR, KC_SLCK, KC_PAUS,
|
||||||
|
KC_GRV, 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_BSPC, KC_INS, KC_HOME, KC_PGUP,
|
||||||
|
KC_TAB, 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_BSLS, KC_DEL, KC_END, KC_PGDN,
|
||||||
|
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,
|
||||||
|
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP,
|
||||||
|
KC_LCTL, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_LEFT, KC_DOWN, KC_RGHT),
|
||||||
|
|
||||||
|
[1] = LAYOUT_tkl_ansi_wkl(
|
||||||
|
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, BL_TOGG, BL_DEC, BL_INC,
|
||||||
|
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_VOLU,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RESET, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MPLY, KC_MNXT, KC_VOLD,
|
||||||
|
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, 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),
|
||||||
|
|
||||||
|
};
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
# The default ANSI WKL keymap for Kira 80
|
||||||
@@ -26,7 +26,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||||||
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_RGUI, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT),
|
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_RGUI, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT),
|
||||||
|
|
||||||
[1] = LAYOUT_all(
|
[1] = LAYOUT_all(
|
||||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RGB_TOG, RGB_MOD, RGB_HUD, RGB_HUI, RGB_SAD, RGB_SAI, RGB_VAD, RGB_VAI, BL_TOGG, BL_DEC, BL_INC,
|
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, BL_TOGG, BL_DEC, BL_INC,
|
||||||
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_VOLU,
|
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_VOLU,
|
||||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RESET, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MPLY, KC_MNXT, KC_VOLD,
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RESET, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MPLY, KC_MNXT, KC_VOLD,
|
||||||
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, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
# The default keymap for kira80
|
# The default keymap for Kira 80
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
/* Copyright 2020 Lorenz Wellmer
|
||||||
|
*
|
||||||
|
* 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
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
|
||||||
|
[0] = LAYOUT_tkl_iso(
|
||||||
|
KC_ESC, 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_PSCR, KC_SLCK, KC_PAUS,
|
||||||
|
KC_GRV, 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_BSPC, KC_INS, KC_HOME, KC_PGUP,
|
||||||
|
KC_TAB, 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_DEL, KC_END, KC_PGDN,
|
||||||
|
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_NUHS, KC_ENT,
|
||||||
|
KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP,
|
||||||
|
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_RGUI, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT),
|
||||||
|
|
||||||
|
[1] = LAYOUT_tkl_iso(
|
||||||
|
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, BL_TOGG, BL_DEC, BL_INC,
|
||||||
|
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_VOLU,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RESET, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MPLY, KC_MNXT, KC_VOLD,
|
||||||
|
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, 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, KC_TRNS),
|
||||||
|
|
||||||
|
};
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
# The default ISO keymap for Kira 80
|
||||||
@@ -52,10 +52,10 @@
|
|||||||
K075, K076, K077, K079, K083, K084, K085, K086, K087, K088, K082 \
|
K075, K076, K077, K079, K083, K084, K085, K086, K087, K088, K082 \
|
||||||
) { \
|
) { \
|
||||||
{ K000, K001, K002, K003, K004, K005, KC_NO, K007, K008, K009, K010, K011, K012, K013, KC_NO }, \
|
{ K000, K001, K002, K003, K004, K005, KC_NO, K007, K008, K009, K010, K011, K012, K013, KC_NO }, \
|
||||||
{ K015, K016, K017, K018, K019, K020, K021, K022, K023, K024, K025, K026, K027, K028, K029 }, \
|
{ K015, K016, K017, K018, K019, K020, K021, K022, K023, K024, K025, K026, K027, K028, KC_NO }, \
|
||||||
{ K030, K031, K032, K033, K034, K035, K036, K037, K038, K039, K040, K041, K042, K043, KC_NO }, \
|
{ K030, K031, K032, K033, K034, K035, K036, K037, K038, K039, K040, K041, K042, K043, KC_NO }, \
|
||||||
{ K045, K046, K047, K048, K049, K050, K051, K052, K053, K054, K055, K056, K057, K058, KC_NO }, \
|
{ K045, K046, K047, K048, K049, K050, K051, K052, K053, K054, K055, K056, K057, KC_NO, KC_NO }, \
|
||||||
{ K060, K061, K062, K063, K064, K065, K066, K067, K068, K069, K070, K071, K072, K073, KC_NO }, \
|
{ K060, K061, K062, K063, K064, K065, K066, K067, K068, K069, K070, K071, KC_NO, K073, KC_NO }, \
|
||||||
{ K075, K076, K077, KC_NO, K079, KC_NO, KC_NO, K082, K083, K084, K085, K086, K087, K088, KC_NO }, \
|
{ K075, K076, K077, KC_NO, K079, KC_NO, KC_NO, K082, K083, K084, K085, K086, K087, K088, KC_NO }, \
|
||||||
{ KC_NO, K091, K092, KC_NO, K094, K095, K096, K097, K098, KC_NO, KC_NO, KC_NO, K102, K103, KC_NO } \
|
{ KC_NO, K091, K092, KC_NO, K094, K095, K096, K097, K098, KC_NO, KC_NO, KC_NO, K102, K103, KC_NO } \
|
||||||
}
|
}
|
||||||
@@ -69,11 +69,11 @@
|
|||||||
K075, K077, K079, K084, K086, K087, K088, K082 \
|
K075, K077, K079, K084, K086, K087, K088, K082 \
|
||||||
) { \
|
) { \
|
||||||
{ K000, K001, K002, K003, K004, K005, KC_NO, K007, K008, K009, K010, K011, K012, K013, KC_NO }, \
|
{ K000, K001, K002, K003, K004, K005, KC_NO, K007, K008, K009, K010, K011, K012, K013, KC_NO }, \
|
||||||
{ K015, K016, K017, K018, K019, K020, K021, K022, K023, K024, K025, K026, K027, K028, K029 }, \
|
{ K015, K016, K017, K018, K019, K020, K021, K022, K023, K024, K025, K026, K027, K028, KC_NO }, \
|
||||||
{ K030, K031, K032, K033, K034, K035, K036, K037, K038, K039, K040, K041, K042, K043, KC_NO }, \
|
{ K030, K031, K032, K033, K034, K035, K036, K037, K038, K039, K040, K041, K042, K043, KC_NO }, \
|
||||||
{ K045, K046, K047, K048, K049, K050, K051, K052, K053, K054, K055, K056, K057, K058, KC_NO }, \
|
{ K045, K046, K047, K048, K049, K050, K051, K052, K053, K054, K055, K056, K057, KC_NO, KC_NO }, \
|
||||||
{ K060, K061, K062, K063, K064, K065, K066, K067, K068, K069, K070, K071, K072, K073, KC_NO }, \
|
{ K060, K061, K062, K063, K064, K065, K066, K067, K068, K069, K070, K071, KC_NO, K073, KC_NO }, \
|
||||||
{ K075, K076, K077, KC_NO, K079, KC_NO, KC_NO, K082, K083, K084, K085, K086, K087, K088, KC_NO }, \
|
{ K075, KC_NO, K077, KC_NO, K079, KC_NO, KC_NO, K082, KC_NO, K084, KC_NO, K086, K087, K088, KC_NO }, \
|
||||||
{ KC_NO, K091, K092, KC_NO, K094, K095, K096, K097, K098, KC_NO, KC_NO, KC_NO, K102, K103, KC_NO } \
|
{ KC_NO, K091, K092, KC_NO, K094, K095, K096, K097, K098, KC_NO, KC_NO, KC_NO, K102, K103, KC_NO } \
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -86,10 +86,10 @@
|
|||||||
K075, K076, K077, K079, K083, K084, K085, K086, K087, K088, K082 \
|
K075, K076, K077, K079, K083, K084, K085, K086, K087, K088, K082 \
|
||||||
) { \
|
) { \
|
||||||
{ K000, K001, K002, K003, K004, K005, KC_NO, K007, K008, K009, K010, K011, K012, K013, KC_NO }, \
|
{ K000, K001, K002, K003, K004, K005, KC_NO, K007, K008, K009, K010, K011, K012, K013, KC_NO }, \
|
||||||
{ K015, K016, K017, K018, K019, K020, K021, K022, K023, K024, K025, K026, K027, K028, K029 }, \
|
{ K015, K016, K017, K018, K019, K020, K021, K022, K023, K024, K025, K026, K027, K028, KC_NO }, \
|
||||||
{ K030, K031, K032, K033, K034, K035, K036, K037, K038, K039, K040, K041, K042, K043, KC_NO }, \
|
{ K030, K031, K032, K033, K034, K035, K036, K037, K038, K039, K040, K041, K042, K043, KC_NO }, \
|
||||||
{ K045, K046, K047, K048, K049, K050, K051, K052, K053, K054, K055, K056, K057, K058, KC_NO }, \
|
{ K045, K046, K047, K048, K049, K050, K051, K052, K053, K054, K055, K056, K057, K058, KC_NO }, \
|
||||||
{ K060, K061, K062, K063, K064, K065, K066, K067, K068, K069, K070, K071, K072, K073, KC_NO }, \
|
{ K060, K061, K062, K063, K064, K065, K066, K067, K068, K069, K070, K071, KC_NO, K073, KC_NO }, \
|
||||||
{ K075, K076, K077, KC_NO, K079, KC_NO, KC_NO, K082, K083, K084, K085, K086, K087, K088, KC_NO }, \
|
{ K075, K076, K077, KC_NO, K079, KC_NO, KC_NO, K082, K083, K084, K085, K086, K087, K088, KC_NO }, \
|
||||||
{ KC_NO, K091, K092, KC_NO, K094, K095, K096, K097, K098, KC_NO, KC_NO, KC_NO, K102, K103, KC_NO } \
|
{ KC_NO, K091, K092, KC_NO, K094, K095, K096, K097, K098, KC_NO, KC_NO, KC_NO, K102, K103, KC_NO } \
|
||||||
}
|
}
|
||||||
@@ -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
|
||||||
@@ -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 }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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
|
||||||
@@ -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
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
# The default keymap for Palette1202
|
||||||
@@ -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
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
# The test-purpose keymap for Palette1202
|
||||||
|
組み立て後のテスト用keymapです。
|
||||||
@@ -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
|
||||||
|
};
|
||||||
@@ -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
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
#pragma once
|
||||||
|
#ifdef OLED_DRIVER_ENABLE
|
||||||
|
|
||||||
|
void render_row(int row, const char* status);
|
||||||
|
|
||||||
|
#endif /* #ifdef OLED_DRIVER_ENABLE */
|
||||||
|
|
||||||
@@ -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
|
||||||
|
|
||||||
@@ -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 }, \
|
||||||
|
}
|
||||||
@@ -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).
|
||||||
@@ -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
|
||||||
@@ -1,15 +1,14 @@
|
|||||||
#ifndef CONFIG_H
|
#pragma once
|
||||||
#define CONFIG_H
|
|
||||||
|
|
||||||
#include "config_common.h"
|
#include "config_common.h"
|
||||||
|
|
||||||
/* USB Device descriptor parameter */
|
/* USB Device descriptor parameter */
|
||||||
#define VENDOR_ID 0xFEED
|
#define VENDOR_ID 0x5436 // "T6"
|
||||||
#define PRODUCT_ID 0x6060
|
#define PRODUCT_ID 0x6060 // Tokyo60
|
||||||
#define DEVICE_VER 0x0001
|
#define DEVICE_VER 0x0001
|
||||||
#define MANUFACTURER Tokyo Keyboard
|
#define MANUFACTURER Tokyo Keyboard
|
||||||
#define PRODUCT tokyo60
|
#define PRODUCT Tokyo60
|
||||||
#define DESCRIPTION q.m.k. keyboard firmware for tokyo60
|
#define DESCRIPTION q.m.k. keyboard firmware for Tokyo60
|
||||||
|
|
||||||
/* key matrix size */
|
/* key matrix size */
|
||||||
#define MATRIX_ROWS 5
|
#define MATRIX_ROWS 5
|
||||||
@@ -54,5 +53,3 @@
|
|||||||
/* For Production */
|
/* For Production */
|
||||||
#define QMK_ESC_OUTPUT F0 // usually COL
|
#define QMK_ESC_OUTPUT F0 // usually COL
|
||||||
#define QMK_ESC_INPUT D0 // usually ROW
|
#define QMK_ESC_INPUT D0 // usually ROW
|
||||||
|
|
||||||
#endif
|
|
||||||
+314
-6
@@ -1,12 +1,320 @@
|
|||||||
{
|
{
|
||||||
"keyboard_name": "Tokyo60",
|
"keyboard_name": "Tokyo60",
|
||||||
"url": "",
|
"url": "https://tokyokeyboard.com/",
|
||||||
"maintainer": "qmk",
|
"maintainer": "qmk",
|
||||||
"width": 15,
|
"width": 15,
|
||||||
"height": 5,
|
"height": 5,
|
||||||
"layouts": {
|
"layouts": {
|
||||||
"LAYOUT_60_hhkb": {
|
"LAYOUT_60_hhkb": {
|
||||||
"layout": [{"label":"Esc", "x":0, "y":0}, {"label":"!", "x":1, "y":0}, {"label":"@", "x":2, "y":0}, {"label":"#", "x":3, "y":0}, {"label":"$", "x":4, "y":0}, {"label":"%", "x":5, "y":0}, {"label":"^", "x":6, "y":0}, {"label":"&", "x":7, "y":0}, {"label":"*", "x":8, "y":0}, {"label":"(", "x":9, "y":0}, {"label":")", "x":10, "y":0}, {"label":"_", "x":11, "y":0}, {"label":"+", "x":12, "y":0}, {"label":"|", "x":13, "y":0}, {"label":"~", "x":14, "y":0}, {"label":"Tab", "x":0, "y":1, "w":1.5}, {"label":"Q", "x":1.5, "y":1}, {"label":"W", "x":2.5, "y":1}, {"label":"E", "x":3.5, "y":1}, {"label":"R", "x":4.5, "y":1}, {"label":"T", "x":5.5, "y":1}, {"label":"Y", "x":6.5, "y":1}, {"label":"U", "x":7.5, "y":1}, {"label":"I", "x":8.5, "y":1}, {"label":"O", "x":9.5, "y":1}, {"label":"P", "x":10.5, "y":1}, {"label":"{", "x":11.5, "y":1}, {"label":"}", "x":12.5, "y":1}, {"label":"Delete", "x":13.5, "y":1, "w":1.5}, {"label":"Control", "x":0, "y":2, "w":1.75}, {"label":"A", "x":1.75, "y":2}, {"label":"S", "x":2.75, "y":2}, {"label":"D", "x":3.75, "y":2}, {"label":"F", "x":4.75, "y":2}, {"label":"G", "x":5.75, "y":2}, {"label":"H", "x":6.75, "y":2}, {"label":"J", "x":7.75, "y":2}, {"label":"K", "x":8.75, "y":2}, {"label":"L", "x":9.75, "y":2}, {"label":":", "x":10.75, "y":2}, {"label":"\"", "x":11.75, "y":2}, {"label":"Enter", "x":12.75, "y":2, "w":2.25}, {"label":"Shift", "x":0, "y":3, "w":2.25}, {"label":"Z", "x":2.25, "y":3}, {"label":"X", "x":3.25, "y":3}, {"label":"C", "x":4.25, "y":3}, {"label":"V", "x":5.25, "y":3}, {"label":"B", "x":6.25, "y":3}, {"label":"N", "x":7.25, "y":3}, {"label":"M", "x":8.25, "y":3}, {"label":"<", "x":9.25, "y":3}, {"label":">", "x":10.25, "y":3}, {"label":"?", "x":11.25, "y":3}, {"label":"Shift", "x":12.25, "y":3, "w":1.75}, {"label":"Fn", "x":14, "y":3}, {"label":"Os", "x":1.5, "y":4}, {"label":"Alt", "x":2.5, "y":4, "w":1.5}, {"x":4, "y":4, "w":7}, {"label":"Alt", "x":11, "y":4, "w":1.5}, {"label":"Os", "x":12.5, "y":4}]
|
"layout": [{
|
||||||
|
"label": "Esc",
|
||||||
|
"x": 0,
|
||||||
|
"y": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "!",
|
||||||
|
"x": 1,
|
||||||
|
"y": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "@",
|
||||||
|
"x": 2,
|
||||||
|
"y": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "#",
|
||||||
|
"x": 3,
|
||||||
|
"y": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "$",
|
||||||
|
"x": 4,
|
||||||
|
"y": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "%",
|
||||||
|
"x": 5,
|
||||||
|
"y": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "^",
|
||||||
|
"x": 6,
|
||||||
|
"y": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "&",
|
||||||
|
"x": 7,
|
||||||
|
"y": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "*",
|
||||||
|
"x": 8,
|
||||||
|
"y": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "(",
|
||||||
|
"x": 9,
|
||||||
|
"y": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": ")",
|
||||||
|
"x": 10,
|
||||||
|
"y": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "_",
|
||||||
|
"x": 11,
|
||||||
|
"y": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "+",
|
||||||
|
"x": 12,
|
||||||
|
"y": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "|",
|
||||||
|
"x": 13,
|
||||||
|
"y": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "~",
|
||||||
|
"x": 14,
|
||||||
|
"y": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Tab",
|
||||||
|
"x": 0,
|
||||||
|
"y": 1,
|
||||||
|
"w": 1.5
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Q",
|
||||||
|
"x": 1.5,
|
||||||
|
"y": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "W",
|
||||||
|
"x": 2.5,
|
||||||
|
"y": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "E",
|
||||||
|
"x": 3.5,
|
||||||
|
"y": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "R",
|
||||||
|
"x": 4.5,
|
||||||
|
"y": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "T",
|
||||||
|
"x": 5.5,
|
||||||
|
"y": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Y",
|
||||||
|
"x": 6.5,
|
||||||
|
"y": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "U",
|
||||||
|
"x": 7.5,
|
||||||
|
"y": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "I",
|
||||||
|
"x": 8.5,
|
||||||
|
"y": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "O",
|
||||||
|
"x": 9.5,
|
||||||
|
"y": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "P",
|
||||||
|
"x": 10.5,
|
||||||
|
"y": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "{",
|
||||||
|
"x": 11.5,
|
||||||
|
"y": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "}",
|
||||||
|
"x": 12.5,
|
||||||
|
"y": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Delete",
|
||||||
|
"x": 13.5,
|
||||||
|
"y": 1,
|
||||||
|
"w": 1.5
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Control",
|
||||||
|
"x": 0,
|
||||||
|
"y": 2,
|
||||||
|
"w": 1.75
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "A",
|
||||||
|
"x": 1.75,
|
||||||
|
"y": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "S",
|
||||||
|
"x": 2.75,
|
||||||
|
"y": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "D",
|
||||||
|
"x": 3.75,
|
||||||
|
"y": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "F",
|
||||||
|
"x": 4.75,
|
||||||
|
"y": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "G",
|
||||||
|
"x": 5.75,
|
||||||
|
"y": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "H",
|
||||||
|
"x": 6.75,
|
||||||
|
"y": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "J",
|
||||||
|
"x": 7.75,
|
||||||
|
"y": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "K",
|
||||||
|
"x": 8.75,
|
||||||
|
"y": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "L",
|
||||||
|
"x": 9.75,
|
||||||
|
"y": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": ":",
|
||||||
|
"x": 10.75,
|
||||||
|
"y": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "\"",
|
||||||
|
"x": 11.75,
|
||||||
|
"y": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Enter",
|
||||||
|
"x": 12.75,
|
||||||
|
"y": 2,
|
||||||
|
"w": 2.25
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Shift",
|
||||||
|
"x": 0,
|
||||||
|
"y": 3,
|
||||||
|
"w": 2.25
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Z",
|
||||||
|
"x": 2.25,
|
||||||
|
"y": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "X",
|
||||||
|
"x": 3.25,
|
||||||
|
"y": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "C",
|
||||||
|
"x": 4.25,
|
||||||
|
"y": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "V",
|
||||||
|
"x": 5.25,
|
||||||
|
"y": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "B",
|
||||||
|
"x": 6.25,
|
||||||
|
"y": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "N",
|
||||||
|
"x": 7.25,
|
||||||
|
"y": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "M",
|
||||||
|
"x": 8.25,
|
||||||
|
"y": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "<",
|
||||||
|
"x": 9.25,
|
||||||
|
"y": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": ">",
|
||||||
|
"x": 10.25,
|
||||||
|
"y": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "?",
|
||||||
|
"x": 11.25,
|
||||||
|
"y": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Shift",
|
||||||
|
"x": 12.25,
|
||||||
|
"y": 3,
|
||||||
|
"w": 1.75
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Fn",
|
||||||
|
"x": 14,
|
||||||
|
"y": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Os",
|
||||||
|
"x": 1.5,
|
||||||
|
"y": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Alt",
|
||||||
|
"x": 2.5,
|
||||||
|
"y": 4,
|
||||||
|
"w": 1.5
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"x": 4,
|
||||||
|
"y": 4,
|
||||||
|
"w": 7
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Alt",
|
||||||
|
"x": 11,
|
||||||
|
"y": 4,
|
||||||
|
"w": 1.5
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Os",
|
||||||
|
"x": 12.5,
|
||||||
|
"y": 4
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,37 @@
|
|||||||
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
|
#define BL 0
|
||||||
|
#define FN 1
|
||||||
|
/*
|
||||||
|
* Default HHKB Layout
|
||||||
|
*/
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
|
||||||
|
[BL] = LAYOUT_60_hhkb(
|
||||||
|
KC_ESC, 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, \
|
||||||
|
KC_TAB, 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, \
|
||||||
|
KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, \
|
||||||
|
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, MO(FN), \
|
||||||
|
KC_LALT, KC_LGUI, KC_SPC, KC_RGUI, KC_RALT ),
|
||||||
|
|
||||||
|
[FN]= LAYOUT_60_hhkb(
|
||||||
|
KC_PWR, 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, RGB_TOG, RGB_MOD, RGB_RMOD, BL_TOGG, BL_STEP, KC_TRNS, KC_TRNS, KC_PSCR, KC_SLCK, KC_PAUS, KC_UP, KC_TRNS, KC_TRNS, \
|
||||||
|
KC_TRNS, KC_VOLD, KC_VOLU, KC_MUTE, KC_EJCT, KC_TRNS, KC_PAST, KC_PSLS, KC_HOME, KC_PGUP, KC_LEFT, KC_RGHT, KC_PENT, \
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_PPLS, KC_PMNS, KC_END, KC_PGDN, KC_DOWN, KC_TRNS, KC_TRNS, \
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS ),
|
||||||
|
|
||||||
|
[2]= LAYOUT_60_hhkb(
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||||
|
_______, _______, _______, _______, _______ ),
|
||||||
|
|
||||||
|
[3]= LAYOUT_60_hhkb(
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||||
|
_______, _______, _______, _______, _______ ),
|
||||||
|
};
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
VIA_ENABLE = yes
|
||||||
@@ -1,15 +1,15 @@
|
|||||||
# tokyo60
|
# Tokyo60
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
Minimal hacker style mechanical keyboard designed in Tokyo. Full aluminum hi-pro construction with integrated top-plate. Cherry MX compatible. More Info at [Tokyo Keyboard](http://tokyokeyboard.com).
|
Minimal hacker style mechanical keyboard designed in Tokyo. Full aluminum hi-pro construction with integrated top-plate. Cherry MX compatible. More Info at [Tokyo Keyboard](http://tokyokeyboard.com).
|
||||||
|
|
||||||
Keyboard Maintainer: [Tokyo Keyboard](http://tokyokeyboard.com)
|
* Keyboard Maintainer: [Tokyo Keyboard](http://tokyokeyboard.com)
|
||||||
Hardware Supported: tokyo60 rev1
|
* Hardware Supported: Tokyo60 Rev.1
|
||||||
Hardware Availability: [Tokyo Keyboard](http://tokyokeyboard.com), [Massdrop](https://www.massdrop.com/buy/massdrop-x-tokyo-keyboard-tokyo60-keyboard-kit?mode=guest_open)
|
* Hardware Availability: [Drop](https://drop.com/buy/massdrop-x-tokyo-keyboard-tokyo60-keyboard-kit?mode=guest_open)
|
||||||
|
|
||||||
Make example for this keyboard (after setting up your build environment):
|
Make example for this keyboard (after setting up your build environment):
|
||||||
|
|
||||||
make tokyo60:default
|
make tokyo60:default
|
||||||
|
|
||||||
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.
|
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).
|
||||||
@@ -14,7 +14,7 @@ BOOTLOADER = atmel-dfu
|
|||||||
# Build Options
|
# Build Options
|
||||||
# change yes to no to disable
|
# 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
|
MOUSEKEY_ENABLE = no # Mouse keys
|
||||||
EXTRAKEY_ENABLE = yes # Audio control and System control
|
EXTRAKEY_ENABLE = yes # Audio control and System control
|
||||||
# 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
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
#ifndef TOKYO60_H
|
#pragma once
|
||||||
#define TOKYO60_H
|
|
||||||
|
|
||||||
#include "quantum.h"
|
#include "quantum.h"
|
||||||
|
|
||||||
|
#define XXX KC_NO
|
||||||
|
|
||||||
#define LAYOUT_60_hhkb( \
|
#define LAYOUT_60_hhkb( \
|
||||||
K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K1D,\
|
K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K1D,\
|
||||||
K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K2D, \
|
K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K2D, \
|
||||||
@@ -12,9 +13,7 @@
|
|||||||
) { \
|
) { \
|
||||||
{ K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D }, \
|
{ K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D }, \
|
||||||
{ K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D }, \
|
{ K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D }, \
|
||||||
{ K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, KC_NO, K2D }, \
|
{ K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, XXX, K2D }, \
|
||||||
{ K30, KC_NO, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D }, \
|
{ K30, XXX, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D }, \
|
||||||
{ KC_NO, K42, K43, KC_NO, KC_NO, K46, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, K4B, K4C, K4D } \
|
{ XXX, K42, K43, XXX, XXX, K46, XXX, XXX, XXX, XXX, XXX, K4B, K4C, K4D } \
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
@@ -10,6 +10,7 @@ from . import doctor
|
|||||||
from . import flash
|
from . import flash
|
||||||
from . import hello
|
from . import hello
|
||||||
from . import json
|
from . import json
|
||||||
|
from . import json2c
|
||||||
from . import list
|
from . import list
|
||||||
from . import kle2json
|
from . import kle2json
|
||||||
from . import new
|
from . import new
|
||||||
|
|||||||
@@ -1,56 +1,16 @@
|
|||||||
"""Generate a keymap.c from a configurator export.
|
"""Generate a keymap.c from a configurator export.
|
||||||
"""
|
"""
|
||||||
import json
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
from milc import cli
|
from milc import cli
|
||||||
|
|
||||||
import qmk.keymap
|
|
||||||
import qmk.path
|
|
||||||
|
|
||||||
|
|
||||||
@cli.argument('-o', '--output', arg_only=True, type=Path, help='File to write to')
|
@cli.argument('-o', '--output', arg_only=True, type=Path, help='File to write to')
|
||||||
@cli.argument('-q', '--quiet', arg_only=True, action='store_true', help="Quiet mode, only output error messages")
|
@cli.argument('-q', '--quiet', arg_only=True, action='store_true', help="Quiet mode, only output error messages")
|
||||||
@cli.argument('filename', arg_only=True, help='Configurator JSON file')
|
@cli.argument('filename', arg_only=True, help='Configurator JSON file')
|
||||||
@cli.subcommand('Creates a keymap.c from a QMK Configurator export.')
|
@cli.subcommand('Creates a keymap.c from a QMK Configurator export.')
|
||||||
def json_keymap(cli):
|
def json_keymap(cli):
|
||||||
"""Generate a keymap.c from a configurator export.
|
"""Renamed to `qmk json2c`.
|
||||||
|
|
||||||
This command uses the `qmk.keymap` module to generate a keymap.c from a configurator export. The generated keymap is written to stdout, or to a file if -o is provided.
|
|
||||||
"""
|
"""
|
||||||
cli.args.filename = qmk.path.normpath(cli.args.filename)
|
cli.log.error('This command has been renamed to `qmk json2c`.')
|
||||||
|
exit(1)
|
||||||
# Error checking
|
|
||||||
if not cli.args.filename.exists():
|
|
||||||
cli.log.error('JSON file does not exist!')
|
|
||||||
cli.print_usage()
|
|
||||||
exit(1)
|
|
||||||
|
|
||||||
if str(cli.args.filename) == '-':
|
|
||||||
# TODO(skullydazed/anyone): Read file contents from STDIN
|
|
||||||
cli.log.error('Reading from STDIN is not (yet) supported.')
|
|
||||||
cli.print_usage()
|
|
||||||
exit(1)
|
|
||||||
|
|
||||||
# Environment processing
|
|
||||||
if cli.args.output == ('-'):
|
|
||||||
cli.args.output = None
|
|
||||||
|
|
||||||
# Parse the configurator json
|
|
||||||
with cli.args.filename.open('r') as fd:
|
|
||||||
user_keymap = json.load(fd)
|
|
||||||
|
|
||||||
# Generate the keymap
|
|
||||||
keymap_c = qmk.keymap.generate(user_keymap['keyboard'], user_keymap['layout'], user_keymap['layers'])
|
|
||||||
|
|
||||||
if cli.args.output:
|
|
||||||
cli.args.output.parent.mkdir(parents=True, exist_ok=True)
|
|
||||||
if cli.args.output.exists():
|
|
||||||
cli.args.output.replace(cli.args.output.name + '.bak')
|
|
||||||
cli.args.output.write_text(keymap_c)
|
|
||||||
|
|
||||||
if not cli.args.quiet:
|
|
||||||
cli.log.info('Wrote keymap to %s.', cli.args.output)
|
|
||||||
|
|
||||||
else:
|
|
||||||
print(keymap_c)
|
|
||||||
Executable
+56
@@ -0,0 +1,56 @@
|
|||||||
|
"""Generate a keymap.c from a configurator export.
|
||||||
|
"""
|
||||||
|
import json
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
|
from milc import cli
|
||||||
|
|
||||||
|
import qmk.keymap
|
||||||
|
import qmk.path
|
||||||
|
|
||||||
|
|
||||||
|
@cli.argument('-o', '--output', arg_only=True, type=Path, help='File to write to')
|
||||||
|
@cli.argument('-q', '--quiet', arg_only=True, action='store_true', help="Quiet mode, only output error messages")
|
||||||
|
@cli.argument('filename', arg_only=True, help='Configurator JSON file')
|
||||||
|
@cli.subcommand('Creates a keymap.c from a QMK Configurator export.')
|
||||||
|
def json2c(cli):
|
||||||
|
"""Generate a keymap.c from a configurator export.
|
||||||
|
|
||||||
|
This command uses the `qmk.keymap` module to generate a keymap.c from a configurator export. The generated keymap is written to stdout, or to a file if -o is provided.
|
||||||
|
"""
|
||||||
|
cli.args.filename = qmk.path.normpath(cli.args.filename)
|
||||||
|
|
||||||
|
# Error checking
|
||||||
|
if not cli.args.filename.exists():
|
||||||
|
cli.log.error('JSON file does not exist!')
|
||||||
|
cli.print_usage()
|
||||||
|
exit(1)
|
||||||
|
|
||||||
|
if str(cli.args.filename) == '-':
|
||||||
|
# TODO(skullydazed/anyone): Read file contents from STDIN
|
||||||
|
cli.log.error('Reading from STDIN is not (yet) supported.')
|
||||||
|
cli.print_usage()
|
||||||
|
exit(1)
|
||||||
|
|
||||||
|
# Environment processing
|
||||||
|
if cli.args.output == ('-'):
|
||||||
|
cli.args.output = None
|
||||||
|
|
||||||
|
# Parse the configurator json
|
||||||
|
with cli.args.filename.open('r') as fd:
|
||||||
|
user_keymap = json.load(fd)
|
||||||
|
|
||||||
|
# Generate the keymap
|
||||||
|
keymap_c = qmk.keymap.generate(user_keymap['keyboard'], user_keymap['layout'], user_keymap['layers'])
|
||||||
|
|
||||||
|
if cli.args.output:
|
||||||
|
cli.args.output.parent.mkdir(parents=True, exist_ok=True)
|
||||||
|
if cli.args.output.exists():
|
||||||
|
cli.args.output.replace(cli.args.output.name + '.bak')
|
||||||
|
cli.args.output.write_text(keymap_c)
|
||||||
|
|
||||||
|
if not cli.args.quiet:
|
||||||
|
cli.log.info('Wrote keymap to %s.', cli.args.output)
|
||||||
|
|
||||||
|
else:
|
||||||
|
print(keymap_c)
|
||||||
+71
-12
@@ -38,17 +38,23 @@
|
|||||||
# include "velocikey.h"
|
# include "velocikey.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef MIN
|
||||||
|
# define MIN(a, b) (((a) < (b)) ? (a) : (b))
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef RGBLIGHT_SPLIT
|
#ifdef RGBLIGHT_SPLIT
|
||||||
/* for split keyboard */
|
/* for split keyboard */
|
||||||
# define RGBLIGHT_SPLIT_SET_CHANGE_MODE rgblight_status.change_flags |= RGBLIGHT_STATUS_CHANGE_MODE
|
# 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_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_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_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
|
# define RGBLIGHT_SPLIT_ANIMATION_TICK rgblight_status.change_flags |= RGBLIGHT_STATUS_ANIMATION_TICK
|
||||||
#else
|
#else
|
||||||
# define RGBLIGHT_SPLIT_SET_CHANGE_MODE
|
# define RGBLIGHT_SPLIT_SET_CHANGE_MODE
|
||||||
# define RGBLIGHT_SPLIT_SET_CHANGE_HSVS
|
# define RGBLIGHT_SPLIT_SET_CHANGE_HSVS
|
||||||
# define RGBLIGHT_SPLIT_SET_CHANGE_MODEHSVS
|
# define RGBLIGHT_SPLIT_SET_CHANGE_MODEHSVS
|
||||||
|
# define RGBLIGHT_SPLIT_SET_CHANGE_LAYERS
|
||||||
# define RGBLIGHT_SPLIT_SET_CHANGE_TIMER_ENABLE
|
# define RGBLIGHT_SPLIT_SET_CHANGE_TIMER_ENABLE
|
||||||
# define RGBLIGHT_SPLIT_ANIMATION_TICK
|
# define RGBLIGHT_SPLIT_ANIMATION_TICK
|
||||||
#endif
|
#endif
|
||||||
@@ -97,6 +103,10 @@ LED_TYPE led[RGBLED_NUM];
|
|||||||
# define LED_ARRAY led
|
# define LED_ARRAY led
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef RGBLIGHT_LAYERS
|
||||||
|
rgblight_segment_t const *const *rgblight_layers = NULL;
|
||||||
|
#endif
|
||||||
|
|
||||||
static uint8_t clipping_start_pos = 0;
|
static uint8_t clipping_start_pos = 0;
|
||||||
static uint8_t clipping_num_leds = RGBLED_NUM;
|
static uint8_t clipping_num_leds = RGBLED_NUM;
|
||||||
static uint8_t effect_start_pos = 0;
|
static uint8_t effect_start_pos = 0;
|
||||||
@@ -211,9 +221,7 @@ void rgblight_init(void) {
|
|||||||
|
|
||||||
eeconfig_debug_rgblight(); // display current eeprom values
|
eeconfig_debug_rgblight(); // display current eeprom values
|
||||||
|
|
||||||
#ifdef RGBLIGHT_USE_TIMER
|
|
||||||
rgblight_timer_init(); // setup the timer
|
rgblight_timer_init(); // setup the timer
|
||||||
#endif
|
|
||||||
|
|
||||||
if (rgblight_config.enable) {
|
if (rgblight_config.enable) {
|
||||||
rgblight_mode_noeeprom(rgblight_config.mode);
|
rgblight_mode_noeeprom(rgblight_config.mode);
|
||||||
@@ -230,9 +238,7 @@ void rgblight_update_dword(uint32_t dword) {
|
|||||||
if (rgblight_config.enable)
|
if (rgblight_config.enable)
|
||||||
rgblight_mode_noeeprom(rgblight_config.mode);
|
rgblight_mode_noeeprom(rgblight_config.mode);
|
||||||
else {
|
else {
|
||||||
#ifdef RGBLIGHT_USE_TIMER
|
|
||||||
rgblight_timer_disable();
|
rgblight_timer_disable();
|
||||||
#endif
|
|
||||||
rgblight_set();
|
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);
|
dprintf("rgblight mode [NOEEPROM]: %u\n", rgblight_config.mode);
|
||||||
}
|
}
|
||||||
if (is_static_effect(rgblight_config.mode)) {
|
if (is_static_effect(rgblight_config.mode)) {
|
||||||
#ifdef RGBLIGHT_USE_TIMER
|
|
||||||
rgblight_timer_disable();
|
rgblight_timer_disable();
|
||||||
#endif
|
|
||||||
} else {
|
} else {
|
||||||
#ifdef RGBLIGHT_USE_TIMER
|
|
||||||
rgblight_timer_enable();
|
rgblight_timer_enable();
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
#ifdef RGBLIGHT_USE_TIMER
|
#ifdef RGBLIGHT_USE_TIMER
|
||||||
animation_status.restart = true;
|
animation_status.restart = true;
|
||||||
@@ -354,9 +356,7 @@ void rgblight_disable(void) {
|
|||||||
rgblight_config.enable = 0;
|
rgblight_config.enable = 0;
|
||||||
eeconfig_update_rgblight(rgblight_config.raw);
|
eeconfig_update_rgblight(rgblight_config.raw);
|
||||||
dprintf("rgblight disable [EEPROM]: rgblight_config.enable = %u\n", rgblight_config.enable);
|
dprintf("rgblight disable [EEPROM]: rgblight_config.enable = %u\n", rgblight_config.enable);
|
||||||
#ifdef RGBLIGHT_USE_TIMER
|
|
||||||
rgblight_timer_disable();
|
rgblight_timer_disable();
|
||||||
#endif
|
|
||||||
RGBLIGHT_SPLIT_SET_CHANGE_MODE;
|
RGBLIGHT_SPLIT_SET_CHANGE_MODE;
|
||||||
wait_ms(50);
|
wait_ms(50);
|
||||||
rgblight_set();
|
rgblight_set();
|
||||||
@@ -365,9 +365,7 @@ void rgblight_disable(void) {
|
|||||||
void rgblight_disable_noeeprom(void) {
|
void rgblight_disable_noeeprom(void) {
|
||||||
rgblight_config.enable = 0;
|
rgblight_config.enable = 0;
|
||||||
dprintf("rgblight disable [NOEEPROM]: rgblight_config.enable = %u\n", rgblight_config.enable);
|
dprintf("rgblight disable [NOEEPROM]: rgblight_config.enable = %u\n", rgblight_config.enable);
|
||||||
#ifdef RGBLIGHT_USE_TIMER
|
|
||||||
rgblight_timer_disable();
|
rgblight_timer_disable();
|
||||||
#endif
|
|
||||||
RGBLIGHT_SPLIT_SET_CHANGE_MODE;
|
RGBLIGHT_SPLIT_SET_CHANGE_MODE;
|
||||||
wait_ms(50);
|
wait_ms(50);
|
||||||
rgblight_set();
|
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); }
|
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
|
#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
|
#ifndef RGBLIGHT_CUSTOM_DRIVER
|
||||||
void rgblight_set(void) {
|
void rgblight_set(void) {
|
||||||
LED_TYPE *start_led;
|
LED_TYPE *start_led;
|
||||||
uint16_t num_leds = clipping_num_leds;
|
uint16_t num_leds = clipping_num_leds;
|
||||||
|
|
||||||
|
# ifdef RGBLIGHT_LAYERS
|
||||||
|
if (rgblight_layers != NULL) {
|
||||||
|
rgblight_layers_write();
|
||||||
|
}
|
||||||
|
# endif
|
||||||
|
|
||||||
if (!rgblight_config.enable) {
|
if (!rgblight_config.enable) {
|
||||||
for (uint8_t i = effect_start_pos; i < effect_end_pos; i++) {
|
for (uint8_t i = effect_start_pos; i < effect_end_pos; i++) {
|
||||||
led[i].r = 0;
|
led[i].r = 0;
|
||||||
@@ -664,6 +718,11 @@ void rgblight_get_syncinfo(rgblight_syncinfo_t *syncinfo) {
|
|||||||
|
|
||||||
/* for split keyboard slave side */
|
/* for split keyboard slave side */
|
||||||
void rgblight_update_sync(rgblight_syncinfo_t *syncinfo, bool write_to_eeprom) {
|
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->status.change_flags & RGBLIGHT_STATUS_CHANGE_MODE) {
|
||||||
if (syncinfo->config.enable) {
|
if (syncinfo->config.enable) {
|
||||||
rgblight_config.enable = 1; // == rgblight_enable_noeeprom();
|
rgblight_config.enable = 1; // == rgblight_enable_noeeprom();
|
||||||
|
|||||||
+71
-3
@@ -16,8 +16,6 @@
|
|||||||
#ifndef RGBLIGHT_H
|
#ifndef RGBLIGHT_H
|
||||||
#define RGBLIGHT_H
|
#define RGBLIGHT_H
|
||||||
|
|
||||||
#include "rgblight_reconfig.h"
|
|
||||||
|
|
||||||
/***** rgblight_mode(mode)/rgblight_mode_noeeprom(mode) ****
|
/***** rgblight_mode(mode)/rgblight_mode_noeeprom(mode) ****
|
||||||
|
|
||||||
old mode number (before 0.6.117) to new mode name table
|
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_STATIC(sym) RGBLIGHT_MODE_##sym,
|
||||||
#define _RGBM_SINGLE_DYNAMIC(sym) RGBLIGHT_MODE_##sym,
|
#define _RGBM_SINGLE_DYNAMIC(sym) RGBLIGHT_MODE_##sym,
|
||||||
#define _RGBM_MULTI_STATIC(sym) RGBLIGHT_MODE_##sym,
|
#define _RGBM_MULTI_STATIC(sym) RGBLIGHT_MODE_##sym,
|
||||||
@@ -139,6 +170,32 @@ enum RGBLIGHT_EFFECT_MODE {
|
|||||||
# include <avr/pgmspace.h>
|
# include <avr/pgmspace.h>
|
||||||
# endif
|
# 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 LED_TYPE led[RGBLED_NUM];
|
||||||
|
|
||||||
extern const uint8_t RGBLED_BREATHING_INTERVALS[4] PROGMEM;
|
extern const uint8_t RGBLED_BREATHING_INTERVALS[4] PROGMEM;
|
||||||
@@ -168,6 +225,9 @@ typedef struct _rgblight_status_t {
|
|||||||
# ifdef RGBLIGHT_SPLIT
|
# ifdef RGBLIGHT_SPLIT
|
||||||
uint8_t change_flags;
|
uint8_t change_flags;
|
||||||
# endif
|
# endif
|
||||||
|
# ifdef RGBLIGHT_LAYERS
|
||||||
|
uint8_t enabled_layer_mask;
|
||||||
|
# endif
|
||||||
} rgblight_status_t;
|
} rgblight_status_t;
|
||||||
|
|
||||||
/* === Utility Functions ===*/
|
/* === 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)
|
# 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);
|
void rgblight_show_solid_color(uint8_t r, uint8_t g, uint8_t b);
|
||||||
|
|
||||||
|
# ifdef RGBLIGHT_USE_TIMER
|
||||||
void rgblight_task(void);
|
void rgblight_task(void);
|
||||||
|
|
||||||
void rgblight_timer_init(void);
|
void rgblight_timer_init(void);
|
||||||
void rgblight_timer_enable(void);
|
void rgblight_timer_enable(void);
|
||||||
void rgblight_timer_disable(void);
|
void rgblight_timer_disable(void);
|
||||||
void rgblight_timer_toggle(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
|
# ifdef RGBLIGHT_SPLIT
|
||||||
# define RGBLIGHT_STATUS_CHANGE_MODE (1 << 0)
|
# define RGBLIGHT_STATUS_CHANGE_MODE (1 << 0)
|
||||||
# define RGBLIGHT_STATUS_CHANGE_HSVS (1 << 1)
|
# define RGBLIGHT_STATUS_CHANGE_HSVS (1 << 1)
|
||||||
# define RGBLIGHT_STATUS_CHANGE_TIMER (1 << 2)
|
# define RGBLIGHT_STATUS_CHANGE_TIMER (1 << 2)
|
||||||
# define RGBLIGHT_STATUS_ANIMATION_TICK (1 << 3)
|
# define RGBLIGHT_STATUS_ANIMATION_TICK (1 << 3)
|
||||||
|
# define RGBLIGHT_STATUS_CHANGE_LAYERS (1 << 4)
|
||||||
|
|
||||||
typedef struct _rgblight_syncinfo_t {
|
typedef struct _rgblight_syncinfo_t {
|
||||||
rgblight_config_t config;
|
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.
|
* 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
|
/** \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.
|
* 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
|
#endif
|
||||||
|
|
||||||
#if !defined(NO_ACTION_LAYER) && !defined(STRICT_LAYER_RELEASE)
|
#if !defined(NO_ACTION_LAYER) && !defined(STRICT_LAYER_RELEASE)
|
||||||
|
|||||||
@@ -9,7 +9,6 @@
|
|||||||
#include "timer.h"
|
#include "timer.h"
|
||||||
#include "led.h"
|
#include "led.h"
|
||||||
#include "host.h"
|
#include "host.h"
|
||||||
#include "rgblight_reconfig.h"
|
|
||||||
|
|
||||||
#ifdef PROTOCOL_LUFA
|
#ifdef PROTOCOL_LUFA
|
||||||
# include "lufa.h"
|
# include "lufa.h"
|
||||||
@@ -30,23 +29,6 @@ static bool rgblight_enabled;
|
|||||||
static bool is_suspended;
|
static bool is_suspended;
|
||||||
#endif
|
#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
|
/** \brief Suspend idle
|
||||||
*
|
*
|
||||||
* FIXME: needs doc
|
* FIXME: needs doc
|
||||||
@@ -122,9 +104,7 @@ static void power_down(uint8_t wdto) {
|
|||||||
// stop_all_notes();
|
// stop_all_notes();
|
||||||
# endif /* AUDIO_ENABLE */
|
# endif /* AUDIO_ENABLE */
|
||||||
# if defined(RGBLIGHT_SLEEP) && defined(RGBLIGHT_ENABLE)
|
# if defined(RGBLIGHT_SLEEP) && defined(RGBLIGHT_ENABLE)
|
||||||
# ifdef RGBLIGHT_ANIMATIONS
|
|
||||||
rgblight_timer_disable();
|
rgblight_timer_disable();
|
||||||
# endif
|
|
||||||
if (!is_suspended) {
|
if (!is_suspended) {
|
||||||
is_suspended = true;
|
is_suspended = true;
|
||||||
rgblight_enabled = rgblight_config.enable;
|
rgblight_enabled = rgblight_config.enable;
|
||||||
@@ -204,9 +184,7 @@ void suspend_wakeup_init(void) {
|
|||||||
# endif
|
# endif
|
||||||
rgblight_enable_noeeprom();
|
rgblight_enable_noeeprom();
|
||||||
}
|
}
|
||||||
# ifdef RGBLIGHT_ANIMATIONS
|
|
||||||
rgblight_timer_enable();
|
rgblight_timer_enable();
|
||||||
# endif
|
|
||||||
#endif
|
#endif
|
||||||
suspend_wakeup_init_kb();
|
suspend_wakeup_init_kb();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,21 +7,22 @@
|
|||||||
#include <avr/wdt.h>
|
#include <avr/wdt.h>
|
||||||
#include <avr/interrupt.h>
|
#include <avr/interrupt.h>
|
||||||
|
|
||||||
#define wdt_intr_enable(value) \
|
// clang-format off
|
||||||
__asm__ __volatile__("in __tmp_reg__,__SREG__" \
|
#define wdt_intr_enable(value) \
|
||||||
"\n\t" \
|
__asm__ __volatile__ ( \
|
||||||
"cli" \
|
"in __tmp_reg__,__SREG__" "\n\t" \
|
||||||
"\n\t" \
|
"cli" "\n\t" \
|
||||||
"wdr" \
|
"wdr" "\n\t" \
|
||||||
"\n\t" \
|
"sts %0,%1" "\n\t" \
|
||||||
"sts %0,%1" \
|
"out __SREG__,__tmp_reg__" "\n\t" \
|
||||||
"\n\t" \
|
"sts %0,%2" "\n\t" \
|
||||||
"out __SREG__,__tmp_reg__" \
|
: /* no outputs */ \
|
||||||
"\n\t" \
|
: "M" (_SFR_MEM_ADDR(_WD_CONTROL_REG)), \
|
||||||
"sts %0,%2" \
|
"r" (_BV(_WD_CHANGE_BIT) | _BV(WDE)), \
|
||||||
"\n\t" \
|
"r" ((uint8_t) ((value & 0x08 ? _WD_PS3_MASK : 0x00) | \
|
||||||
: /* no outputs */ \
|
_BV(WDIE) | (value & 0x07)) ) \
|
||||||
: "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" \
|
||||||
: "r0")
|
)
|
||||||
|
// clang-format on
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
@@ -51,9 +51,7 @@ void suspend_power_down(void) {
|
|||||||
// shouldn't power down TPM/FTM if we want a breathing LED
|
// shouldn't power down TPM/FTM if we want a breathing LED
|
||||||
// also shouldn't power down USB
|
// also shouldn't power down USB
|
||||||
#if defined(RGBLIGHT_SLEEP) && defined(RGBLIGHT_ENABLE)
|
#if defined(RGBLIGHT_SLEEP) && defined(RGBLIGHT_ENABLE)
|
||||||
# ifdef RGBLIGHT_ANIMATIONS
|
|
||||||
rgblight_timer_disable();
|
rgblight_timer_disable();
|
||||||
# endif
|
|
||||||
if (!is_suspended) {
|
if (!is_suspended) {
|
||||||
is_suspended = true;
|
is_suspended = true;
|
||||||
rgblight_enabled = rgblight_config.enable;
|
rgblight_enabled = rgblight_config.enable;
|
||||||
@@ -126,9 +124,7 @@ void suspend_wakeup_init(void) {
|
|||||||
if (rgblight_enabled) {
|
if (rgblight_enabled) {
|
||||||
rgblight_enable_noeeprom();
|
rgblight_enable_noeeprom();
|
||||||
}
|
}
|
||||||
# ifdef RGBLIGHT_ANIMATIONS
|
|
||||||
rgblight_timer_enable();
|
rgblight_timer_enable();
|
||||||
# endif
|
|
||||||
#endif
|
#endif
|
||||||
suspend_wakeup_init_kb();
|
suspend_wakeup_init_kb();
|
||||||
}
|
}
|
||||||
Loaded 100 of 108 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user