aboutsummaryrefslogtreecommitdiff
path: root/keyboards/mlego
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/mlego')
-rw-r--r--keyboards/mlego/m48/m48.h6
-rw-r--r--keyboards/mlego/m60/m60.h6
-rw-r--r--keyboards/mlego/m60_split/m60_split.h6
-rw-r--r--keyboards/mlego/m65/m65.h16
4 files changed, 17 insertions, 17 deletions
diff --git a/keyboards/mlego/m48/m48.h b/keyboards/mlego/m48/m48.h
index 5acc5c4590..1d183bbd6d 100644
--- a/keyboards/mlego/m48/m48.h
+++ b/keyboards/mlego/m48/m48.h
@@ -21,18 +21,18 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
static inline void led_lwr(const bool on) {
#ifdef LED_NUM_LOCK_PIN
- writePin(LED_NUM_LOCK_PIN, on);
+ gpio_write_pin(LED_NUM_LOCK_PIN, on);
#endif
}
static inline void led_rse(const bool on) {
#ifdef LED_SCROLL_LOCK_PIN
- writePin(LED_SCROLL_LOCK_PIN, on);
+ gpio_write_pin(LED_SCROLL_LOCK_PIN, on);
#endif
}
static inline void led_caps(const bool on) {
#ifdef LED_CAPS_LOCK_PIN
- writePin(LED_CAPS_LOCK_PIN, !on);
+ gpio_write_pin(LED_CAPS_LOCK_PIN, !on);
#endif
}
diff --git a/keyboards/mlego/m60/m60.h b/keyboards/mlego/m60/m60.h
index 13a56f3ff0..44245f5e1e 100644
--- a/keyboards/mlego/m60/m60.h
+++ b/keyboards/mlego/m60/m60.h
@@ -21,18 +21,18 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
static inline void led_lwr(const bool on) {
#ifdef LED_NUM_LOCK_PIN
- writePin(LED_NUM_LOCK_PIN, on);
+ gpio_write_pin(LED_NUM_LOCK_PIN, on);
#endif
}
static inline void led_rse(const bool on) {
#ifdef LED_SCROLL_LOCK_PIN
- writePin(LED_SCROLL_LOCK_PIN, on);
+ gpio_write_pin(LED_SCROLL_LOCK_PIN, on);
#endif
}
static inline void led_caps(const bool on) {
#ifdef LED_CAPS_LOCK_PIN
- writePin(LED_CAPS_LOCK_PIN, !on);
+ gpio_write_pin(LED_CAPS_LOCK_PIN, !on);
#endif
}
diff --git a/keyboards/mlego/m60_split/m60_split.h b/keyboards/mlego/m60_split/m60_split.h
index 10be6662c4..203514244f 100644
--- a/keyboards/mlego/m60_split/m60_split.h
+++ b/keyboards/mlego/m60_split/m60_split.h
@@ -19,19 +19,19 @@
static inline void led_lwr(const bool on) {
#ifdef LED_NUM_LOCK_PIN
- writePin(LED_NUM_LOCK_PIN, on);
+ gpio_write_pin(LED_NUM_LOCK_PIN, on);
#endif
}
static inline void led_rse(const bool on) {
#ifdef LED_SCROLL_LOCK_PIN
- writePin(LED_SCROLL_LOCK_PIN, on);
+ gpio_write_pin(LED_SCROLL_LOCK_PIN, on);
#endif
}
static inline void led_caps(const bool on) {
#ifdef LED_CAPS_LOCK_PIN
- writePin(LED_CAPS_LOCK_PIN, !on);
+ gpio_write_pin(LED_CAPS_LOCK_PIN, !on);
#endif
}
diff --git a/keyboards/mlego/m65/m65.h b/keyboards/mlego/m65/m65.h
index 1c5589c111..0ce073cfc6 100644
--- a/keyboards/mlego/m65/m65.h
+++ b/keyboards/mlego/m65/m65.h
@@ -30,14 +30,14 @@ void set_led_toggle(const uint8_t, const bool);
static inline void init_lwr_rse_led(void) {
#if defined(LED_LWR_PIN)
- setPinOutput(LED_LWR_PIN);
- writePin(LED_LWR_PIN, false);
+ gpio_set_pin_output(LED_LWR_PIN);
+ gpio_write_pin(LED_LWR_PIN, false);
wait_ms(30);
#endif
#if defined(LED_RSE_PIN)
- setPinOutput(LED_RSE_PIN);
- writePin(LED_RSE_PIN, false);
+ gpio_set_pin_output(LED_RSE_PIN);
+ gpio_write_pin(LED_RSE_PIN, false);
wait_ms(30);
#endif
}
@@ -46,9 +46,9 @@ static inline void led_lwr(const bool on) {
#if defined(LED_LWR_PIN)
if ((PRODUCT_ID == 0x6064) || (PRODUCT_ID == 0x6065) ||
(PRODUCT_ID == 0x6066) || (PRODUCT_ID == 0x6067)) {
- writePin(LED_LWR_PIN, !on);
+ gpio_write_pin(LED_LWR_PIN, !on);
}else{
- writePin(LED_LWR_PIN, on);
+ gpio_write_pin(LED_LWR_PIN, on);
}
#endif
}
@@ -57,9 +57,9 @@ static inline void led_rse(const bool on) {
#if defined(LED_RSE_PIN)
if ((PRODUCT_ID == 0x6064) || (PRODUCT_ID == 0x6065) ||
(PRODUCT_ID == 0x6066) || (PRODUCT_ID == 0x6067)) {
- writePin(LED_RSE_PIN, !on);
+ gpio_write_pin(LED_RSE_PIN, !on);
}else{
- writePin(LED_RSE_PIN, on);
+ gpio_write_pin(LED_RSE_PIN, on);
}
#endif
}