it compiles!

This commit is contained in:
Ricardo (XenGi) Band 2022-08-03 22:03:40 +02:00
commit 65227adf50
Signed by: xengi
GPG key ID: 56376B6BA63CC9F7
5 changed files with 41 additions and 83 deletions

View file

@ -45,6 +45,8 @@
/* Locking resynchronize hack */
#define LOCKING_RESYNC_ENABLE
#define LAYER_STATE_8BIT
/*
* Feature disable options
* These options are also useful to firmware size reduction.
@ -59,7 +61,8 @@
/* disable action features */
//#define NO_ACTION_LAYER
//#define NO_ACTION_TAPPING
//#define NO_ACTION_ONESHOT
#define NO_ACTION_ONESHOT
#define NO_MUSIC_MODE
/*
@ -78,23 +81,6 @@
* └───────┴───┴───┘
*/
led_config_t g_led_config = { {
// Key Matrix to LED Index
{ 21, 20, 19, 18, },
{ 17, 16, 15, 14, },
{ 13, 12, 11, NO_LED },
{ 10, 9, 8, 7 },
{ 6, 5, 4, NO_LED },
{ 3, NO_LED, 1, 0 }
}, {
// LED Index to Physical Position
// x = 224 / (NUMBER_OF_COLS - 1) * COL_POSITION
// y = 64 / (NUMBER_OF_ROWS - 1) * ROW_POSITION
{ 224, 58 }, { 149, 64 }, { 112, 64 }, { 149, 51 }, { 75, 51 }, { 0, 51 }, { 224, 32 }, { 149, 38 }, { 75, 38 }, { 0, 38 }, { 149, 26 }, { 75, 26 }, { 0, 26 }, { 224, 13 }, { 149, 13 }, { 75, 13 }, { 0, 13 }, { 224, 0 }, { 149, 0 }, { 75, 0 }, { 0, 0 }
}, {
// LED Index to Flag
4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4
} };
#define ENABLE_RGB_MATRIX_ALPHAS_MODS
#define ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN

View file

@ -29,7 +29,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
*/
[0] = LAYOUT_numpad_6x4(
KC_MPRV, KC_MPLY, KC_MSTP, KC_MNXT,
TD(TD_ESC_CAPS), KC_PSLS, KC_PAST, KC_PMNS,
TD(TD_NUM_RGB), KC_PSLS, KC_PAST, KC_PMNS,
KC_P7, KC_P8, KC_P9,
KC_P4, KC_P5, KC_P6, KC_PPLS,
KC_P1, KC_P2, KC_P3,

View file

@ -1,63 +0,0 @@
#include QMK_KEYBOARD_H
// Tap Dance declarations
enum {
TD_NUM_RGB,
};
// Tap Dance definitions
qk_tap_dance_action_t tap_dance_actions[] = {
// Tap once for NumLock, twice for RGB layer
[TD_NUM_RGB] = ACTION_TAP_DANCE_LAYER_TOGGLE(KC_NUM, 1),
};
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/*
* ┌───┬───┬───┬───┐
* │ ⏮ │ ⏯ │ ■ │ ⏭ │
* ├───┼───┼───┼───┤
* │Num│ / │ * │ - │
* ├───┼───┼───┼───┤
* │ 7 │ 8 │ 9 │ │
* ├───┼───┼───┤ + │
* │ 4 │ 5 │ 6 │ │
* ├───┼───┼───┼───┤
* │ 1 │ 2 │ 3 │ │
* ├───┴───┼───┤Ent│
* │ 0 │ . │ │
* └───────┴───┴───┘
*/
[0] = LAYOUT_numpad(
KC_MPRV, KC_MPLY, KC_MSTP, KC_MNXT,
TD(TD_ESC_CAPS), KC_PSLS, KC_PAST, KC_PMNS,
KC_P7, KC_P8, KC_P9,
KC_P4, KC_P5, KC_P6, KC_PPLS,
KC_P1, KC_P2, KC_P3,
KC_P0, KC_PDOT, KC_PENT
),
/*
* ┌─────┬─────┬─────┬─────┐
* │ModeR│Breat│Plain│Mode │
* ├─────┼─────┼─────┼─────┤
* │ │Rainb│Swirl│Sped-│
* ├─────┼─────┼─────┼─────┤
* │Brig+│Brig-│ │ │
* ├─────┼─────┼─────┤Sped+│
* │Satu+│Satu-│ │ │
* ├─────┼─────┼─────┼─────┤
* │Hue+ │Hue- │ │ │
* ├─────┴─────┼─────┤OnOff│
* │ │ │ │
* └───────────┴─────┴─────┘
*/
[1] = LAYOUT_numpad(
RGB_RMOD, RGB_M_B, RGB_M_P, RGB_MOD,
_______, RGB_M_R, RGB_M_SW, RGB_SPD,
RGB_VAI, RGB_VAD, _______,
RGB_SAI, RGB_SAD, _______, RGB_SPI,
RGB_HUI, RGB_HUD, _______,
_______, _______, RGB_TOG,
)
};

View file

@ -5,10 +5,26 @@ F_USB = $(F_CPU)
OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
BOOTLOADER = atmel-dfu
# 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
NKRO_ENABLE = no # Enable N-Key Rollover
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
AUDIO_ENABLE = no # Audio output
LTO_ENABLE = yes
SPACE_CADET_ENABLE = no
GRAVE_ESC_ENABLE = no
MAGIC_ENABLE = no
MUSIC_ENABLE = no
RGB_MATRIX_ENABLE = yes
RGB_MATRIX_DRIVER = WS2812 # also supports SK6812MINI
TAP_DANCE_ENABLE = yes
EXTRAKEY_ENABLE = yes # Audio control and System control
WS2812_DRIVER = bitbang

19
keyboards/t9/t9.c Normal file
View file

@ -0,0 +1,19 @@
#include "quantum.h"
led_config_t g_led_config = { {
// Key Matrix to LED Index
{ 21, 20, 19, 18, },
{ 17, 16, 15, 14, },
{ 13, 12, 11, NO_LED },
{ 10, 9, 8, 7 },
{ 6, 5, 4, NO_LED },
{ 3, NO_LED, 1, 0 }
}, {
// LED Index to Physical Position
// x = 224 / (NUMBER_OF_COLS - 1) * COL_POSITION
// y = 64 / (NUMBER_OF_ROWS - 1) * ROW_POSITION
{ 224, 58 }, { 149, 64 }, { 112, 64 }, { 149, 51 }, { 75, 51 }, { 0, 51 }, { 224, 32 }, { 149, 38 }, { 75, 38 }, { 0, 38 }, { 149, 26 }, { 75, 26 }, { 0, 26 }, { 224, 13 }, { 149, 13 }, { 75, 13 }, { 0, 13 }, { 224, 0 }, { 149, 0 }, { 75, 0 }, { 0, 0 }
}, {
// LED Index to Flag
4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4
} };