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

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