1
0
Fork 0

Align RGBKB keyboards to current standards (#23663)

This commit is contained in:
Joel Challis 2024-05-11 13:11:50 +01:00 committed by GitHub
parent 73f3f6e56d
commit 2d4832f57a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
49 changed files with 238 additions and 625 deletions

View file

@ -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);
}

View file

@ -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"

View file

@ -59,3 +59,4 @@
#define TOUCH_UPDATE_INTERVAL 33
#define OLED_UPDATE_INTERVAL 33
#define OLED_FONT_H "keyboards/rgbkb/common/glcdfont.c"

View file

@ -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],

View file

@ -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);
}

View file

@ -9,5 +9,5 @@
#pragma once
#include "mun.h"
#include "quantum.h"
#include "touch_encoder.h"

View 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

View file

@ -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