mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-11-22 11:29:26 +00:00
Merge remote-tracking branch 'origin/master' into develop
This commit is contained in:
commit
adb6feb9f0
80
keyboards/emery65/config.h
Normal file
80
keyboards/emery65/config.h
Normal file
@ -0,0 +1,80 @@
|
||||
/*
|
||||
Copyright 2021 Yiancar-Designs
|
||||
|
||||
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 0x8968
|
||||
#define PRODUCT_ID 0x4536
|
||||
#define DEVICE_VER 0x0001
|
||||
#define MANUFACTURER Yiancar-Designs
|
||||
#define PRODUCT Emery65
|
||||
|
||||
/* key matrix size */
|
||||
#define MATRIX_ROWS 5
|
||||
#define MATRIX_COLS 15
|
||||
|
||||
#define MATRIX_ROW_PINS { A2, B9, B8, B5, B4 }
|
||||
#define MATRIX_COL_PINS { A1, B1, B0, A7, A6, A5, A4, A3, B2, B10, B11, B12, B13, B14, B15 }
|
||||
|
||||
/* COL2ROW, ROW2COL*/
|
||||
#define DIODE_DIRECTION COL2ROW
|
||||
|
||||
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
|
||||
#define DEBOUNCE 5
|
||||
|
||||
/* Ensure we jump to bootloader if the RESET keycode was pressed */
|
||||
#define EARLY_INIT_PERFORM_BOOTLOADER_JUMP TRUE
|
||||
|
||||
/* Indicator LEDs */
|
||||
#define LED_CAPS_LOCK_PIN B6
|
||||
#define LED_PIN_ON_STATE 0
|
||||
|
||||
/* define if matrix has ghost (lacks anti-ghosting diodes) */
|
||||
//#define MATRIX_HAS_GHOST
|
||||
|
||||
/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
|
||||
* This is userful for the Windows task manager shortcut (ctrl+shift+esc).
|
||||
*/
|
||||
// #define GRAVE_ESC_CTRL_OVERRIDE
|
||||
|
||||
/*
|
||||
* Force NKRO
|
||||
*
|
||||
* Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
|
||||
* state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
|
||||
* makefile for this to work.)
|
||||
*
|
||||
* If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
|
||||
* until the next keyboard reset.
|
||||
*
|
||||
* NKRO may prevent your keystrokes from being detected in the BIOS, but it is
|
||||
* fully operational during normal computer usage.
|
||||
*
|
||||
* For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
|
||||
* or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
|
||||
* bootmagic, NKRO mode will always be enabled until it is toggled again during a
|
||||
* power-up.
|
||||
*
|
||||
*/
|
||||
//#define FORCE_NKRO
|
||||
|
||||
/* Bootmagic Lite key configuration */
|
||||
#define BOOTMAGIC_LITE_ROW 0
|
||||
#define BOOTMAGIC_LITE_COLUMN 0
|
21
keyboards/emery65/emery65.c
Normal file
21
keyboards/emery65/emery65.c
Normal file
@ -0,0 +1,21 @@
|
||||
/* Copyright 2021 Yiancar-Designs
|
||||
*
|
||||
* 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 "emery65.h"
|
||||
|
||||
void led_init_ports(void) {
|
||||
// Set our LED pins as open drain outputs
|
||||
palSetLineMode(LED_CAPS_LOCK_PIN, PAL_MODE_OUTPUT_OPENDRAIN);
|
||||
}
|
34
keyboards/emery65/emery65.h
Normal file
34
keyboards/emery65/emery65.h
Normal file
@ -0,0 +1,34 @@
|
||||
/* Copyright 2021 Yiancar-Designs
|
||||
*
|
||||
* 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 XXX KC_NO
|
||||
|
||||
#include "quantum.h"
|
||||
|
||||
#define LAYOUT_all( \
|
||||
K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K2C, K0E, \
|
||||
K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E, \
|
||||
K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2D, K2E, \
|
||||
K30, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E, \
|
||||
K40, K41, K42, K46, K4A, K4B, K4C, K4D, K4E \
|
||||
) { \
|
||||
{ K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E }, \
|
||||
{ K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E }, \
|
||||
{ K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, K2E }, \
|
||||
{ K30, XXX, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E }, \
|
||||
{ K40, K41, K42, XXX, XXX, XXX, K46, XXX, XXX, XXX, K4A, K4B, K4C, K4D, K4E } \
|
||||
}
|
10
keyboards/emery65/info.json
Normal file
10
keyboards/emery65/info.json
Normal file
@ -0,0 +1,10 @@
|
||||
{
|
||||
"keyboard_name": "Emery65",
|
||||
"url": "https://yiancar-designs.com",
|
||||
"maintainer": "Yiancar-Designs",
|
||||
"layouts": {
|
||||
"LAYOUT_all": {
|
||||
"layout": [{"x":0, "y":0}, {"x":1, "y":0}, {"x":2, "y":0}, {"x":3, "y":0}, {"x":4, "y":0}, {"x":5, "y":0}, {"x":6, "y":0}, {"x":7, "y":0}, {"x":8, "y":0}, {"x":9, "y":0}, {"x":10, "y":0}, {"x":11, "y":0}, {"x":12, "y":0}, {"x":13, "y":0}, {"x":14, "y":0}, {"x":15, "y":0}, {"x":0, "y":1, "w":1.5}, {"x":1.5, "y":1}, {"x":2.5, "y":1}, {"x":3.5, "y":1}, {"x":4.5, "y":1}, {"x":5.5, "y":1}, {"x":6.5, "y":1}, {"x":7.5, "y":1}, {"x":8.5, "y":1}, {"x":9.5, "y":1}, {"x":10.5, "y":1}, {"x":11.5, "y":1}, {"x":12.5, "y":1}, {"x":13.5, "y":1, "w":1.5}, {"x":15, "y":1}, {"x":0, "y":2, "w":1.75}, {"x":1.75, "y":2}, {"x":2.75, "y":2}, {"x":3.75, "y":2}, {"x":4.75, "y":2}, {"x":5.75, "y":2}, {"x":6.75, "y":2}, {"x":7.75, "y":2}, {"x":8.75, "y":2}, {"x":9.75, "y":2}, {"x":10.75, "y":2}, {"x":11.75, "y":2}, {"x":12.75, "y":2, "w":2.25}, {"x":15, "y":2}, {"x":0, "y":3, "w":2.25}, {"x":2.25, "y":3}, {"x":3.25, "y":3}, {"x":4.25, "y":3}, {"x":5.25, "y":3}, {"x":6.25, "y":3}, {"x":7.25, "y":3}, {"x":8.25, "y":3}, {"x":9.25, "y":3}, {"x":10.25, "y":3}, {"x":11.25, "y":3}, {"x":12.25, "y":3, "w":1.75}, {"x":14, "y":3}, {"x":15, "y":3}, {"x":0, "y":4, "w":1.25}, {"x":1.25, "y":4, "w":1.25}, {"x":2.5, "y":4, "w":1.25}, {"x":3.75, "y":4, "w":6.25}, {"x":10, "y":4, "w":1.25}, {"x":11.25, "y":4, "w":1.25}, {"x":13, "y":4}, {"x":14, "y":4}, {"x":15, "y":4}]
|
||||
}
|
||||
}
|
||||
}
|
32
keyboards/emery65/keymaps/default/keymap.c
Normal file
32
keyboards/emery65/keymaps/default/keymap.c
Normal file
@ -0,0 +1,32 @@
|
||||
/* Copyright 2021 Yiancar-Designs
|
||||
*
|
||||
* 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_all( /* Base */
|
||||
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_BSPC, KC_DEL, KC_HOME,
|
||||
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_PGUP,
|
||||
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_PGDN,
|
||||
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_END,
|
||||
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RCTL, MO(1), KC_LEFT, KC_DOWN, KC_RGHT),
|
||||
|
||||
[1] = LAYOUT_all( /* FN */
|
||||
KC_GRV, 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_DEL, 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, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_VOLU, KC_VOLD, KC_MUTE, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS)
|
||||
};
|
5
keyboards/emery65/keymaps/default/readme.md
Normal file
5
keyboards/emery65/keymaps/default/readme.md
Normal file
@ -0,0 +1,5 @@
|
||||
# The default keymap for Emery 65.
|
||||
|
||||
![Layer 0](https://i.imgur.com/xiHQsWw.png)
|
||||
|
||||
![Layer 1](https://i.imgur.com/l9qSeTv.png)
|
46
keyboards/emery65/keymaps/via/keymap.c
Normal file
46
keyboards/emery65/keymaps/via/keymap.c
Normal file
@ -0,0 +1,46 @@
|
||||
/* Copyright 2021 Yiancar-Designs
|
||||
*
|
||||
* 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_all( /* Base */
|
||||
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_BSPC, KC_DEL, KC_HOME,
|
||||
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_PGUP,
|
||||
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_PGDN,
|
||||
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_END,
|
||||
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RCTL, MO(1), KC_LEFT, KC_DOWN, KC_RGHT),
|
||||
|
||||
[1] = LAYOUT_all( /* FN */
|
||||
KC_GRV, 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_DEL, 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, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_VOLU, KC_VOLD, KC_MUTE, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
|
||||
|
||||
[2] = LAYOUT_all( /* Empty for dynamic keymaps */
|
||||
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, 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),
|
||||
|
||||
[3] = LAYOUT_all( /* Empty for dynamic keymaps */
|
||||
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, 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)
|
||||
};
|
5
keyboards/emery65/keymaps/via/readme.md
Normal file
5
keyboards/emery65/keymaps/via/readme.md
Normal file
@ -0,0 +1,5 @@
|
||||
# The default keymap for Emery 65. VIA support enabled.
|
||||
|
||||
![Layer 0](https://i.imgur.com/xiHQsWw.png)
|
||||
|
||||
![Layer 1](https://i.imgur.com/l9qSeTv.png)
|
1
keyboards/emery65/keymaps/via/rules.mk
Normal file
1
keyboards/emery65/keymaps/via/rules.mk
Normal file
@ -0,0 +1 @@
|
||||
VIA_ENABLE = yes
|
32
keyboards/emery65/readme.md
Normal file
32
keyboards/emery65/readme.md
Normal file
@ -0,0 +1,32 @@
|
||||
# Emery 65
|
||||
|
||||
This is a standard 65% layout PCB. It supports VIA.
|
||||
|
||||
* Keyboard Maintainer: [Yiancar](http://yiancar-designs.com/) and on [GitHub](https://github.com/yiancar)
|
||||
* Hardware Supported: A 65% keyboard with STM32F072CB
|
||||
* Hardware Availability: https://geekhack.org/index.php?topic=112678.0
|
||||
|
||||
## Instructions
|
||||
|
||||
### Build
|
||||
|
||||
Make example for this keyboard (after setting up your build environment):
|
||||
|
||||
make emery65:default
|
||||
|
||||
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).
|
||||
|
||||
### Reset
|
||||
|
||||
- Unplug
|
||||
- Hold Escape
|
||||
- Plug In
|
||||
- Unplug
|
||||
- Release Escape
|
||||
|
||||
### Flash
|
||||
|
||||
- Unplug
|
||||
- Hold Escape
|
||||
- Plug In
|
||||
- Flash using QMK Toolbox or CLI (`make emery65:<keymap>:flash`)
|
29
keyboards/emery65/rules.mk
Normal file
29
keyboards/emery65/rules.mk
Normal file
@ -0,0 +1,29 @@
|
||||
# MCU name
|
||||
MCU = STM32F072
|
||||
|
||||
# Bootloader selection
|
||||
BOOTLOADER = stm32-dfu
|
||||
|
||||
# Wildcard to allow APM32 MCU
|
||||
DFU_SUFFIX_ARGS = -v FFFF -p FFFF
|
||||
|
||||
# Do not put the microcontroller into power saving mode
|
||||
# when we get USB suspend event. We want it to keep updating
|
||||
# backlight effects.
|
||||
OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
|
||||
|
||||
# Build Options
|
||||
# change yes to no to disable
|
||||
#
|
||||
BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite
|
||||
MOUSEKEY_ENABLE = yes # Mouse keys
|
||||
EXTRAKEY_ENABLE = yes # Audio control and System control
|
||||
CONSOLE_ENABLE = no # Console for debug
|
||||
COMMAND_ENABLE = no # 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 = yes # USB Nkey Rollover
|
||||
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
|
||||
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
|
||||
AUDIO_ENABLE = no # Audio output
|
69
keyboards/ffkeebs/puca/config.h
Normal file
69
keyboards/ffkeebs/puca/config.h
Normal file
@ -0,0 +1,69 @@
|
||||
/*
|
||||
Copyright 2021 Sleepdealer
|
||||
|
||||
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 0x4646 // FF
|
||||
#define PRODUCT_ID 0x0002
|
||||
#define DEVICE_VER 0x0001
|
||||
#define MANUFACTURER FootFingers
|
||||
#define PRODUCT Puca
|
||||
|
||||
#define MATRIX_ROWS 6
|
||||
#define MATRIX_COLS 5
|
||||
// 0 , 1 , 2 , 3 , 4 , 5
|
||||
#define MATRIX_ROW_PINS { B4, E6, D7, B5, C6, F6}
|
||||
#define MATRIX_COL_PINS { F7, B1, B3, B2, B6}
|
||||
|
||||
#define DIODE_DIRECTION COL2ROW
|
||||
|
||||
#ifdef RGBLIGHT_ENABLE
|
||||
#define RGB_DI_PIN D4
|
||||
|
||||
#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
|
||||
#define RGBLIGHT_EFFECT_TWINKLE
|
||||
#define RGBLIGHT_DEFAULT_MODE RGBLIGHT_MODE_STATIC_LIGHT
|
||||
#define RGBLED_NUM 8
|
||||
#endif
|
||||
|
||||
|
||||
#define ENCODERS_PAD_A { F4 }
|
||||
#define ENCODERS_PAD_B { F5 }
|
||||
|
||||
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
|
||||
#define DEBOUNCE 5
|
||||
|
||||
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
|
||||
#define LOCKING_SUPPORT_ENABLE
|
||||
/* Locking resynchronize hack */
|
||||
#define LOCKING_RESYNC_ENABLE
|
||||
|
||||
/* disable these deprecated features by default */
|
||||
#define NO_ACTION_MACRO
|
||||
#define NO_ACTION_FUNCTION
|
||||
|
37
keyboards/ffkeebs/puca/info.json
Normal file
37
keyboards/ffkeebs/puca/info.json
Normal file
@ -0,0 +1,37 @@
|
||||
{
|
||||
"keyboard_name": "Puca",
|
||||
"url": "https://ffkeebs.com/collections/puca/",
|
||||
"maintainer": "Sleepdealr",
|
||||
"layouts": {
|
||||
"LAYOUT": {
|
||||
"layout": [
|
||||
{ "label": "Rotary", "x": 0.5, "y": 0 },
|
||||
{ "label": "Pg Up", "x": 2, "y": 0 },
|
||||
{ "label": "Pg Dn", "x": 3, "y": 0 },
|
||||
{ "label": "Layer Toggle", "x": 0, "y": 1.25 },
|
||||
{ "label": "/", "x": 1, "y": 1.25 },
|
||||
{ "label": "*", "x": 2, "y": 1.25 },
|
||||
{ "label": "-", "x": 3, "y": 1.25 },
|
||||
{ "label": "7", "x": 0, "y": 2.25 },
|
||||
{ "label": "8", "x": 1, "y": 2.25 },
|
||||
{ "label": "9", "x": 2, "y": 2.25 },
|
||||
{ "label": "+", "x": 3, "y": 2.25, "h": 2 },
|
||||
{ "label": "+", "x": 4, "y": 2.25 },
|
||||
{ "label": "4", "x": 0, "y": 3.25 },
|
||||
{ "label": "5", "x": 1, "y": 3.25 },
|
||||
{ "label": "6", "x": 2, "y": 3.25 },
|
||||
{ "label": "|", "x": 4, "y": 3.25 },
|
||||
{ "label": "1", "x": 0, "y": 4.25 },
|
||||
{ "label": "2", "x": 1, "y": 4.25 },
|
||||
{ "label": "3", "x": 2, "y": 4.25 },
|
||||
{ "label": "Enter", "x": 3, "y": 4.25, "h": 2 },
|
||||
{ "label": "Enter", "x": 4, "y": 4.25 },
|
||||
{ "label": "0", "x": 0, "y": 5.25, "w": 2 },
|
||||
{ "label": ".", "x": 2, "y": 5.25 },
|
||||
{ "label": ".", "x": 4, "y": 5.25 },
|
||||
{ "label": "0", "x": 0, "y": 6.25 },
|
||||
{ "label": "00", "x": 1, "y": 6.25 }
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
52
keyboards/ffkeebs/puca/keymaps/default/keymap.c
Normal file
52
keyboards/ffkeebs/puca/keymaps/default/keymap.c
Normal file
@ -0,0 +1,52 @@
|
||||
/* Copyright 2021 Sleepdealer
|
||||
*
|
||||
* 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
|
||||
|
||||
// 00 Functionality
|
||||
enum custom_keycodes {
|
||||
MC_00 = SAFE_RANGE,
|
||||
};
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case MC_00:
|
||||
if (record->event.pressed) {
|
||||
SEND_STRING("00");
|
||||
}
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
};
|
||||
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
LAYOUT(
|
||||
KC_MUTE, KC_PGUP, KC_PGDN,
|
||||
TG(1), KC_PSLS, KC_PAST, KC_PMNS,
|
||||
KC_P7, KC_P8, KC_P9, KC_PPLS, KC_PPLS,
|
||||
KC_P4, KC_P5, KC_P6, KC_PIPE,
|
||||
KC_P1, KC_P2, KC_P3, KC_ENTER, KC_ENTER,
|
||||
KC_P0, MC_00, KC_PDOT, KC_PDOT,
|
||||
KC_P0),
|
||||
LAYOUT(
|
||||
KC_TRNS, RGB_HUI, RGB_VAI,
|
||||
TG(1), RGB_TOG, RGB_HUD, RGB_VAD,
|
||||
KC_PGUP, KC_UP, KC_PGDN, RGB_MOD, RGB_MOD,
|
||||
KC_LEFT, KC_DOWN, KC_RGHT, KC_TRNS,
|
||||
KC_INS, KC_HOME, KC_END, RGB_RMOD, RGB_RMOD,
|
||||
KC_ESC, KC_TRNS, KC_DEL, KC_TRNS,
|
||||
KC_ESC)
|
||||
};
|
133
keyboards/ffkeebs/puca/puca.c
Normal file
133
keyboards/ffkeebs/puca/puca.c
Normal file
@ -0,0 +1,133 @@
|
||||
/* Copyright 2021 Sleepdealer
|
||||
*
|
||||
* 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 "puca.h"
|
||||
|
||||
bool encoder_update_kb(uint8_t index, bool clockwise) {
|
||||
if (!encoder_update_user(index, clockwise)) { return false; }
|
||||
if (clockwise) {
|
||||
tap_code_delay(KC_VOLU, 10); // Right
|
||||
} else {
|
||||
tap_code_delay(KC_VOLD, 10); // Left
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
// OLED
|
||||
#ifdef OLED_ENABLE
|
||||
__attribute__((weak)) oled_rotation_t oled_init_user(oled_rotation_t rotation) { return OLED_ROTATION_270; }
|
||||
__attribute__((weak)) void oled_task_user(void) {
|
||||
// WPM-responsive animation stuff here
|
||||
# define IDLE_FRAMES 2
|
||||
# define ANIM_FRAME_DURATION 400 // how long each frame lasts in ms
|
||||
// #define SLEEP_TIMER 60000 // should sleep after this period of 0 wpm, needs fixing
|
||||
# define ANIM_SIZE 636 // number of bytes in array, minimize for adequate firmware size, max is 1024
|
||||
static uint32_t anim_timer = 0;
|
||||
static uint8_t current_idle_frame = 0;
|
||||
// Credit to u/Pop-X- for the initial code. You can find his commit here https://github.com/qmk/qmk_firmware/pull/9264/files#diff-303f6e3a7a5ee54be0a9a13630842956R196-R333.
|
||||
static const char PROGMEM idle[IDLE_FRAMES][ANIM_SIZE] = {{
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 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, 0x80, 0x60, 0x60, 0x18, 0x18, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06,
|
||||
0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x18, 0x18, 0x60, 0x60, 0x80, 0x80, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x1f, 0x1f, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x1f, 0x1f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x03, 0x03, 0x0c, 0x0c, 0x0c, 0x0c,
|
||||
0x0c, 0x03, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x06, 0x06, 0x18, 0x18, 0x60, 0x60, 0x18, 0x18, 0x60, 0x60,
|
||||
0x80, 0x80, 0x60, 0x60, 0x80, 0x80, 0x60, 0x60, 0x18, 0x18, 0x06, 0x07, 0x01, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x01, 0x01, 0x00, 0x00, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
||||
},{
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0xc0, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30,
|
||||
0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0xc0, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0xfc, 0xfc, 0x03, 0x03, 0x00, 0x00, 0xf8, 0xf8, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0xf8, 0xf8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x03, 0xfc, 0xfc, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x18, 0x18, 0x60, 0x60, 0x60, 0x60,
|
||||
0x60, 0x18, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x0f, 0x0f, 0x30, 0x30, 0xc0, 0xc0, 0x00, 0x00, 0xc0, 0xc0, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0xc0, 0x30, 0x3f, 0x0f, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x03, 0x00, 0x00, 0x03, 0x03,
|
||||
0x0c, 0x0c, 0x03, 0x03, 0x0c, 0x0c, 0x03, 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, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
||||
}};
|
||||
|
||||
void animation_phase(void) {
|
||||
current_idle_frame = (current_idle_frame + 1) % IDLE_FRAMES;
|
||||
oled_write_raw_P(idle[abs((IDLE_FRAMES - 1) - current_idle_frame)], ANIM_SIZE);
|
||||
}
|
||||
if (timer_elapsed32(anim_timer) > ANIM_FRAME_DURATION) {
|
||||
anim_timer = timer_read32();
|
||||
animation_phase();
|
||||
}
|
||||
|
||||
oled_set_cursor(0, 6);
|
||||
oled_write_P(PSTR("PUCA\nPAD\n"), false);
|
||||
oled_write_P(PSTR("-----\n"), false);
|
||||
// Host Keyboard Layer Status
|
||||
oled_write_P(PSTR("MODE\n"), false);
|
||||
oled_write_P(PSTR("\n"), false);
|
||||
switch (get_highest_layer(layer_state)) {
|
||||
case 0:
|
||||
oled_write_P(PSTR("BASE\n"), false);
|
||||
break;
|
||||
case 1:
|
||||
oled_write_P(PSTR("FUNC\n"), false);
|
||||
break;
|
||||
}
|
||||
}
|
||||
#endif
|
41
keyboards/ffkeebs/puca/puca.h
Normal file
41
keyboards/ffkeebs/puca/puca.h
Normal file
@ -0,0 +1,41 @@
|
||||
/* Copyright 2021 Sleepdealer
|
||||
*
|
||||
* 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
|
||||
|
||||
// K24 is 2U Plus
|
||||
// K44 is 2u Enter
|
||||
// K54 is 2u 0
|
||||
|
||||
|
||||
#include "quantum.h"
|
||||
|
||||
#define LAYOUT( \
|
||||
K00, K02, K03, \
|
||||
K10, K11, K12, K13, \
|
||||
K20, K21, K22, K23, K24,\
|
||||
K30, K31, K32, K33, \
|
||||
K40, K41, K42, K43, K44,\
|
||||
K50, K51, K52, K53, \
|
||||
K54 \
|
||||
) { \
|
||||
{ K00, KC_NO, K02, K03, KC_NO }, \
|
||||
{ K10, K11, K12, K13, KC_NO }, \
|
||||
{ K20, K21, K22, K23, K24 }, \
|
||||
{ K30, K31, K32, K33, KC_NO }, \
|
||||
{ K40, K41, K42, K43, K44 }, \
|
||||
{ K50, K51, K52, K53, K54 }, \
|
||||
}
|
23
keyboards/ffkeebs/puca/readme.md
Normal file
23
keyboards/ffkeebs/puca/readme.md
Normal file
@ -0,0 +1,23 @@
|
||||
# Puca Pad
|
||||
|
||||
* Keyboard Maintainer: [Sleepdealer](https://github.com/Sleepdealr)
|
||||
* Hardware Supported: Puca Pad
|
||||
* Hardware Availability: Puca GB
|
||||
|
||||
## Bootloader
|
||||
|
||||
Enter the bootloader in 3 ways:
|
||||
|
||||
* **Bootmagic reset**: Hold down the key at (0,0) in the matrix (the encoder)
|
||||
* **Physical reset button**: Briefly press the button on the front of the PCB - some may have pads you must short instead
|
||||
* **Keycode in layout**: Press the key mapped to `RESET` if it is available
|
||||
|
||||
Make example for this keyboard (after setting up your build environment):
|
||||
|
||||
make ffkeebs/puca:default
|
||||
|
||||
Flashing example for this keyboard:
|
||||
|
||||
make ffkeebs/puca:default:flash
|
||||
|
||||
See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
|
25
keyboards/ffkeebs/puca/rules.mk
Normal file
25
keyboards/ffkeebs/puca/rules.mk
Normal file
@ -0,0 +1,25 @@
|
||||
# MCU name
|
||||
MCU = atmega32u4
|
||||
|
||||
# Bootloader selection
|
||||
BOOTLOADER = caterina
|
||||
|
||||
# Build Options
|
||||
# change yes to no to disable
|
||||
#
|
||||
BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite
|
||||
MOUSEKEY_ENABLE = no # Mouse keys
|
||||
EXTRAKEY_ENABLE = yes # Audio control and System control
|
||||
CONSOLE_ENABLE = no # Console for debug
|
||||
COMMAND_ENABLE = no # 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 = yes # Enable keyboard RGB underglow
|
||||
|
||||
ENCODER_ENABLE = yes #Rotary encoder
|
||||
|
||||
OLED_ENABLE = yes #OLED
|
||||
LTO_ENABLE = yes # Enable Link Time Optimization to reduce firmware size
|
@ -9,6 +9,7 @@ Make example for this keyboard (after setting up your build environment):
|
||||
|
||||
make xelus/pachi/rev1:default
|
||||
make xelus/pachi/mini_32u4:default
|
||||
make xelus/pachi/rgb:default
|
||||
make xelus/pachi/rgb/rev1:default
|
||||
make xelus/pachi/rgb/rev2:default
|
||||
|
||||
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,110 +14,4 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
/* USB Device descriptor parameter */
|
||||
#define VENDOR_ID 0x5845 // "XE"
|
||||
#define PRODUCT_ID 0x5052 // "PR"
|
||||
#define DEVICE_VER 0x0001
|
||||
#define MANUFACTURER Xelus
|
||||
#define PRODUCT Xelus Pachi RGB
|
||||
|
||||
/* key matrix size */
|
||||
#define MATRIX_ROWS 6
|
||||
#define MATRIX_COLS 17
|
||||
|
||||
/* key matrix pins */
|
||||
#define MATRIX_ROW_PINS { B14, B13, B12, B2, A8, B15 }
|
||||
#define MATRIX_COL_PINS { C13, C14, C15, H0, A0, A1, A2, A3, A4, A5, A6, A7, B0, B1, H1, B10, B11 }
|
||||
#define UNUSED_PINS
|
||||
|
||||
/* COL2ROW or ROW2COL */
|
||||
#define DIODE_DIRECTION COL2ROW
|
||||
|
||||
/* Set 0 if debouncing isn't needed */
|
||||
#define DEBOUNCE 5
|
||||
|
||||
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
|
||||
#define LOCKING_SUPPORT_ENABLE
|
||||
|
||||
/* Locking resynchronize hack */
|
||||
#define LOCKING_RESYNC_ENABLE
|
||||
|
||||
// I2C setup
|
||||
#define I2C1_SCL_PIN B8
|
||||
#define I2C1_SDA_PIN B9
|
||||
#define I2C1_SCL_PAL_MODE 4
|
||||
#define I2C1_SDA_PAL_MODE 4
|
||||
#define I2C1_TIMINGR_PRESC 0U
|
||||
#define I2C1_TIMINGR_SCLDEL 11U
|
||||
#define I2C1_TIMINGR_SDADEL 0U
|
||||
#define I2C1_TIMINGR_SCLH 14U
|
||||
#define I2C1_TIMINGR_SCLL 42U
|
||||
|
||||
// I2C EEPROM
|
||||
#define EEPROM_I2C_24LC64
|
||||
|
||||
// RGB Matrix defines
|
||||
#define DRIVER_ADDR_1 0b0110000
|
||||
//#define DRIVER_ADDR_2 0b0110001
|
||||
|
||||
#define DRIVER_COUNT 1
|
||||
#define DRIVER_LED_TOTAL 117
|
||||
#define ISSI_DRIVER_TOTAL DRIVER_LED_TOTAL
|
||||
|
||||
#define RGB_MATRIX_STARTUP_VAL 80
|
||||
#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
|
||||
#define RGB_MATRIX_KEYPRESSES
|
||||
#define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
|
||||
#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL
|
||||
// RGB Matrix Animation modes. Explicitly enabled
|
||||
// For full list of effects, see:
|
||||
// https://docs.qmk.fm/#/feature_rgb_matrix?id=rgb-matrix-effects
|
||||
#define ENABLE_RGB_MATRIX_ALPHAS_MODS
|
||||
#define ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN
|
||||
#define ENABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT
|
||||
#define ENABLE_RGB_MATRIX_BREATHING
|
||||
#define ENABLE_RGB_MATRIX_BAND_SAT
|
||||
#define ENABLE_RGB_MATRIX_BAND_VAL
|
||||
#define ENABLE_RGB_MATRIX_BAND_PINWHEEL_SAT
|
||||
#define ENABLE_RGB_MATRIX_BAND_PINWHEEL_VAL
|
||||
#define ENABLE_RGB_MATRIX_BAND_SPIRAL_SAT
|
||||
#define ENABLE_RGB_MATRIX_BAND_SPIRAL_VAL
|
||||
#define ENABLE_RGB_MATRIX_CYCLE_ALL
|
||||
#define ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT
|
||||
#define ENABLE_RGB_MATRIX_CYCLE_UP_DOWN
|
||||
#define ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON
|
||||
#define ENABLE_RGB_MATRIX_CYCLE_OUT_IN
|
||||
#define ENABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL
|
||||
#define ENABLE_RGB_MATRIX_CYCLE_PINWHEEL
|
||||
#define ENABLE_RGB_MATRIX_CYCLE_SPIRAL
|
||||
#define ENABLE_RGB_MATRIX_DUAL_BEACON
|
||||
#define ENABLE_RGB_MATRIX_RAINBOW_BEACON
|
||||
#define ENABLE_RGB_MATRIX_RAINBOW_PINWHEELS
|
||||
#define ENABLE_RGB_MATRIX_RAINDROPS
|
||||
#define ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS
|
||||
#define ENABLE_RGB_MATRIX_HUE_BREATHING
|
||||
#define ENABLE_RGB_MATRIX_HUE_PENDULUM
|
||||
#define ENABLE_RGB_MATRIX_HUE_WAVE
|
||||
#define ENABLE_RGB_MATRIX_PIXEL_RAIN
|
||||
#define ENABLE_RGB_MATRIX_PIXEL_FLOW
|
||||
#define ENABLE_RGB_MATRIX_PIXEL_FRACTAL
|
||||
// enabled only if RGB_MATRIX_FRAMEBUFFER_EFFECTS is defined
|
||||
#define ENABLE_RGB_MATRIX_TYPING_HEATMAP
|
||||
#define ENABLE_RGB_MATRIX_DIGITAL_RAIN
|
||||
// enabled only of RGB_MATRIX_KEYPRESSES or RGB_MATRIX_KEYRELEASES is defined
|
||||
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE
|
||||
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE
|
||||
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE
|
||||
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE
|
||||
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS
|
||||
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS
|
||||
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS
|
||||
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS
|
||||
#define ENABLE_RGB_MATRIX_SPLASH
|
||||
#define ENABLE_RGB_MATRIX_MULTISPLASH
|
||||
#define ENABLE_RGB_MATRIX_SOLID_SPLASH
|
||||
#define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH
|
||||
|
||||
#define FORCE_NKRO
|
||||
#include "config_common.h"
|
||||
|
120
keyboards/xelus/pachi/rgb/rev1/config.h
Normal file
120
keyboards/xelus/pachi/rgb/rev1/config.h
Normal file
@ -0,0 +1,120 @@
|
||||
/* Copyright 2021 Harrison Chan (Xelus)
|
||||
*
|
||||
* 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
|
||||
|
||||
/* USB Device descriptor parameter */
|
||||
#define VENDOR_ID 0x5845 // "XE"
|
||||
#define PRODUCT_ID 0x5052 // "PR"
|
||||
#define DEVICE_VER 0x0001
|
||||
#define MANUFACTURER Xelus
|
||||
#define PRODUCT Xelus Pachi RGB
|
||||
|
||||
/* key matrix size */
|
||||
#define MATRIX_ROWS 6
|
||||
#define MATRIX_COLS 17
|
||||
|
||||
/* key matrix pins */
|
||||
#define MATRIX_ROW_PINS { B14, B13, B12, B2, A8, B15 }
|
||||
#define MATRIX_COL_PINS { C13, C14, C15, H0, A0, A1, A2, A3, A4, A5, A6, A7, B0, B1, H1, B10, B11 }
|
||||
#define UNUSED_PINS
|
||||
|
||||
/* COL2ROW or ROW2COL */
|
||||
#define DIODE_DIRECTION COL2ROW
|
||||
|
||||
/* Set 0 if debouncing isn't needed */
|
||||
#define DEBOUNCE 5
|
||||
|
||||
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
|
||||
#define LOCKING_SUPPORT_ENABLE
|
||||
|
||||
/* Locking resynchronize hack */
|
||||
#define LOCKING_RESYNC_ENABLE
|
||||
|
||||
// I2C setup
|
||||
#define I2C1_SCL 8
|
||||
#define I2C1_SDA 9
|
||||
#define I2C1_SCL_PAL_MODE 4
|
||||
#define I2C1_SDA_PAL_MODE 4
|
||||
#define I2C1_TIMINGR_PRESC 0U
|
||||
#define I2C1_TIMINGR_SCLDEL 11U
|
||||
#define I2C1_TIMINGR_SDADEL 0U
|
||||
#define I2C1_TIMINGR_SCLH 14U
|
||||
#define I2C1_TIMINGR_SCLL 42U
|
||||
|
||||
// I2C EEPROM
|
||||
#define EEPROM_I2C_24LC64
|
||||
|
||||
// RGB Matrix defines
|
||||
#define DRIVER_ADDR_1 0b0110000
|
||||
|
||||
#define DRIVER_COUNT 1
|
||||
#define DRIVER_1_LED_TOTAL 117
|
||||
#define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL
|
||||
#define ISSI_DRIVER_TOTAL DRIVER_LED_TOTAL
|
||||
|
||||
#define RGB_MATRIX_STARTUP_VAL 80
|
||||
#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
|
||||
#define RGB_MATRIX_KEYPRESSES
|
||||
#define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
|
||||
#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL
|
||||
|
||||
#define ENABLE_RGB_MATRIX_ALPHAS_MODS
|
||||
#define ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN
|
||||
#define ENABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT
|
||||
#define ENABLE_RGB_MATRIX_BREATHING
|
||||
#define ENABLE_RGB_MATRIX_BAND_SAT
|
||||
#define ENABLE_RGB_MATRIX_BAND_VAL
|
||||
#define ENABLE_RGB_MATRIX_BAND_PINWHEEL_SAT
|
||||
#define ENABLE_RGB_MATRIX_BAND_PINWHEEL_VAL
|
||||
#define ENABLE_RGB_MATRIX_BAND_SPIRAL_SAT
|
||||
#define ENABLE_RGB_MATRIX_BAND_SPIRAL_VAL
|
||||
#define ENABLE_RGB_MATRIX_CYCLE_ALL
|
||||
#define ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT
|
||||
#define ENABLE_RGB_MATRIX_CYCLE_UP_DOWN
|
||||
#define ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON
|
||||
#define ENABLE_RGB_MATRIX_CYCLE_OUT_IN
|
||||
#define ENABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL
|
||||
#define ENABLE_RGB_MATRIX_CYCLE_PINWHEEL
|
||||
#define ENABLE_RGB_MATRIX_CYCLE_SPIRAL
|
||||
#define ENABLE_RGB_MATRIX_DUAL_BEACON
|
||||
#define ENABLE_RGB_MATRIX_RAINBOW_BEACON
|
||||
#define ENABLE_RGB_MATRIX_RAINBOW_PINWHEELS
|
||||
#define ENABLE_RGB_MATRIX_RAINDROPS
|
||||
#define ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS
|
||||
#define ENABLE_RGB_MATRIX_HUE_BREATHING
|
||||
#define ENABLE_RGB_MATRIX_HUE_PENDULUM
|
||||
#define ENABLE_RGB_MATRIX_HUE_WAVE
|
||||
#define ENABLE_RGB_MATRIX_FRACTAL
|
||||
#define ENABLE_RGB_MATRIX_PIXEL_RAIN
|
||||
|
||||
#define ENABLE_RGB_MATRIX_TYPING_HEATMAP
|
||||
#define ENABLE_RGB_MATRIX_DIGITAL_RAIN
|
||||
|
||||
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE
|
||||
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE
|
||||
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE
|
||||
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE
|
||||
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS
|
||||
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS
|
||||
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS
|
||||
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS
|
||||
#define ENABLE_RGB_MATRIX_SPLASH
|
||||
#define ENABLE_RGB_MATRIX_MULTISPLASH
|
||||
#define ENABLE_RGB_MATRIX_SOLID_SPLASH
|
||||
#define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH
|
||||
|
||||
#define FORCE_NKRO
|
17
keyboards/xelus/pachi/rgb/rev1/readme.md
Normal file
17
keyboards/xelus/pachi/rgb/rev1/readme.md
Normal file
@ -0,0 +1,17 @@
|
||||
# Pachi RGB Rev 1
|
||||
|
||||
Pachi RGB Rev 1 TKL Keyboard that is a per-key RGB, hotswap, ANSI and tsangan.
|
||||
|
||||
* Keyboard Maintainer: [Xelus22](https://github.com/Xelus22)
|
||||
* Hardware Supported: Group buys
|
||||
|
||||
Make example for this keyboard (after setting up your build environment):
|
||||
|
||||
make xelus/pachi/rgb/rev1:default
|
||||
|
||||
Reset your keyboard in 3 ways:
|
||||
* Software reset on Fn + Backspace
|
||||
* Bootmagic reset: hold down the top left key (usually escape) and plugin the keyboard
|
||||
* Physical reset button: on the back of the PCB, there should be a small golden button you can press
|
||||
|
||||
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).
|
239
keyboards/xelus/pachi/rgb/rev1/rev1.c
Normal file
239
keyboards/xelus/pachi/rgb/rev1/rev1.c
Normal file
@ -0,0 +1,239 @@
|
||||
/* Copyright 2021 Harrison Chan (Xelus)
|
||||
*
|
||||
* 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 "rev1.h"
|
||||
|
||||
// tested and working
|
||||
void matrix_io_delay(void) { __asm__ volatile("nop\nnop\nnop\n"); }
|
||||
|
||||
#ifdef RGB_MATRIX_ENABLE
|
||||
#include "i2c_master.h"
|
||||
#include "drivers/led/issi/is31fl3741.h"
|
||||
const is31_led __flash g_is31_leds[DRIVER_LED_TOTAL] = {
|
||||
/* Refer to IS31 manual for these locations
|
||||
* driver
|
||||
* | R location
|
||||
* | | G location
|
||||
* | | | B location
|
||||
* | | | | */
|
||||
{0, CS39_SW1, CS38_SW1, CS37_SW1}, //A1
|
||||
{0, CS36_SW1, CS35_SW1, CS34_SW1}, //A2
|
||||
{0, CS33_SW1, CS32_SW1, CS31_SW1}, //A3
|
||||
{0, CS30_SW1, CS29_SW1, CS28_SW1}, //A4
|
||||
{0, CS27_SW1, CS26_SW1, CS25_SW1}, //A5
|
||||
{0, CS24_SW1, CS23_SW1, CS22_SW1}, //A6
|
||||
{0, CS21_SW1, CS20_SW1, CS19_SW1}, //A7
|
||||
{0, CS18_SW1, CS17_SW1, CS16_SW1}, //A8
|
||||
{0, CS15_SW1, CS14_SW1, CS13_SW1}, //A9
|
||||
{0, CS12_SW1, CS11_SW1, CS10_SW1}, //A10
|
||||
{0, CS9_SW1 , CS8_SW1 , CS7_SW1 }, //A11
|
||||
{0, CS6_SW1 , CS5_SW1 , CS4_SW1 }, //A12
|
||||
{0, CS3_SW1 , CS2_SW1 , CS1_SW1 }, //A13
|
||||
|
||||
{0, CS39_SW2, CS38_SW2, CS37_SW2}, //B1
|
||||
{0, CS36_SW2, CS35_SW2, CS34_SW2}, //B2
|
||||
{0, CS33_SW2, CS32_SW2, CS31_SW2}, //B3
|
||||
{0, CS30_SW2, CS29_SW2, CS28_SW2}, //B4
|
||||
{0, CS27_SW2, CS26_SW2, CS25_SW2}, //B5
|
||||
{0, CS24_SW2, CS23_SW2, CS22_SW2}, //B6
|
||||
{0, CS21_SW2, CS20_SW2, CS19_SW2}, //B7
|
||||
{0, CS18_SW2, CS17_SW2, CS16_SW2}, //B8
|
||||
{0, CS15_SW2, CS14_SW2, CS13_SW2}, //B9
|
||||
{0, CS12_SW2, CS11_SW2, CS10_SW2}, //B10
|
||||
{0, CS9_SW2 , CS8_SW2 , CS7_SW2 }, //B11
|
||||
{0, CS6_SW2 , CS5_SW2 , CS4_SW2 }, //B12
|
||||
{0, CS3_SW2 , CS2_SW2 , CS1_SW2 }, //B13
|
||||
|
||||
{0, CS39_SW3, CS38_SW3, CS37_SW3}, //C1
|
||||
{0, CS36_SW3, CS35_SW3, CS34_SW3}, //C2
|
||||
{0, CS33_SW3, CS32_SW3, CS31_SW3}, //C3
|
||||
{0, CS30_SW3, CS29_SW3, CS28_SW3}, //C4
|
||||
{0, CS27_SW3, CS26_SW3, CS25_SW3}, //C5
|
||||
{0, CS24_SW3, CS23_SW3, CS22_SW3}, //C6
|
||||
{0, CS21_SW3, CS20_SW3, CS19_SW3}, //C7
|
||||
{0, CS18_SW3, CS17_SW3, CS16_SW3}, //C8
|
||||
{0, CS15_SW3, CS14_SW3, CS13_SW3}, //C9
|
||||
{0, CS12_SW3, CS11_SW3, CS10_SW3}, //C10
|
||||
{0, CS9_SW3 , CS8_SW3 , CS7_SW3 }, //C11
|
||||
{0, CS6_SW3 , CS5_SW3 , CS4_SW3 }, //C12
|
||||
{0, CS3_SW3 , CS2_SW3 , CS1_SW3 }, //C13
|
||||
|
||||
{0, CS39_SW4, CS38_SW4, CS37_SW4}, //D1
|
||||
{0, CS36_SW4, CS35_SW4, CS34_SW4}, //D2
|
||||
{0, CS33_SW4, CS32_SW4, CS31_SW4}, //D3
|
||||
{0, CS30_SW4, CS29_SW4, CS28_SW4}, //D4
|
||||
{0, CS27_SW4, CS26_SW4, CS25_SW4}, //D5
|
||||
{0, CS24_SW4, CS23_SW4, CS22_SW4}, //D6
|
||||
{0, CS21_SW4, CS20_SW4, CS19_SW4}, //D7
|
||||
{0, CS18_SW4, CS17_SW4, CS16_SW4}, //D8
|
||||
{0, CS15_SW4, CS14_SW4, CS13_SW4}, //D9
|
||||
{0, CS12_SW4, CS11_SW4, CS10_SW4}, //D10
|
||||
{0, CS9_SW4 , CS8_SW4 , CS7_SW4 }, //D11
|
||||
{0, CS6_SW4 , CS5_SW4 , CS4_SW4 }, //D12
|
||||
{0, CS3_SW4 , CS2_SW4 , CS1_SW4 }, //D13
|
||||
|
||||
{0, CS39_SW5, CS38_SW5, CS37_SW5}, //E1
|
||||
{0, CS36_SW5, CS35_SW5, CS34_SW5}, //E2
|
||||
{0, CS33_SW5, CS32_SW5, CS31_SW5}, //E3
|
||||
{0, CS30_SW5, CS29_SW5, CS28_SW5}, //E4
|
||||
{0, CS27_SW5, CS26_SW5, CS25_SW5}, //E5
|
||||
{0, CS24_SW5, CS23_SW5, CS22_SW5}, //E6
|
||||
{0, CS21_SW5, CS20_SW5, CS19_SW5}, //E7
|
||||
{0, CS18_SW5, CS17_SW5, CS16_SW5}, //E8
|
||||
{0, CS15_SW5, CS14_SW5, CS13_SW5}, //E9
|
||||
{0, CS12_SW5, CS11_SW5, CS10_SW5}, //E10
|
||||
{0, CS9_SW5 , CS8_SW5 , CS7_SW5 }, //E11
|
||||
{0, CS6_SW5 , CS5_SW5 , CS4_SW5 }, //E12
|
||||
{0, CS3_SW5 , CS2_SW5 , CS1_SW5 }, //E13
|
||||
|
||||
{0, CS39_SW6, CS38_SW6, CS37_SW6}, //F1
|
||||
{0, CS36_SW6, CS35_SW6, CS34_SW6}, //F2
|
||||
{0, CS33_SW6, CS32_SW6, CS31_SW6}, //F3
|
||||
{0, CS30_SW6, CS29_SW6, CS28_SW6}, //F4
|
||||
{0, CS27_SW6, CS26_SW6, CS25_SW6}, //F5
|
||||
{0, CS24_SW6, CS23_SW6, CS22_SW6}, //F6
|
||||
{0, CS21_SW6, CS20_SW6, CS19_SW6}, //F7
|
||||
{0, CS18_SW6, CS17_SW6, CS16_SW6}, //F8
|
||||
{0, CS15_SW6, CS14_SW6, CS13_SW6}, //F9
|
||||
{0, CS12_SW6, CS11_SW6, CS10_SW6}, //F10
|
||||
{0, CS9_SW6 , CS8_SW6 , CS7_SW6 }, //F11
|
||||
{0, CS6_SW6 , CS5_SW6 , CS4_SW6 }, //F12
|
||||
{0, CS3_SW6 , CS2_SW6 , CS1_SW6 }, //F13
|
||||
|
||||
{0, CS39_SW7, CS38_SW7, CS37_SW7}, //G1
|
||||
{0, CS36_SW7, CS35_SW7, CS34_SW7}, //G2
|
||||
{0, CS33_SW7, CS32_SW7, CS31_SW7}, //G3
|
||||
{0, CS30_SW7, CS29_SW7, CS28_SW7}, //G4
|
||||
{0, CS27_SW7, CS26_SW7, CS25_SW7}, //G5
|
||||
{0, CS24_SW7, CS23_SW7, CS22_SW7}, //G6
|
||||
{0, CS21_SW7, CS20_SW7, CS19_SW7}, //G7
|
||||
{0, CS18_SW7, CS17_SW7, CS16_SW7}, //G8
|
||||
{0, CS15_SW7, CS14_SW7, CS13_SW7}, //G9
|
||||
{0, CS12_SW7, CS11_SW7, CS10_SW7}, //G10
|
||||
{0, CS9_SW7 , CS8_SW7 , CS7_SW7 }, //G11
|
||||
{0, CS6_SW7 , CS5_SW7 , CS4_SW7 }, //G12
|
||||
{0, CS3_SW7 , CS2_SW7 , CS1_SW7 }, //G13
|
||||
|
||||
{0, CS39_SW8, CS38_SW8, CS37_SW8}, //H1
|
||||
{0, CS36_SW8, CS35_SW8, CS34_SW8}, //H2
|
||||
{0, CS33_SW8, CS32_SW8, CS31_SW8}, //H3
|
||||
{0, CS30_SW8, CS29_SW8, CS28_SW8}, //H4
|
||||
{0, CS27_SW8, CS26_SW8, CS25_SW8}, //H5
|
||||
{0, CS24_SW8, CS23_SW8, CS22_SW8}, //H6
|
||||
{0, CS21_SW8, CS20_SW8, CS19_SW8}, //H7
|
||||
{0, CS18_SW8, CS17_SW8, CS16_SW8}, //H8
|
||||
{0, CS15_SW8, CS14_SW8, CS13_SW8}, //H9
|
||||
{0, CS12_SW8, CS11_SW8, CS10_SW8}, //H10
|
||||
{0, CS9_SW8 , CS8_SW8 , CS7_SW8 }, //H11
|
||||
{0, CS6_SW8 , CS5_SW8 , CS4_SW8 }, //H12
|
||||
{0, CS3_SW8 , CS2_SW8 , CS1_SW8 }, //H13
|
||||
|
||||
{0, CS39_SW9, CS38_SW9, CS37_SW9}, //I1
|
||||
{0, CS36_SW9, CS35_SW9, CS34_SW9}, //I2
|
||||
{0, CS33_SW9, CS32_SW9, CS31_SW9}, //I3
|
||||
{0, CS30_SW9, CS29_SW9, CS28_SW9}, //I4
|
||||
{0, CS27_SW9, CS26_SW9, CS25_SW9}, //I5
|
||||
{0, CS24_SW9, CS23_SW9, CS22_SW9}, //I6
|
||||
{0, CS21_SW9, CS20_SW9, CS19_SW9}, //I7
|
||||
{0, CS18_SW9, CS17_SW9, CS16_SW9}, //I8
|
||||
{0, CS15_SW9, CS14_SW9, CS13_SW9}, //I9
|
||||
{0, CS12_SW9, CS11_SW9, CS10_SW9}, //I10
|
||||
{0, CS9_SW9 , CS8_SW9 , CS7_SW9 }, //I11
|
||||
{0, CS6_SW9 , CS5_SW9 , CS4_SW9 }, //I12
|
||||
{0, CS3_SW9 , CS2_SW9 , CS1_SW9 } //I13
|
||||
};
|
||||
|
||||
__attribute__ ((weak))
|
||||
led_config_t g_led_config = { {
|
||||
{ -1+00+3 , NO_LED, -1+26+3 , -1+39+3 , -1+52+3 , -1+65+3 , -1+78+3 , -1+91+3 , -1+104+3 , -1+00+1 , -1+13+1 , -1+26+1 , -1+39+1 , -1+52+1 , -1+65+1 , -1+78+1 , -1+91+1 },
|
||||
{ -1+00+4 , -1+13+4 , -1+26+4 , -1+39+4 , -1+52+4 , -1+65+4 , -1+78+4 , -1+91+4 , -1+104+4 , -1+00+2 , -1+13+2 , -1+26+2 , -1+39+2 , -1+52+2 , -1+65+2 , -1+78+2 , -1+91+2 },
|
||||
{ -1+00+6 , -1+13+6 , -1+26+6 , -1+39+6 , -1+52+6 , -1+65+6 , -1+78+6 , -1+91+6 , -1+104+6 , -1+00+5 , -1+13+5 , -1+26+5 , -1+39+5 , -1+52+5 , -1+65+5 , -1+78+5 , -1+91+6 },
|
||||
{ -1+00+8 , -1+13+8 , -1+26+8 , -1+39+8 , -1+52+8 , -1+65+8 , -1+78+8 , -1+91+8 , -1+104+8 , -1+00+7 , -1+13+7 , -1+26+7 , NO_LED , -1+52+7 , NO_LED , NO_LED , NO_LED },
|
||||
{ -1+00+11, -1+13+11, -1+26+11, -1+39+11, -1+52+11, -1+65+11, -1+78+11, -1+91+11, -1+104+11, -1+00+10, -1+13+10, NO_LED , -1+52+10, NO_LED , NO_LED , -1+78+10, NO_LED },
|
||||
{ -1+00+9 , -1+13+9 , -1+26+9 , NO_LED , NO_LED , -1+65+9 , NO_LED , NO_LED , NO_LED , NO_LED , -1+13+12, NO_LED , -1+39+12, -1+52+12, -1+65+12, -1+78+12, -1+91+12}
|
||||
}, {
|
||||
{123, 0}, {117, 15}, {0 , 0}, {0 , 15}, {123, 27}, {3 , 27}, {127, 40}, {5 , 40}, {2 , 64}, {133, 52}, {8 , 52}, {131, 64}, {255,255},
|
||||
{143, 0}, {130, 15}, {255,255}, {13 , 15}, {136, 27}, {19 , 27}, {140, 40}, {23 , 40}, {18 , 64}, {146, 52}, {29 , 52}, {148, 64}, {255,255},
|
||||
{156, 0}, {143, 15}, {26 , 0}, {26 , 15}, {149, 27}, {32 , 27}, {153, 40}, {36 , 40}, {34 , 64}, {255,255}, {42 , 52}, {255,255}, {255,255},
|
||||
{169, 0}, {156, 15}, {39 , 0}, {39 , 15}, {162, 27}, {45 , 27}, {255,255}, {49 , 40}, {255,255}, {255,255}, {55 , 52}, {164, 64}, {255,255},
|
||||
{182, 0}, {175, 15}, {52 , 0}, {52 , 15}, {179, 27}, {58 , 27}, {174, 40}, {62 , 40}, {255,255}, {170, 52}, {68 , 52}, {180, 64}, {255,255},
|
||||
{198, 0}, {198, 15}, {65 , 0}, {65 , 15}, {198, 27}, {71 , 27}, {255,255}, {75 , 40}, {83 , 64}, {255,255}, {81 , 52}, {198, 64}, {255,255},
|
||||
{211, 0}, {211, 15}, {84 , 0}, {78 , 15}, {211, 27}, {84 , 27}, {255,255}, {88 , 40}, {255,255}, {211, 52}, {94 , 52}, {211, 64}, {255,255},
|
||||
{224, 0}, {224, 15}, {97 , 0}, {91 , 15}, {224, 27}, {97 , 27}, {255,255}, {101, 40}, {255,255}, {255,255}, {107, 52}, {224, 64}, {255,255},
|
||||
{255,255}, {255,255}, {110, 0}, {104, 15}, {255,255}, {110, 27}, {255,255}, {114, 40}, {255,255}, {255,255}, {120, 52}, {255,255}, {255,255}
|
||||
}, {
|
||||
1, 4, 1, 1, 4, 1, 4, 1, 1, 4, 1, 4, 4, //0-12
|
||||
1, 4, 4, 4, 4, 4, 4, 4, 1, 4, 4, 1, 4, //13-25
|
||||
1, 4, 1, 4, 4, 4, 4, 4, 1, 4, 4, 4, 4, //26-38
|
||||
1, 4, 1, 4, 4, 4, 4, 4, 4, 4, 4, 1, 4, //39-51
|
||||
1, 1, 1, 4, 1, 4, 1, 4, 4, 1, 4, 1, 4, //52-64
|
||||
1, 1, 1, 4, 1, 4, 4, 4, 1, 4, 4, 1, 4, //65-77
|
||||
1, 1, 1, 4, 1, 4, 4, 4, 4, 1, 4, 1, 4, //78-90
|
||||
1, 1, 1, 4, 1, 4, 4, 4, 4, 4, 4, 1, 4, //91-103
|
||||
4, 4, 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4 //104-116
|
||||
} };
|
||||
|
||||
static void init(void) {
|
||||
i2c_init();
|
||||
IS31FL3741_init(DRIVER_ADDR_1);
|
||||
for (int index = 0; index < ISSI_DRIVER_TOTAL; index++) {
|
||||
bool enabled = !( ( index == -1+0+13) || //A13
|
||||
( index == -1+13+3) || //B3
|
||||
( index == -1+13+13) || //B13
|
||||
( index == -1+26+10) || //C10
|
||||
( index == -1+26+12) || //C12
|
||||
( index == -1+26+13) || //C13
|
||||
( index == -1+39+7) || //D7
|
||||
( index == -1+39+9) || //D9
|
||||
( index == -1+39+10) || //D10
|
||||
( index == -1+39+13) || //D13
|
||||
( index == -1+52+9) || //E9
|
||||
( index == -1+52+13) || //E13
|
||||
( index == -1+65+7) || //F7
|
||||
( index == -1+65+10) || //F10
|
||||
( index == -1+65+13) || //F13
|
||||
( index == -1+78+7) || //G7
|
||||
( index == -1+78+9) || //G9
|
||||
( index == -1+78+13) || //G13
|
||||
( index == -1+91+7) || //H7
|
||||
( index == -1+91+9) || //H9
|
||||
( index == -1+91+10) || //H10
|
||||
( index == -1+91+13) || //H13
|
||||
( index == -1+104+1) || //I1
|
||||
( index == -1+104+2) || //I2
|
||||
( index == -1+104+5) || //I5
|
||||
( index == -1+104+7) || //I7
|
||||
( index == -1+104+9) || //I9
|
||||
( index == -1+104+10) || //I10
|
||||
( index == -1+104+12) || //I12
|
||||
( index == -1+104+13) //I13
|
||||
);
|
||||
IS31FL3741_set_led_control_register(index, enabled, enabled, enabled);
|
||||
}
|
||||
IS31FL3741_update_led_control_registers(DRIVER_ADDR_1, 0);
|
||||
}
|
||||
|
||||
static void flush(void) {
|
||||
IS31FL3741_update_pwm_buffers(DRIVER_ADDR_1, 0);
|
||||
}
|
||||
|
||||
const rgb_matrix_driver_t rgb_matrix_driver = {
|
||||
.init = init,
|
||||
.flush = flush,
|
||||
.set_color = IS31FL3741_set_color,
|
||||
.set_color_all = IS31FL3741_set_color_all
|
||||
};
|
||||
#endif
|
36
keyboards/xelus/pachi/rgb/rev1/rev1.h
Normal file
36
keyboards/xelus/pachi/rgb/rev1/rev1.h
Normal file
@ -0,0 +1,36 @@
|
||||
/* Copyright 2021 Harrison Chan (Xelus)
|
||||
*
|
||||
* 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"
|
||||
|
||||
#define ____ KC_NO
|
||||
|
||||
#define LAYOUT_ansi_tsangan( \
|
||||
K000, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, K015, K016, \
|
||||
K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, K115, K116, \
|
||||
K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214, K215, K216, \
|
||||
K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K313, \
|
||||
K400, K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, K412, K415, \
|
||||
K500, K501, K502, K505, K510, K512, K513, K514, K515, K516 \
|
||||
) { \
|
||||
{ K000, ____, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, K015, K016 }, \
|
||||
{ K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, K115, K116 }, \
|
||||
{ K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214, K215, K216 }, \
|
||||
{ K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, ____, K313, ____, ____, ____ }, \
|
||||
{ K400, K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, ____, K412, ____, ____, K415, ____ }, \
|
||||
{ K500, K501, K502, ____, ____, K505, ____, ____, ____, ____, K510, ____, K512, K513, K514, K515, K516 } \
|
||||
}
|
121
keyboards/xelus/pachi/rgb/rev2/config.h
Normal file
121
keyboards/xelus/pachi/rgb/rev2/config.h
Normal file
@ -0,0 +1,121 @@
|
||||
/* Copyright 2021 Harrison Chan (Xelus)
|
||||
*
|
||||
* 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
|
||||
|
||||
/* USB Device descriptor parameter */
|
||||
#define VENDOR_ID 0x5845 // "XE"
|
||||
#define PRODUCT_ID 0x5052 // "PR"
|
||||
#define DEVICE_VER 0x0002
|
||||
#define MANUFACTURER Xelus
|
||||
#define PRODUCT Xelus Pachi RGB
|
||||
|
||||
/* key matrix size */
|
||||
#define MATRIX_ROWS 12
|
||||
#define MATRIX_COLS 9
|
||||
|
||||
/* key matrix pins */
|
||||
#define MATRIX_ROW_PINS { A5, A6, B0, A7, A8, B1, B4, B5, A15, B3, A13, A14 }
|
||||
#define MATRIX_COL_PINS { C14, C15, A0, A1, A2, A3, A4, A10, A9}
|
||||
#define UNUSED_PINS
|
||||
|
||||
/* COL2ROW or ROW2COL */
|
||||
#define DIODE_DIRECTION COL2ROW
|
||||
|
||||
/* Set 0 if debouncing isn't needed */
|
||||
#define DEBOUNCE 5
|
||||
|
||||
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
|
||||
#define LOCKING_SUPPORT_ENABLE
|
||||
|
||||
/* Locking resynchronize hack */
|
||||
#define LOCKING_RESYNC_ENABLE
|
||||
|
||||
// I2C setup
|
||||
#define I2C1_SCL 6
|
||||
#define I2C1_SDA 7
|
||||
#define I2C1_SCL_PAL_MODE 4
|
||||
#define I2C1_SDA_PAL_MODE 4
|
||||
#define I2C1_TIMINGR_PRESC 0U
|
||||
#define I2C1_TIMINGR_SCLDEL 11U
|
||||
#define I2C1_TIMINGR_SDADEL 0U
|
||||
#define I2C1_TIMINGR_SCLH 14U
|
||||
#define I2C1_TIMINGR_SCLL 42U
|
||||
|
||||
// I2C EEPROM
|
||||
#define EEPROM_I2C_24LC64
|
||||
|
||||
// RGB Matrix defines
|
||||
#define DRIVER_ADDR_1 0b0110000
|
||||
|
||||
#define DRIVER_COUNT 1
|
||||
#define DRIVER_1_LED_TOTAL 117
|
||||
#define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL
|
||||
#define ISSI_DRIVER_TOTAL DRIVER_LED_TOTAL
|
||||
|
||||
#define RGB_MATRIX_STARTUP_VAL 80
|
||||
#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
|
||||
#define RGB_MATRIX_KEYPRESSES
|
||||
#define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
|
||||
#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL
|
||||
|
||||
#define ENABLE_RGB_MATRIX_ALPHAS_MODS
|
||||
#define ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN
|
||||
#define ENABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT
|
||||
#define ENABLE_RGB_MATRIX_BREATHING
|
||||
#define ENABLE_RGB_MATRIX_BAND_SAT
|
||||
#define ENABLE_RGB_MATRIX_BAND_VAL
|
||||
#define ENABLE_RGB_MATRIX_BAND_PINWHEEL_SAT
|
||||
#define ENABLE_RGB_MATRIX_BAND_PINWHEEL_VAL
|
||||
#define ENABLE_RGB_MATRIX_BAND_SPIRAL_SAT
|
||||
#define ENABLE_RGB_MATRIX_BAND_SPIRAL_VAL
|
||||
#define ENABLE_RGB_MATRIX_CYCLE_ALL
|
||||
#define ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT
|
||||
#define ENABLE_RGB_MATRIX_CYCLE_UP_DOWN
|
||||
#define ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON
|
||||
#define ENABLE_RGB_MATRIX_CYCLE_OUT_IN
|
||||
#define ENABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL
|
||||
#define ENABLE_RGB_MATRIX_CYCLE_PINWHEEL
|
||||
#define ENABLE_RGB_MATRIX_CYCLE_SPIRAL
|
||||
#define ENABLE_RGB_MATRIX_DUAL_BEACON
|
||||
#define ENABLE_RGB_MATRIX_RAINBOW_BEACON
|
||||
#define ENABLE_RGB_MATRIX_RAINBOW_PINWHEELS
|
||||
#define ENABLE_RGB_MATRIX_RAINDROPS
|
||||
#define ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS
|
||||
#define ENABLE_RGB_MATRIX_HUE_BREATHING
|
||||
#define ENABLE_RGB_MATRIX_HUE_PENDULUM
|
||||
#define ENABLE_RGB_MATRIX_HUE_WAVE
|
||||
#define ENABLE_RGB_MATRIX_FRACTAL
|
||||
#define ENABLE_RGB_MATRIX_PIXEL_RAIN
|
||||
|
||||
#define ENABLE_RGB_MATRIX_TYPING_HEATMAP
|
||||
#define ENABLE_RGB_MATRIX_DIGITAL_RAIN
|
||||
|
||||
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE
|
||||
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE
|
||||
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE
|
||||
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE
|
||||
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS
|
||||
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS
|
||||
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS
|
||||
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS
|
||||
#define ENABLE_RGB_MATRIX_SPLASH
|
||||
#define ENABLE_RGB_MATRIX_MULTISPLASH
|
||||
#define ENABLE_RGB_MATRIX_SOLID_SPLASH
|
||||
#define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH
|
||||
|
||||
|
||||
#define FORCE_NKRO
|
27
keyboards/xelus/pachi/rgb/rev2/halconf.h
Normal file
27
keyboards/xelus/pachi/rgb/rev2/halconf.h
Normal file
@ -0,0 +1,27 @@
|
||||
/* Copyright 2020 QMK
|
||||
*
|
||||
* 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/>.
|
||||
*/
|
||||
|
||||
/*
|
||||
* This file was auto-generated by:
|
||||
* `qmk chibios-confmigrate -i keyboards/xelus/kangaroo/halconf.h -r platforms/chibios/common/configs/halconf.h`
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#define HAL_USE_I2C TRUE
|
||||
|
||||
#include_next <halconf.h>
|
||||
|
28
keyboards/xelus/pachi/rgb/rev2/mcuconf.h
Normal file
28
keyboards/xelus/pachi/rgb/rev2/mcuconf.h
Normal file
@ -0,0 +1,28 @@
|
||||
/* Copyright 2020 QMK
|
||||
*
|
||||
* 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/>.
|
||||
*/
|
||||
|
||||
/*
|
||||
* This file was auto-generated by:
|
||||
* `qmk chibios-confmigrate -i keyboards/xelus/kangaroo/mcuconf.h -r platforms/chibios/GENERIC_STM32_F072XB/configs/mcuconf.h`
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include_next <mcuconf.h>
|
||||
|
||||
#undef STM32_I2C_USE_I2C1
|
||||
#define STM32_I2C_USE_I2C1 TRUE
|
||||
|
18
keyboards/xelus/pachi/rgb/rev2/readme.md
Normal file
18
keyboards/xelus/pachi/rgb/rev2/readme.md
Normal file
@ -0,0 +1,18 @@
|
||||
# Pachi RGB Rev 2
|
||||
|
||||
Pachi RGB Rev 2 TKL Keyboard that is a per-key RGB, hotswap, ANSI and tsangan.
|
||||
|
||||
* Keyboard Maintainer: [Xelus22](https://github.com/Xelus22)
|
||||
* Hardware Supported: Group buys
|
||||
|
||||
Make example for this keyboard (after setting up your build environment):
|
||||
|
||||
make xelus/pachi/rgb/rev2:default
|
||||
|
||||
Reset your keyboard in 3 ways:
|
||||
|
||||
* Software reset on Fn + Backspace
|
||||
* Bootmagic reset: hold down the top left key (usually escape) and plugin the keyboard
|
||||
* Physical reset button: on the back of the PCB, there should be a small golden button you can press
|
||||
|
||||
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).
|
245
keyboards/xelus/pachi/rgb/rev2/rev2.c
Normal file
245
keyboards/xelus/pachi/rgb/rev2/rev2.c
Normal file
@ -0,0 +1,245 @@
|
||||
/* Copyright 2021 Harrison Chan (Xelus)
|
||||
*
|
||||
* 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 "rev2.h"
|
||||
|
||||
// tested and working
|
||||
void matrix_io_delay(void) { __asm__ volatile("nop\nnop\nnop\n"); }
|
||||
|
||||
#ifdef RGB_MATRIX_ENABLE
|
||||
#include "i2c_master.h"
|
||||
#include "drivers/led/issi/is31fl3741.h"
|
||||
const is31_led __flash g_is31_leds[DRIVER_LED_TOTAL] = {
|
||||
/* Refer to IS31 manual for these locations
|
||||
* driver
|
||||
* | R location
|
||||
* | | G location
|
||||
* | | | B location
|
||||
* | | | | */
|
||||
{0, CS39_SW1, CS38_SW1, CS37_SW1}, //A1
|
||||
{0, CS36_SW1, CS35_SW1, CS34_SW1}, //A2
|
||||
{0, CS33_SW1, CS32_SW1, CS31_SW1}, //A3
|
||||
{0, CS30_SW1, CS29_SW1, CS28_SW1}, //A4
|
||||
{0, CS27_SW1, CS26_SW1, CS25_SW1}, //A5
|
||||
{0, CS24_SW1, CS23_SW1, CS22_SW1}, //A6
|
||||
{0, CS21_SW1, CS20_SW1, CS19_SW1}, //A7
|
||||
{0, CS18_SW1, CS17_SW1, CS16_SW1}, //A8
|
||||
{0, CS15_SW1, CS14_SW1, CS13_SW1}, //A9
|
||||
{0, CS12_SW1, CS11_SW1, CS10_SW1}, //A10
|
||||
{0, CS9_SW1 , CS8_SW1 , CS7_SW1 }, //A11
|
||||
{0, CS6_SW1 , CS5_SW1 , CS4_SW1 }, //A12
|
||||
{0, CS3_SW1 , CS2_SW1 , CS1_SW1 }, //A13
|
||||
|
||||
{0, CS39_SW2, CS38_SW2, CS37_SW2}, //B1
|
||||
{0, CS36_SW2, CS35_SW2, CS34_SW2}, //B2
|
||||
{0, CS33_SW2, CS32_SW2, CS31_SW2}, //B3
|
||||
{0, CS30_SW2, CS29_SW2, CS28_SW2}, //B4
|
||||
{0, CS27_SW2, CS26_SW2, CS25_SW2}, //B5
|
||||
{0, CS24_SW2, CS23_SW2, CS22_SW2}, //B6
|
||||
{0, CS21_SW2, CS20_SW2, CS19_SW2}, //B7
|
||||
{0, CS18_SW2, CS17_SW2, CS16_SW2}, //B8
|
||||
{0, CS15_SW2, CS14_SW2, CS13_SW2}, //B9
|
||||
{0, CS12_SW2, CS11_SW2, CS10_SW2}, //B10
|
||||
{0, CS9_SW2 , CS8_SW2 , CS7_SW2 }, //B11
|
||||
{0, CS6_SW2 , CS5_SW2 , CS4_SW2 }, //B12
|
||||
{0, CS3_SW2 , CS2_SW2 , CS1_SW2 }, //B13
|
||||
|
||||
{0, CS39_SW3, CS38_SW3, CS37_SW3}, //C1
|
||||
{0, CS36_SW3, CS35_SW3, CS34_SW3}, //C2
|
||||
{0, CS33_SW3, CS32_SW3, CS31_SW3}, //C3
|
||||
{0, CS30_SW3, CS29_SW3, CS28_SW3}, //C4
|
||||
{0, CS27_SW3, CS26_SW3, CS25_SW3}, //C5
|
||||
{0, CS24_SW3, CS23_SW3, CS22_SW3}, //C6
|
||||
{0, CS21_SW3, CS20_SW3, CS19_SW3}, //C7
|
||||
{0, CS18_SW3, CS17_SW3, CS16_SW3}, //C8
|
||||
{0, CS15_SW3, CS14_SW3, CS13_SW3}, //C9
|
||||
{0, CS12_SW3, CS11_SW3, CS10_SW3}, //C10
|
||||
{0, CS9_SW3 , CS8_SW3 , CS7_SW3 }, //C11
|
||||
{0, CS6_SW3 , CS5_SW3 , CS4_SW3 }, //C12
|
||||
{0, CS3_SW3 , CS2_SW3 , CS1_SW3 }, //C13
|
||||
|
||||
{0, CS39_SW4, CS38_SW4, CS37_SW4}, //D1
|
||||
{0, CS36_SW4, CS35_SW4, CS34_SW4}, //D2
|
||||
{0, CS33_SW4, CS32_SW4, CS31_SW4}, //D3
|
||||
{0, CS30_SW4, CS29_SW4, CS28_SW4}, //D4
|
||||
{0, CS27_SW4, CS26_SW4, CS25_SW4}, //D5
|
||||
{0, CS24_SW4, CS23_SW4, CS22_SW4}, //D6
|
||||
{0, CS21_SW4, CS20_SW4, CS19_SW4}, //D7
|
||||
{0, CS18_SW4, CS17_SW4, CS16_SW4}, //D8
|
||||
{0, CS15_SW4, CS14_SW4, CS13_SW4}, //D9
|
||||
{0, CS12_SW4, CS11_SW4, CS10_SW4}, //D10
|
||||
{0, CS9_SW4 , CS8_SW4 , CS7_SW4 }, //D11
|
||||
{0, CS6_SW4 , CS5_SW4 , CS4_SW4 }, //D12
|
||||
{0, CS3_SW4 , CS2_SW4 , CS1_SW4 }, //D13
|
||||
|
||||
{0, CS39_SW5, CS38_SW5, CS37_SW5}, //E1
|
||||
{0, CS36_SW5, CS35_SW5, CS34_SW5}, //E2
|
||||
{0, CS33_SW5, CS32_SW5, CS31_SW5}, //E3
|
||||
{0, CS30_SW5, CS29_SW5, CS28_SW5}, //E4
|
||||
{0, CS27_SW5, CS26_SW5, CS25_SW5}, //E5
|
||||
{0, CS24_SW5, CS23_SW5, CS22_SW5}, //E6
|
||||
{0, CS21_SW5, CS20_SW5, CS19_SW5}, //E7
|
||||
{0, CS18_SW5, CS17_SW5, CS16_SW5}, //E8
|
||||
{0, CS15_SW5, CS14_SW5, CS13_SW5}, //E9
|
||||
{0, CS12_SW5, CS11_SW5, CS10_SW5}, //E10
|
||||
{0, CS9_SW5 , CS8_SW5 , CS7_SW5 }, //E11
|
||||
{0, CS6_SW5 , CS5_SW5 , CS4_SW5 }, //E12
|
||||
{0, CS3_SW5 , CS2_SW5 , CS1_SW5 }, //E13
|
||||
|
||||
{0, CS39_SW6, CS38_SW6, CS37_SW6}, //F1
|
||||
{0, CS36_SW6, CS35_SW6, CS34_SW6}, //F2
|
||||
{0, CS33_SW6, CS32_SW6, CS31_SW6}, //F3
|
||||
{0, CS30_SW6, CS29_SW6, CS28_SW6}, //F4
|
||||
{0, CS27_SW6, CS26_SW6, CS25_SW6}, //F5
|
||||
{0, CS24_SW6, CS23_SW6, CS22_SW6}, //F6
|
||||
{0, CS21_SW6, CS20_SW6, CS19_SW6}, //F7
|
||||
{0, CS18_SW6, CS17_SW6, CS16_SW6}, //F8
|
||||
{0, CS15_SW6, CS14_SW6, CS13_SW6}, //F9
|
||||
{0, CS12_SW6, CS11_SW6, CS10_SW6}, //F10
|
||||
{0, CS9_SW6 , CS8_SW6 , CS7_SW6 }, //F11
|
||||
{0, CS6_SW6 , CS5_SW6 , CS4_SW6 }, //F12
|
||||
{0, CS3_SW6 , CS2_SW6 , CS1_SW6 }, //F13
|
||||
|
||||
{0, CS39_SW7, CS38_SW7, CS37_SW7}, //G1
|
||||
{0, CS36_SW7, CS35_SW7, CS34_SW7}, //G2
|
||||
{0, CS33_SW7, CS32_SW7, CS31_SW7}, //G3
|
||||
{0, CS30_SW7, CS29_SW7, CS28_SW7}, //G4
|
||||
{0, CS27_SW7, CS26_SW7, CS25_SW7}, //G5
|
||||
{0, CS24_SW7, CS23_SW7, CS22_SW7}, //G6
|
||||
{0, CS21_SW7, CS20_SW7, CS19_SW7}, //G7
|
||||
{0, CS18_SW7, CS17_SW7, CS16_SW7}, //G8
|
||||
{0, CS15_SW7, CS14_SW7, CS13_SW7}, //G9
|
||||
{0, CS12_SW7, CS11_SW7, CS10_SW7}, //G10
|
||||
{0, CS9_SW7 , CS8_SW7 , CS7_SW7 }, //G11
|
||||
{0, CS6_SW7 , CS5_SW7 , CS4_SW7 }, //G12
|
||||
{0, CS3_SW7 , CS2_SW7 , CS1_SW7 }, //G13
|
||||
|
||||
{0, CS39_SW8, CS38_SW8, CS37_SW8}, //H1
|
||||
{0, CS36_SW8, CS35_SW8, CS34_SW8}, //H2
|
||||
{0, CS33_SW8, CS32_SW8, CS31_SW8}, //H3
|
||||
{0, CS30_SW8, CS29_SW8, CS28_SW8}, //H4
|
||||
{0, CS27_SW8, CS26_SW8, CS25_SW8}, //H5
|
||||
{0, CS24_SW8, CS23_SW8, CS22_SW8}, //H6
|
||||
{0, CS21_SW8, CS20_SW8, CS19_SW8}, //H7
|
||||
{0, CS18_SW8, CS17_SW8, CS16_SW8}, //H8
|
||||
{0, CS15_SW8, CS14_SW8, CS13_SW8}, //H9
|
||||
{0, CS12_SW8, CS11_SW8, CS10_SW8}, //H10
|
||||
{0, CS9_SW8 , CS8_SW8 , CS7_SW8 }, //H11
|
||||
{0, CS6_SW8 , CS5_SW8 , CS4_SW8 }, //H12
|
||||
{0, CS3_SW8 , CS2_SW8 , CS1_SW8 }, //H13
|
||||
|
||||
{0, CS39_SW9, CS38_SW9, CS37_SW9}, //I1
|
||||
{0, CS36_SW9, CS35_SW9, CS34_SW9}, //I2
|
||||
{0, CS33_SW9, CS32_SW9, CS31_SW9}, //I3
|
||||
{0, CS30_SW9, CS29_SW9, CS28_SW9}, //I4
|
||||
{0, CS27_SW9, CS26_SW9, CS25_SW9}, //I5
|
||||
{0, CS24_SW9, CS23_SW9, CS22_SW9}, //I6
|
||||
{0, CS21_SW9, CS20_SW9, CS19_SW9}, //I7
|
||||
{0, CS18_SW9, CS17_SW9, CS16_SW9}, //I8
|
||||
{0, CS15_SW9, CS14_SW9, CS13_SW9}, //I9
|
||||
{0, CS12_SW9, CS11_SW9, CS10_SW9}, //I10
|
||||
{0, CS9_SW9 , CS8_SW9 , CS7_SW9 }, //I11
|
||||
{0, CS6_SW9 , CS5_SW9 , CS4_SW9 }, //I12
|
||||
{0, CS3_SW9 , CS2_SW9 , CS1_SW9 } //I13
|
||||
};
|
||||
|
||||
__attribute__ ((weak))
|
||||
led_config_t g_led_config = { {
|
||||
{ -1+00+3 , -1+26+3 , -1+52+3 , -1+78+3 , -1+104+3, -1+13+1 , -1+39+1 , -1+65+1 , -1+91+1 },
|
||||
{ NO_LED , -1+39+3 , -1+65+3 , -1+91+3 , -1+00+1 , -1+26+1 , -1+52+1 , -1+78+1 , NO_LED },
|
||||
{ -1+00+4 , -1+26+4 , -1+52+4 , -1+78+4 , -1+104+4, -1+13+2 , -1+39+2 , -1+65+2 , -1+91+2 },
|
||||
{ -1+13+4 , -1+39+4 , -1+65+4 , -1+91+4 , -1+00+2 , -1+26+2 , -1+52+2 , -1+78+2 , NO_LED },
|
||||
{ -1+00+6 , -1+26+6 , -1+52+6 , -1+78+6 , -1+104+6, -1+13+5 , -1+39+5 , -1+65+5 , -1+91+6 },
|
||||
{ -1+13+6 , -1+39+6 , -1+65+6 , -1+91+6 , -1+00+5 , -1+26+5 , -1+52+5 , -1+78+5 , NO_LED },
|
||||
{ -1+00+8 , -1+26+8 , -1+52+8 , -1+78+8 , -1+104+8, -1+13+7 , NO_LED , NO_LED , NO_LED },
|
||||
{ -1+13+8 , -1+39+8 , -1+65+8 , -1+91+8 , -1+00+7 , -1+26+7 , -1+52+7 , NO_LED , NO_LED },
|
||||
{ -1+00+11, -1+26+11, -1+52+11, -1+78+11,-1+104+11, -1+13+10, -1+52+10, NO_LED , NO_LED },
|
||||
{ -1+13+11, -1+39+11, -1+65+11, -1+91+11, -1+00+10, NO_LED , NO_LED , -1+78+10, NO_LED },
|
||||
{ -1+00+9 , -1+26+9 , NO_LED , NO_LED , NO_LED , -1+13+12, -1+39+12, -1+65+12, -1+91+12 },
|
||||
{ -1+13+9 , NO_LED , -1+65+9 , NO_LED , NO_LED , NO_LED , -1+52+12, -1+78+12, NO_LED }
|
||||
}, {
|
||||
{123, 0}, {117, 15}, {0 , 0}, {0 , 15}, {123, 27}, {3 , 27}, {127, 40}, {5 , 40}, {2 , 64}, {133, 52}, {8 , 52}, {131, 64}, {255,255},
|
||||
{143, 0}, {130, 15}, {255,255}, {13 , 15}, {136, 27}, {19 , 27}, {140, 40}, {23 , 40}, {18 , 64}, {146, 52}, {29 , 52}, {148, 64}, {255,255},
|
||||
{156, 0}, {143, 15}, {26 , 0}, {26 , 15}, {149, 27}, {32 , 27}, {153, 40}, {36 , 40}, {34 , 64}, {255,255}, {42 , 52}, {255,255}, {255,255},
|
||||
{169, 0}, {156, 15}, {39 , 0}, {39 , 15}, {162, 27}, {45 , 27}, {255,255}, {49 , 40}, {255,255}, {255,255}, {55 , 52}, {164, 64}, {255,255},
|
||||
{182, 0}, {175, 15}, {52 , 0}, {52 , 15}, {179, 27}, {58 , 27}, {174, 40}, {62 , 40}, {255,255}, {170, 52}, {68 , 52}, {180, 64}, {255,255},
|
||||
{198, 0}, {198, 15}, {65 , 0}, {65 , 15}, {198, 27}, {71 , 27}, {255,255}, {75 , 40}, {83 , 64}, {255,255}, {81 , 52}, {198, 64}, {255,255},
|
||||
{211, 0}, {211, 15}, {84 , 0}, {78 , 15}, {211, 27}, {84 , 27}, {255,255}, {88 , 40}, {255,255}, {211, 52}, {94 , 52}, {211, 64}, {255,255},
|
||||
{224, 0}, {224, 15}, {97 , 0}, {91 , 15}, {224, 27}, {97 , 27}, {255,255}, {101, 40}, {255,255}, {255,255}, {107, 52}, {224, 64}, {255,255},
|
||||
{255,255}, {255,255}, {110, 0}, {104, 15}, {255,255}, {110, 27}, {255,255}, {114, 40}, {255,255}, {255,255}, {120, 52}, {255,255}, {255,255}
|
||||
}, {
|
||||
1, 4, 1, 1, 4, 1, 4, 1, 1, 4, 1, 4, 4, //0-12
|
||||
1, 4, 4, 4, 4, 4, 4, 4, 1, 4, 4, 1, 4, //13-25
|
||||
1, 4, 1, 4, 4, 4, 4, 4, 1, 4, 4, 4, 4, //26-38
|
||||
1, 4, 1, 4, 4, 4, 4, 4, 4, 4, 4, 1, 4, //39-51
|
||||
1, 1, 1, 4, 1, 4, 1, 4, 4, 1, 4, 1, 4, //52-64
|
||||
1, 1, 1, 4, 1, 4, 4, 4, 1, 4, 4, 1, 4, //65-77
|
||||
1, 1, 1, 4, 1, 4, 4, 4, 4, 1, 4, 1, 4, //78-90
|
||||
1, 1, 1, 4, 1, 4, 4, 4, 4, 4, 4, 1, 4, //91-103
|
||||
4, 4, 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4 //104-116
|
||||
} };
|
||||
|
||||
static void init(void) {
|
||||
i2c_init();
|
||||
IS31FL3741_init(DRIVER_ADDR_1);
|
||||
for (int index = 0; index < ISSI_DRIVER_TOTAL; index++) {
|
||||
bool enabled = !( ( index == -1+0+13) || //A13
|
||||
( index == -1+13+3) || //B3
|
||||
( index == -1+13+13) || //B13
|
||||
( index == -1+26+10) || //C10
|
||||
( index == -1+26+12) || //C12
|
||||
( index == -1+26+13) || //C13
|
||||
( index == -1+39+7) || //D7
|
||||
( index == -1+39+9) || //D9
|
||||
( index == -1+39+10) || //D10
|
||||
( index == -1+39+13) || //D13
|
||||
( index == -1+52+9) || //E9
|
||||
( index == -1+52+13) || //E13
|
||||
( index == -1+65+7) || //F7
|
||||
( index == -1+65+10) || //F10
|
||||
( index == -1+65+13) || //F13
|
||||
( index == -1+78+7) || //G7
|
||||
( index == -1+78+9) || //G9
|
||||
( index == -1+78+13) || //G13
|
||||
( index == -1+91+7) || //H7
|
||||
( index == -1+91+9) || //H9
|
||||
( index == -1+91+10) || //H10
|
||||
( index == -1+91+13) || //H13
|
||||
( index == -1+104+1) || //I1
|
||||
( index == -1+104+2) || //I2
|
||||
( index == -1+104+5) || //I5
|
||||
( index == -1+104+7) || //I7
|
||||
( index == -1+104+9) || //I9
|
||||
( index == -1+104+10) || //I10
|
||||
( index == -1+104+12) || //I12
|
||||
( index == -1+104+13) //I13
|
||||
);
|
||||
IS31FL3741_set_led_control_register(index, enabled, enabled, enabled);
|
||||
}
|
||||
IS31FL3741_update_led_control_registers(DRIVER_ADDR_1, 0);
|
||||
}
|
||||
|
||||
static void flush(void) {
|
||||
IS31FL3741_update_pwm_buffers(DRIVER_ADDR_1, 0);
|
||||
}
|
||||
|
||||
const rgb_matrix_driver_t rgb_matrix_driver = {
|
||||
.init = init,
|
||||
.flush = flush,
|
||||
.set_color = IS31FL3741_set_color,
|
||||
.set_color_all = IS31FL3741_set_color_all
|
||||
};
|
||||
#endif
|
42
keyboards/xelus/pachi/rgb/rev2/rev2.h
Normal file
42
keyboards/xelus/pachi/rgb/rev2/rev2.h
Normal file
@ -0,0 +1,42 @@
|
||||
/* Copyright 2021 Harrison Chan (Xelus)
|
||||
*
|
||||
* 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"
|
||||
|
||||
#define _____ KC_NO
|
||||
|
||||
#define LAYOUT_ansi_tsangan( \
|
||||
K0000, K0001, K0101, K0002, K0102, K0003, K0103, K0004, K0104, K0005, K0105, K0006, K0106, K0007, K0107, K0008, \
|
||||
K0200, K0300, K0201, K0301, K0202, K0302, K0203, K0303, K0204, K0304, K0205, K0305, K0206, K0306, K0207, K0307, K0208, \
|
||||
K0400, K0500, K0401, K0501, K0402, K0502, K0403, K0503, K0404, K0504, K0405, K0505, K0406, K0506, K0407, K0507, K0408, \
|
||||
K0600, K0700, K0601, K0701, K0602, K0702, K0603, K0703, K0604, K0704, K0605, K0705, K0706, \
|
||||
K0800, K0900, K0801, K0901, K0802, K0902, K0803, K0903, K0804, K0904, K0805, K0806, K0907, \
|
||||
K1000, K1100, K1001, K1102, K1005, K1006, K1106, K1007, K1107, K1008 \
|
||||
) { \
|
||||
{ K0000, K0001, K0002, K0003, K0004, K0005, K0006, K0007, K0008 }, \
|
||||
{ _____, K0101, K0102, K0103, K0104, K0105, K0106, K0107, _____ }, \
|
||||
{ K0200, K0201, K0202, K0203, K0204, K0205, K0206, K0207, K0208 }, \
|
||||
{ K0300, K0301, K0302, K0303, K0304, K0305, K0306, K0307, _____ }, \
|
||||
{ K0400, K0401, K0402, K0403, K0404, K0405, K0406, K0407, K0408 }, \
|
||||
{ K0500, K0501, K0502, K0503, K0504, K0505, K0506, K0507, _____ }, \
|
||||
{ K0600, K0601, K0602, K0603, K0604, K0605, _____, _____, _____ }, \
|
||||
{ K0700, K0701, K0702, K0703, K0704, K0705, K0706, _____, _____ }, \
|
||||
{ K0800, K0801, K0802, K0803, K0804, K0805, K0806, _____, _____ }, \
|
||||
{ K0900, K0901, K0902, K0903, K0904, _____, _____, K0907, _____ }, \
|
||||
{ K1000, K1001, _____, _____, _____, K1005, K1006, K1007, K1008 }, \
|
||||
{ K1100, _____, K1102, _____, _____, _____, K1106, K1107, _____ } \
|
||||
}
|
31
keyboards/xelus/pachi/rgb/rev2/rules.mk
Normal file
31
keyboards/xelus/pachi/rgb/rev2/rules.mk
Normal file
@ -0,0 +1,31 @@
|
||||
# MCU name
|
||||
MCU = STM32L422
|
||||
|
||||
# Bootloader selection
|
||||
BOOTLOADER = stm32-dfu
|
||||
|
||||
# Build Options
|
||||
# change yes to no to disable
|
||||
#
|
||||
BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite
|
||||
MOUSEKEY_ENABLE = yes # Mouse keys
|
||||
EXTRAKEY_ENABLE = yes # Audio control and System control
|
||||
CONSOLE_ENABLE = yes # Console for debug
|
||||
COMMAND_ENABLE = no # 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 = yes # USB Nkey Rollover
|
||||
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
|
||||
AUDIO_ENABLE = no # Audio output
|
||||
|
||||
EEPROM_DRIVER = i2c
|
||||
|
||||
RGB_MATRIX_ENABLE = yes
|
||||
RGB_MATRIX_DRIVER = custom
|
||||
|
||||
COMMON_VPATH += $(DRIVER_PATH)/issi
|
||||
SRC += drivers/led/issi/is31fl3741.c
|
||||
|
||||
LTO_ENABLE = yes
|
||||
OPT = 2
|
@ -13,231 +13,4 @@
|
||||
* 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 "rgb.h"
|
||||
#include <hal.h>
|
||||
#include <ch.h>
|
||||
|
||||
// tested and working
|
||||
void matrix_io_delay(void) { __asm__ volatile("nop\nnop\nnop\n"); }
|
||||
|
||||
#ifdef RGB_MATRIX_ENABLE
|
||||
#include <i2c_master.h>
|
||||
#include "drivers/led/issi/is31fl3741.h"
|
||||
const is31_led __flash g_is31_leds[DRIVER_LED_TOTAL] = {
|
||||
/* Refer to IS31 manual for these locations
|
||||
* driver
|
||||
* | R location
|
||||
* | | G location
|
||||
* | | | B location
|
||||
* | | | | */
|
||||
{0, CS39_SW1, CS38_SW1, CS37_SW1}, //A1
|
||||
{0, CS36_SW1, CS35_SW1, CS34_SW1}, //A2
|
||||
{0, CS33_SW1, CS32_SW1, CS31_SW1}, //A3
|
||||
{0, CS30_SW1, CS29_SW1, CS28_SW1}, //A4
|
||||
{0, CS27_SW1, CS26_SW1, CS25_SW1}, //A5
|
||||
{0, CS24_SW1, CS23_SW1, CS22_SW1}, //A6
|
||||
{0, CS21_SW1, CS20_SW1, CS19_SW1}, //A7
|
||||
{0, CS18_SW1, CS17_SW1, CS16_SW1}, //A8
|
||||
{0, CS15_SW1, CS14_SW1, CS13_SW1}, //A9
|
||||
{0, CS12_SW1, CS11_SW1, CS10_SW1}, //A10
|
||||
{0, CS9_SW1 , CS8_SW1 , CS7_SW1 }, //A11
|
||||
{0, CS6_SW1 , CS5_SW1 , CS4_SW1 }, //A12
|
||||
{0, CS3_SW1 , CS2_SW1 , CS1_SW1 }, //A13
|
||||
|
||||
{0, CS39_SW2, CS38_SW2, CS37_SW2}, //B1
|
||||
{0, CS36_SW2, CS35_SW2, CS34_SW2}, //B2
|
||||
{0, CS33_SW2, CS32_SW2, CS31_SW2}, //B3
|
||||
{0, CS30_SW2, CS29_SW2, CS28_SW2}, //B4
|
||||
{0, CS27_SW2, CS26_SW2, CS25_SW2}, //B5
|
||||
{0, CS24_SW2, CS23_SW2, CS22_SW2}, //B6
|
||||
{0, CS21_SW2, CS20_SW2, CS19_SW2}, //B7
|
||||
{0, CS18_SW2, CS17_SW2, CS16_SW2}, //B8
|
||||
{0, CS15_SW2, CS14_SW2, CS13_SW2}, //B9
|
||||
{0, CS12_SW2, CS11_SW2, CS10_SW2}, //B10
|
||||
{0, CS9_SW2 , CS8_SW2 , CS7_SW2 }, //B11
|
||||
{0, CS6_SW2 , CS5_SW2 , CS4_SW2 }, //B12
|
||||
{0, CS3_SW2 , CS2_SW2 , CS1_SW2 }, //B13
|
||||
|
||||
{0, CS39_SW3, CS38_SW3, CS37_SW3}, //C1
|
||||
{0, CS36_SW3, CS35_SW3, CS34_SW3}, //C2
|
||||
{0, CS33_SW3, CS32_SW3, CS31_SW3}, //C3
|
||||
{0, CS30_SW3, CS29_SW3, CS28_SW3}, //C4
|
||||
{0, CS27_SW3, CS26_SW3, CS25_SW3}, //C5
|
||||
{0, CS24_SW3, CS23_SW3, CS22_SW3}, //C6
|
||||
{0, CS21_SW3, CS20_SW3, CS19_SW3}, //C7
|
||||
{0, CS18_SW3, CS17_SW3, CS16_SW3}, //C8
|
||||
{0, CS15_SW3, CS14_SW3, CS13_SW3}, //C9
|
||||
{0, CS12_SW3, CS11_SW3, CS10_SW3}, //C10
|
||||
{0, CS9_SW3 , CS8_SW3 , CS7_SW3 }, //C11
|
||||
{0, CS6_SW3 , CS5_SW3 , CS4_SW3 }, //C12
|
||||
{0, CS3_SW3 , CS2_SW3 , CS1_SW3 }, //C13
|
||||
|
||||
{0, CS39_SW4, CS38_SW4, CS37_SW4}, //D1
|
||||
{0, CS36_SW4, CS35_SW4, CS34_SW4}, //D2
|
||||
{0, CS33_SW4, CS32_SW4, CS31_SW4}, //D3
|
||||
{0, CS30_SW4, CS29_SW4, CS28_SW4}, //D4
|
||||
{0, CS27_SW4, CS26_SW4, CS25_SW4}, //D5
|
||||
{0, CS24_SW4, CS23_SW4, CS22_SW4}, //D6
|
||||
{0, CS21_SW4, CS20_SW4, CS19_SW4}, //D7
|
||||
{0, CS18_SW4, CS17_SW4, CS16_SW4}, //D8
|
||||
{0, CS15_SW4, CS14_SW4, CS13_SW4}, //D9
|
||||
{0, CS12_SW4, CS11_SW4, CS10_SW4}, //D10
|
||||
{0, CS9_SW4 , CS8_SW4 , CS7_SW4 }, //D11
|
||||
{0, CS6_SW4 , CS5_SW4 , CS4_SW4 }, //D12
|
||||
{0, CS3_SW4 , CS2_SW4 , CS1_SW4 }, //D13
|
||||
|
||||
{0, CS39_SW5, CS38_SW5, CS37_SW5}, //E1
|
||||
{0, CS36_SW5, CS35_SW5, CS34_SW5}, //E2
|
||||
{0, CS33_SW5, CS32_SW5, CS31_SW5}, //E3
|
||||
{0, CS30_SW5, CS29_SW5, CS28_SW5}, //E4
|
||||
{0, CS27_SW5, CS26_SW5, CS25_SW5}, //E5
|
||||
{0, CS24_SW5, CS23_SW5, CS22_SW5}, //E6
|
||||
{0, CS21_SW5, CS20_SW5, CS19_SW5}, //E7
|
||||
{0, CS18_SW5, CS17_SW5, CS16_SW5}, //E8
|
||||
{0, CS15_SW5, CS14_SW5, CS13_SW5}, //E9
|
||||
{0, CS12_SW5, CS11_SW5, CS10_SW5}, //E10
|
||||
{0, CS9_SW5 , CS8_SW5 , CS7_SW5 }, //E11
|
||||
{0, CS6_SW5 , CS5_SW5 , CS4_SW5 }, //E12
|
||||
{0, CS3_SW5 , CS2_SW5 , CS1_SW5 }, //E13
|
||||
|
||||
{0, CS39_SW6, CS38_SW6, CS37_SW6}, //F1
|
||||
{0, CS36_SW6, CS35_SW6, CS34_SW6}, //F2
|
||||
{0, CS33_SW6, CS32_SW6, CS31_SW6}, //F3
|
||||
{0, CS30_SW6, CS29_SW6, CS28_SW6}, //F4
|
||||
{0, CS27_SW6, CS26_SW6, CS25_SW6}, //F5
|
||||
{0, CS24_SW6, CS23_SW6, CS22_SW6}, //F6
|
||||
{0, CS21_SW6, CS20_SW6, CS19_SW6}, //F7
|
||||
{0, CS18_SW6, CS17_SW6, CS16_SW6}, //F8
|
||||
{0, CS15_SW6, CS14_SW6, CS13_SW6}, //F9
|
||||
{0, CS12_SW6, CS11_SW6, CS10_SW6}, //F10
|
||||
{0, CS9_SW6 , CS8_SW6 , CS7_SW6 }, //F11
|
||||
{0, CS6_SW6 , CS5_SW6 , CS4_SW6 }, //F12
|
||||
{0, CS3_SW6 , CS2_SW6 , CS1_SW6 }, //F13
|
||||
|
||||
{0, CS39_SW7, CS38_SW7, CS37_SW7}, //G1
|
||||
{0, CS36_SW7, CS35_SW7, CS34_SW7}, //G2
|
||||
{0, CS33_SW7, CS32_SW7, CS31_SW7}, //G3
|
||||
{0, CS30_SW7, CS29_SW7, CS28_SW7}, //G4
|
||||
{0, CS27_SW7, CS26_SW7, CS25_SW7}, //G5
|
||||
{0, CS24_SW7, CS23_SW7, CS22_SW7}, //G6
|
||||
{0, CS21_SW7, CS20_SW7, CS19_SW7}, //G7
|
||||
{0, CS18_SW7, CS17_SW7, CS16_SW7}, //G8
|
||||
{0, CS15_SW7, CS14_SW7, CS13_SW7}, //G9
|
||||
{0, CS12_SW7, CS11_SW7, CS10_SW7}, //G10
|
||||
{0, CS9_SW7 , CS8_SW7 , CS7_SW7 }, //G11
|
||||
{0, CS6_SW7 , CS5_SW7 , CS4_SW7 }, //G12
|
||||
{0, CS3_SW7 , CS2_SW7 , CS1_SW7 }, //G13
|
||||
|
||||
{0, CS39_SW8, CS38_SW8, CS37_SW8}, //H1
|
||||
{0, CS36_SW8, CS35_SW8, CS34_SW8}, //H2
|
||||
{0, CS33_SW8, CS32_SW8, CS31_SW8}, //H3
|
||||
{0, CS30_SW8, CS29_SW8, CS28_SW8}, //H4
|
||||
{0, CS27_SW8, CS26_SW8, CS25_SW8}, //H5
|
||||
{0, CS24_SW8, CS23_SW8, CS22_SW8}, //H6
|
||||
{0, CS21_SW8, CS20_SW8, CS19_SW8}, //H7
|
||||
{0, CS18_SW8, CS17_SW8, CS16_SW8}, //H8
|
||||
{0, CS15_SW8, CS14_SW8, CS13_SW8}, //H9
|
||||
{0, CS12_SW8, CS11_SW8, CS10_SW8}, //H10
|
||||
{0, CS9_SW8 , CS8_SW8 , CS7_SW8 }, //H11
|
||||
{0, CS6_SW8 , CS5_SW8 , CS4_SW8 }, //H12
|
||||
{0, CS3_SW8 , CS2_SW8 , CS1_SW8 }, //H13
|
||||
|
||||
{0, CS39_SW9, CS38_SW9, CS37_SW9}, //I1
|
||||
{0, CS36_SW9, CS35_SW9, CS34_SW9}, //I2
|
||||
{0, CS33_SW9, CS32_SW9, CS31_SW9}, //I3
|
||||
{0, CS30_SW9, CS29_SW9, CS28_SW9}, //I4
|
||||
{0, CS27_SW9, CS26_SW9, CS25_SW9}, //I5
|
||||
{0, CS24_SW9, CS23_SW9, CS22_SW9}, //I6
|
||||
{0, CS21_SW9, CS20_SW9, CS19_SW9}, //I7
|
||||
{0, CS18_SW9, CS17_SW9, CS16_SW9}, //I8
|
||||
{0, CS15_SW9, CS14_SW9, CS13_SW9}, //I9
|
||||
{0, CS12_SW9, CS11_SW9, CS10_SW9}, //I10
|
||||
{0, CS9_SW9 , CS8_SW9 , CS7_SW9 }, //I11
|
||||
{0, CS6_SW9 , CS5_SW9 , CS4_SW9 }, //I12
|
||||
{0, CS3_SW9 , CS2_SW9 , CS1_SW9 } //I13
|
||||
};
|
||||
|
||||
__attribute__ ((weak))
|
||||
led_config_t g_led_config = { {
|
||||
{ -1+00+3 , NO_LED, -1+26+3 , -1+39+3 , -1+52+3 , -1+65+3 , -1+78+3 , -1+91+3 , -1+104+3 , -1+00+1 , -1+13+1 , -1+26+1 , -1+39+1 , -1+52+1 , -1+65+1 , -1+78+1 , -1+91+1 },
|
||||
{ -1+00+4 , -1+13+4 , -1+26+4 , -1+39+4 , -1+52+4 , -1+65+4 , -1+78+4 , -1+91+4 , -1+104+4 , -1+00+2 , -1+13+2 , -1+26+2 , -1+39+2 , -1+52+2 , -1+65+2 , -1+78+2 , -1+91+2 },
|
||||
{ -1+00+6 , -1+13+6 , -1+26+6 , -1+39+6 , -1+52+6 , -1+65+6 , -1+78+6 , -1+91+6 , -1+104+6 , -1+00+5 , -1+13+5 , -1+26+5 , -1+39+5 , -1+52+5 , -1+65+5 , -1+78+5 , -1+91+6 },
|
||||
{ -1+00+8 , -1+13+8 , -1+26+8 , -1+39+8 , -1+52+8 , -1+65+8 , -1+78+8 , -1+91+8 , -1+104+8 , -1+00+7 , -1+13+7 , -1+26+7 , NO_LED , -1+52+7 , NO_LED , NO_LED , NO_LED },
|
||||
{ -1+00+11, -1+13+11, -1+26+11, -1+39+11, -1+52+11, -1+65+11, -1+78+11, -1+91+11, -1+104+11, -1+00+10, -1+13+10, NO_LED , -1+52+10, NO_LED , NO_LED , -1+78+10, NO_LED },
|
||||
{ -1+00+9 , -1+13+9 , -1+26+9 , NO_LED , NO_LED , -1+65+9 , NO_LED , NO_LED , NO_LED , NO_LED , -1+13+12, NO_LED , -1+39+12, -1+52+12, -1+65+12, -1+78+12, -1+91+12}
|
||||
}, {
|
||||
{123, 0}, {117, 15}, {0 , 0}, {0 , 15}, {123, 27}, {3 , 27}, {127, 40}, {5 , 40}, {2 , 64}, {133, 52}, {8 , 52}, {131, 64}, {255,255},
|
||||
{143, 0}, {130, 15}, {255,255}, {13 , 15}, {136, 27}, {19 , 27}, {140, 40}, {23 , 40}, {18 , 64}, {146, 52}, {29 , 52}, {148, 64}, {255,255},
|
||||
{156, 0}, {143, 15}, {26 , 0}, {26 , 15}, {149, 27}, {32 , 27}, {153, 40}, {36 , 40}, {34 , 64}, {255,255}, {42 , 52}, {255,255}, {255,255},
|
||||
{169, 0}, {156, 15}, {39 , 0}, {39 , 15}, {162, 27}, {45 , 27}, {255,255}, {49 , 40}, {255,255}, {255,255}, {55 , 52}, {164, 64}, {255,255},
|
||||
{182, 0}, {175, 15}, {52 , 0}, {52 , 15}, {179, 27}, {58 , 27}, {174, 40}, {62 , 40}, {255,255}, {170, 52}, {68 , 52}, {180, 64}, {255,255},
|
||||
{198, 0}, {198, 15}, {65 , 0}, {65 , 15}, {198, 27}, {71 , 27}, {255,255}, {75 , 40}, {83 , 64}, {255,255}, {81 , 52}, {198, 64}, {255,255},
|
||||
{211, 0}, {211, 15}, {84 , 0}, {78 , 15}, {211, 27}, {84 , 27}, {255,255}, {88 , 40}, {255,255}, {211, 52}, {94 , 52}, {211, 64}, {255,255},
|
||||
{224, 0}, {224, 15}, {97 , 0}, {91 , 15}, {224, 27}, {97 , 27}, {255,255}, {101, 40}, {255,255}, {255,255}, {107, 52}, {224, 64}, {255,255},
|
||||
{255,255}, {255,255}, {110, 0}, {104, 15}, {255,255}, {110, 27}, {255,255}, {114, 40}, {255,255}, {255,255}, {120, 52}, {255,255}, {255,255}
|
||||
}, {
|
||||
1, 4, 1, 1, 4, 1, 4, 1, 1, 4, 1, 4, 4, //0-12
|
||||
1, 4, 4, 4, 4, 4, 4, 4, 1, 4, 4, 1, 4, //13-25
|
||||
1, 4, 1, 4, 4, 4, 4, 4, 1, 4, 4, 4, 4, //26-38
|
||||
1, 4, 1, 4, 4, 4, 4, 4, 4, 4, 4, 1, 4, //39-51
|
||||
1, 1, 1, 4, 1, 4, 1, 4, 4, 1, 4, 1, 4, //52-64
|
||||
1, 1, 1, 4, 1, 4, 4, 4, 1, 4, 4, 1, 4, //65-77
|
||||
1, 1, 1, 4, 1, 4, 4, 4, 4, 1, 4, 1, 4, //78-90
|
||||
1, 1, 1, 4, 1, 4, 4, 4, 4, 4, 4, 1, 4, //91-103
|
||||
4, 4, 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4 //104-116
|
||||
} };
|
||||
|
||||
static void init(void) {
|
||||
i2c_init();
|
||||
IS31FL3741_init(DRIVER_ADDR_1);
|
||||
for (int index = 0; index < ISSI_DRIVER_TOTAL; index++) {
|
||||
bool enabled = !( ( index == -1+0+13) || //A13
|
||||
( index == -1+13+3) || //B3
|
||||
( index == -1+13+13) || //B13
|
||||
( index == -1+26+10) || //C10
|
||||
( index == -1+26+12) || //C12
|
||||
( index == -1+26+13) || //C13
|
||||
( index == -1+39+7) || //D7
|
||||
( index == -1+39+9) || //D9
|
||||
( index == -1+39+10) || //D10
|
||||
( index == -1+39+13) || //D13
|
||||
( index == -1+52+9) || //E9
|
||||
( index == -1+52+13) || //E13
|
||||
( index == -1+65+7) || //F7
|
||||
( index == -1+65+10) || //F10
|
||||
( index == -1+65+13) || //F13
|
||||
( index == -1+78+7) || //G7
|
||||
( index == -1+78+9) || //G9
|
||||
( index == -1+78+13) || //G13
|
||||
( index == -1+91+7) || //H7
|
||||
( index == -1+91+9) || //H9
|
||||
( index == -1+91+10) || //H10
|
||||
( index == -1+91+13) || //H13
|
||||
( index == -1+104+1) || //I1
|
||||
( index == -1+104+2) || //I2
|
||||
( index == -1+104+5) || //I5
|
||||
( index == -1+104+7) || //I7
|
||||
( index == -1+104+9) || //I9
|
||||
( index == -1+104+10) || //I10
|
||||
( index == -1+104+12) || //I12
|
||||
( index == -1+104+13) //I13
|
||||
);
|
||||
IS31FL3741_set_led_control_register(index, enabled, enabled, enabled);
|
||||
}
|
||||
IS31FL3741_update_led_control_registers(DRIVER_ADDR_1, 0);
|
||||
}
|
||||
|
||||
static void flush(void) {
|
||||
IS31FL3741_update_pwm_buffers(DRIVER_ADDR_1, 0);
|
||||
// Just for reference. Only first driver is used?
|
||||
// IS31FL3741_update_pwm_buffers(DRIVER_ADDR_2, 1);
|
||||
}
|
||||
|
||||
const rgb_matrix_driver_t rgb_matrix_driver = {
|
||||
.init = init,
|
||||
.flush = flush,
|
||||
.set_color = IS31FL3741_set_color,
|
||||
.set_color_all = IS31FL3741_set_color_all
|
||||
};
|
||||
#endif
|
||||
|
@ -17,20 +17,8 @@
|
||||
|
||||
#include "quantum.h"
|
||||
|
||||
#define ____ KC_NO
|
||||
|
||||
#define LAYOUT_ansi_tsangan( \
|
||||
K000, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, K015, K016, \
|
||||
K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, K115, K116, \
|
||||
K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214, K215, K216, \
|
||||
K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K313, \
|
||||
K400, K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, K412, K415, \
|
||||
K500, K501, K502, K505, K510, K512, K513, K514, K515, K516 \
|
||||
) { \
|
||||
{ K000, ____, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, K015, K016 }, \
|
||||
{ K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, K115, K116 }, \
|
||||
{ K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214, K215, K216 }, \
|
||||
{ K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, ____, K313, ____, ____, ____ }, \
|
||||
{ K400, K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, ____, K412, ____, ____, K415, ____ }, \
|
||||
{ K500, K501, K502, ____, ____, K505, ____, ____, ____, ____, K510, ____, K512, K513, K514, K515, K516 } \
|
||||
}
|
||||
#if defined(KEYBOARD_xelus_pachi_rgb_rev1)
|
||||
#include "rev1.h"
|
||||
#elif defined(KEYBOARD_xelus_pachi_rgb_rev2)
|
||||
#include "rev2.h"
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user