Changes for VIA OpenRGB Hybrid
Glory edited this page Aug 30, 2022
·
3 revisions
-
Modify config.h, enable #define VIA_OPENRGB_HYBRID
-
Enable openrgb and via in rules.mk
OPENRGB_ENABLE = yes
VIA_ENABLE = yes
-
Rename raw_hid_receive() to orgb_raw_hid_receive() in quantum/openrgb.c
-
Modify quantum/via.c as follows
// NEW begin
#ifdef VIA_OPENRGB_HYBRID
extern uint8_t is_orgb_mode;
#ifdef OPENRGB_ENABLE
extern void orgb_raw_hid_receive(uint8_t *data, uint8_t length);
#endif
#endif
// NEW end
void raw_hid_receive(uint8_t *data, uint8_t length) {
// NEW begin
#ifdef VIA_OPENRGB_HYBRID
if (is_orgb_mode) {
#ifdef OPENRGB_ENABLE
orgb_raw_hid_receive(data, length);
#endif
return;
}
#endif
// NEW end
- Comment out this check in common_features.mk
#ifeq ($(strip $(OPENRGB_ENABLE)), yes)
# ifeq ($(strip $(VIA_ENABLE)), yes)
# $(error OPENRGB_ENABLE and VIA_ENABLE cannot currently be 'yes' simultaneously)
# endif
#endif