Align RGBKB keyboards to current standards (#23663)
This commit is contained in:
parent
73f3f6e56d
commit
2d4832f57a
49 changed files with 238 additions and 625 deletions
|
@ -1,25 +0,0 @@
|
|||
/*
|
||||
* ----------------------------------------------------------------------------
|
||||
* "THE BEER-WARE LICENSE" (Revision 42):
|
||||
* <https://github.com/Legonut> wrote this file. As long as you retain this
|
||||
* notice you can do whatever you want with this stuff. If we meet some day, and
|
||||
* you think this stuff is worth it, you can buy me a beer in return. David Rauseo
|
||||
* ----------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
#include "mun.h"
|
||||
#include "touch_encoder.h"
|
||||
#include "common_oled.h"
|
||||
#include <transactions.h>
|
||||
|
||||
void keyboard_post_init_kb(void) {
|
||||
touch_encoder_init();
|
||||
transaction_register_rpc(TOUCH_ENCODER_SYNC, touch_encoder_slave_sync);
|
||||
transaction_register_rpc(RGB_MENU_SYNC, rgb_menu_slave_sync);
|
||||
keyboard_post_init_user();
|
||||
}
|
||||
|
||||
void housekeeping_task_kb(void) {
|
||||
touch_encoder_update(TOUCH_ENCODER_SYNC);
|
||||
rgb_menu_update(RGB_MENU_SYNC);
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
/*
|
||||
* ----------------------------------------------------------------------------
|
||||
* "THE BEER-WARE LICENSE" (Revision 42):
|
||||
* <https://github.com/Legonut> wrote this file. As long as you retain this
|
||||
* notice you can do whatever you want with this stuff. If we meet some day, and
|
||||
* you think this stuff is worth it, you can buy me a beer in return. David Rauseo
|
||||
* ----------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#if defined(KEYBOARD_rgbkb_mun_rev1)
|
||||
# include "rev1.h"
|
||||
#endif
|
||||
|
||||
#include "quantum.h"
|
|
@ -59,3 +59,4 @@
|
|||
|
||||
#define TOUCH_UPDATE_INTERVAL 33
|
||||
#define OLED_UPDATE_INTERVAL 33
|
||||
#define OLED_FONT_H "keyboards/rgbkb/common/glcdfont.c"
|
|
@ -8,6 +8,19 @@
|
|||
"pid": "0x3505",
|
||||
"device_version": "0.0.1"
|
||||
},
|
||||
"build": {
|
||||
"lto": true
|
||||
},
|
||||
"features": {
|
||||
"bootmagic": false,
|
||||
"encoder": true,
|
||||
"extrakey": true,
|
||||
"mousekey": false,
|
||||
"nkro": true,
|
||||
"oled": true,
|
||||
"rgb_matrix": true,
|
||||
"rgblight": false
|
||||
},
|
||||
"rgblight": {
|
||||
"led_count": 98,
|
||||
"split_count": [49, 49],
|
||||
|
|
|
@ -8,6 +8,9 @@
|
|||
*/
|
||||
|
||||
#include "rev1.h"
|
||||
#include "touch_encoder.h"
|
||||
#include "common_oled.h"
|
||||
#include "transactions.h"
|
||||
|
||||
#define NUMBER_OF_TOUCH_ENCODERS 2
|
||||
#define TOUCH_ENCODER_OPTIONS TOUCH_SEGMENTS + 2
|
||||
|
@ -85,3 +88,15 @@ led_config_t g_led_config = { {
|
|||
} };
|
||||
// clang-format on
|
||||
#endif
|
||||
|
||||
void keyboard_post_init_kb(void) {
|
||||
touch_encoder_init();
|
||||
transaction_register_rpc(TOUCH_ENCODER_SYNC, touch_encoder_slave_sync);
|
||||
transaction_register_rpc(RGB_MENU_SYNC, rgb_menu_slave_sync);
|
||||
keyboard_post_init_user();
|
||||
}
|
||||
|
||||
void housekeeping_task_kb(void) {
|
||||
touch_encoder_update(TOUCH_ENCODER_SYNC);
|
||||
rgb_menu_update(RGB_MENU_SYNC);
|
||||
}
|
||||
|
|
|
@ -9,5 +9,5 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "mun.h"
|
||||
#include "quantum.h"
|
||||
#include "touch_encoder.h"
|
||||
|
|
8
keyboards/rgbkb/mun/rev1/rules.mk
Normal file
8
keyboards/rgbkb/mun/rev1/rules.mk
Normal file
|
@ -0,0 +1,8 @@
|
|||
# Touch encoder needs
|
||||
VPATH += keyboards/rgbkb/common
|
||||
SRC += touch_encoder.c
|
||||
SRC += common_oled.c
|
||||
I2C_DRIVER_REQUIRED = yes
|
||||
|
||||
SERIAL_DRIVER = usart
|
||||
OPT = 3
|
|
@ -1,31 +1 @@
|
|||
# Touch encoder needs
|
||||
VPATH += keyboards/rgbkb/common
|
||||
SRC += touch_encoder.c
|
||||
SRC += common_oled.c
|
||||
I2C_DRIVER_REQUIRED = yes
|
||||
|
||||
# Build Options
|
||||
# change yes to no to disable
|
||||
#
|
||||
BOOTMAGIC_ENABLE = no # 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 = yes # Enable N-Key Rollover
|
||||
AUDIO_ENABLE = no # Audio output
|
||||
|
||||
RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight.
|
||||
RGB_MATRIX_ENABLE = yes
|
||||
|
||||
OLED_ENABLE = yes
|
||||
|
||||
ENCODER_ENABLE = yes
|
||||
|
||||
SERIAL_DRIVER = usart
|
||||
LTO_ENABLE = yes
|
||||
OPT = 3
|
||||
|
||||
OPT_DEFS += -DOLED_FONT_H=\"keyboards/rgbkb/common/glcdfont.c\"
|
||||
|
||||
DEFAULT_FOLDER = rgbkb/mun/rev1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue