summaryrefslogtreecommitdiffstats
path: root/keyboards/mlego/m65/m65.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/mlego/m65/m65.h')
-rw-r--r--keyboards/mlego/m65/m65.h43
1 files changed, 39 insertions, 4 deletions
diff --git a/keyboards/mlego/m65/m65.h b/keyboards/mlego/m65/m65.h
index f5ffd519fa..9564b3d529 100644
--- a/keyboards/mlego/m65/m65.h
+++ b/keyboards/mlego/m65/m65.h
@@ -108,8 +108,44 @@ enum unicode_names {
rS,
rt,
rT,
+ ro,
+ rO,
+ ra2,
+ rA2,
+ ra3,
+ rA3
};
+
+enum layer_names {
+ _QW = 0,
+ _LWR,
+ _RSE,
+ _ADJ
+};
+
+#ifdef OLED_ENABLE
+void user_oled_magic(void);
+void render_logo(void);
+void clear_screen(void);
+void init_timer(void);
+#endif
+
+#ifdef ENCODER_ENABLE
+void my_encoders(const uint8_t, const bool);
+bool encoder_update_user(uint8_t, bool);
+#endif
+
+#ifdef RGBLIGHT_ENABLE
+void set_rgb_layers(layer_state_t);
+const rgblight_segment_t * const* my_rgb(void);
+void set_default_rgb_layers(layer_state_t);
+#endif
+
+
+void toggle_leds(void);
+void set_led_toggle(const uint8_t, const bool);
+
static inline void led_lwr(const bool on) {
#ifdef LED_NUM_LOCK_PIN
writePin(LED_NUM_LOCK_PIN, on);
@@ -123,11 +159,10 @@ 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) || (DEVICE_VER == 0x0004)) {
- writePin(LED_CAPS_LOCK_PIN, !on);
- }
- if (DEVICE_VER == 0x0002) {
+ if ((PRODUCT_ID == 0x6061) && (DEVICE_VER == 0x0002)) {
writePin(LED_CAPS_LOCK_PIN, on);
+ } else {
+ writePin(LED_CAPS_LOCK_PIN, !on);
}
#endif
}