[Keyboard] mlego fix product id and sync oled code (#16237)
* sync oled code over the keymaps * put different product ids * put different product ids for the rest * put different product ids for the rest * try to reduce code duplication * make ifdefs nice and correct * move the leds code out of keymap * try to reduce code duplication * move the rgb code outside the keymaps for reuse * Update keyboards/mlego/m65/m65.c Co-authored-by: Drashna Jaelre <drashna@live.com> * Update keyboards/mlego/m65/m65.c Co-authored-by: Drashna Jaelre <drashna@live.com> * move more code outside keymaps for reuse * add few more xps * add mic mute * update to new name of macros for reset * style for matrix * clean split * use tinyuf2 as bootloader * Update keyboards/mlego/m65/rev4/rules.mk Co-authored-by: Ryan <fauxpark@gmail.com> * radionalise product id and device version * add tinyuf2 as default bootloader for stm32f4 * update tinyuf2 * update tinyuf2 and via. f411 remove tinyuf2 since is not really working. make the config more conditional * sync the keymap with default * revert via non building with gcc 11 Co-authored-by: Drashna Jaelre <drashna@live.com> Co-authored-by: Ryan <fauxpark@gmail.com>
This commit is contained in:
parent
dbd4ac5a3f
commit
51cfb1b457
33 changed files with 913 additions and 528 deletions
|
@ -46,12 +46,7 @@ static inline void led_rse(const bool on) {
|
|||
}
|
||||
static inline void led_caps(const bool on) {
|
||||
#ifdef LED_CAPS_LOCK_PIN
|
||||
if ((DEVICE_VER == 0x0001) || (DEVICE_VER == 0x0003)) {
|
||||
writePin(LED_CAPS_LOCK_PIN, !on);
|
||||
}
|
||||
if (DEVICE_VER == 0x0002) {
|
||||
writePin(LED_CAPS_LOCK_PIN, on);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue