Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add keypad Satxri6key #13423

Merged
merged 10 commits into from
Jul 22, 2021
Merged
31 changes: 31 additions & 0 deletions keyboards/sawnsprojects/satxri6key/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#pragma once
drashna marked this conversation as resolved.
Show resolved Hide resolved

#include "config_common.h"

/* USB Device descriptor parameter */
#define VENDOR_ID 0x5350
#define PRODUCT_ID 0x0727
#define DEVICE_VER 0x0001
#define MANUFACTURER MaiTheSan
#define PRODUCT Satxri6key

/* key matrix size */
#define MATRIX_ROWS 2
#define MATRIX_COLS 3

/*
* Keyboard Matrix Assignments
*
* Change this to how you wired your keyboard
* COLS: AVR pins used for columns, left to right
* ROWS: AVR pins used for rows, top to bottom
* DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
* ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
*
*/
#define MATRIX_ROW_PINS { F7, F6 }
#define MATRIX_COL_PINS { F1, F4, F5 }

#define DIODE_DIRECTION COL2ROW

#define RGB_DI_PIN F0
20 changes: 20 additions & 0 deletions keyboards/sawnsprojects/satxri6key/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"keyboard_name": "osu!TH6k",
"url": "",
"maintainer": "qmk",
"width": 3,
"height": 2,
"layouts": {
"LAYOUT": {
"layout": [
{"label":"K00 (F7,F1)", "x":0, "y":1},
{"label":"K01 (F7,F4)", "x":1, "y":1},
{"label":"K02 (F7,F5)", "x":2, "y":1},
{"label":"K10 (F6,F1)", "x":0, "y":2},
{"label":"K11 (F6,F4)", "x":1, "y":2},
{"label":"K12 (F6,F5)", "x":2, "y":2}
]
}
}
,"meta": "https://noroadsleft.github.io/kbf_qmk_converter/"
}
9 changes: 9 additions & 0 deletions keyboards/sawnsprojects/satxri6key/keymaps/default/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#define DRIVER_LED_TOTAL 6
drashna marked this conversation as resolved.
Show resolved Hide resolved
#define RGB_MATRIX_KEYPRESSES // reacts to keypresses
drashna marked this conversation as resolved.
Show resolved Hide resolved
#define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses)
#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
#define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
#define RGB_DISABLE_WHEN_USB_SUSPENDED false // turn off effects when suspended
#define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness)
#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255
#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_SOLID_REACTIVE_SIMPLE // Sets the default mode, if none has been set
48 changes: 48 additions & 0 deletions keyboards/sawnsprojects/satxri6key/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
/* Copyright 2021 SawnsProjects
*
* 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(

KC_P4, KC_P5, KC_P6,
KC_P1, KC_P2, KC_P3 ),

[1] = LAYOUT(

KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS ),


};

#ifdef RGB_MATRIX_ENABLE
drashna marked this conversation as resolved.
Show resolved Hide resolved
led_config_t g_led_config = { {
//Key Matrix to LED Index
{0, 1, 2},
{5, 4, 3}
}, {
//LED Index to Physical Positon
{0,0}, {112, 0}, {224, 0},
{0,224}, {112,224}, {224,224},
}, {
1, 1, 1,
1, 1, 1,
} };
#endif
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Default Satxri6key Layout
4 changes: 4 additions & 0 deletions keyboards/sawnsprojects/satxri6key/keymaps/default/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
VIA_ENABLE = no
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
MaiTheSan marked this conversation as resolved.
Show resolved Hide resolved
RGB_MATRIX_ENABLE = yes
RGB_MATRIX_DRIVER = WS2812
20 changes: 20 additions & 0 deletions keyboards/sawnsprojects/satxri6key/keymaps/via/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#ifdef RGB_DI_PIN
drashna marked this conversation as resolved.
Show resolved Hide resolved
#define RGBLED_NUM 6
#define RGBLIGHT_HUE_STEP 8
#define RGBLIGHT_SAT_STEP 8
#define RGBLIGHT_VAL_STEP 8
#define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
#define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
/*== all animations enable ==*/
#define RGBLIGHT_ANIMATIONS
// /*== or choose animations ==*/
// #define RGBLIGHT_EFFECT_BREATHING
// #define RGBLIGHT_EFFECT_RAINBOW_MOOD
// #define RGBLIGHT_EFFECT_RAINBOW_SWIRL
// #define RGBLIGHT_EFFECT_SNAKE
// #define RGBLIGHT_EFFECT_KNIGHT
// #define RGBLIGHT_EFFECT_CHRISTMAS
// #define RGBLIGHT_EFFECT_STATIC_GRADIENT
// #define RGBLIGHT_EFFECT_RGB_TEST
// #define RGBLIGHT_EFFECT_ALTERNATING
#endif
Loading