From 34f1bc679570c14c0efcc92cf0644ee051bf4e25 Mon Sep 17 00:00:00 2001 From: "jacob.eva" Date: Mon, 21 Oct 2024 19:16:18 +0100 Subject: [PATCH] Add analogWrite for LEDs --- Utilities.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Utilities.h b/Utilities.h index 1a3702e..7259b2c 100644 --- a/Utilities.h +++ b/Utilities.h @@ -243,10 +243,10 @@ uint8_t boot_vector = 0x00; #endif #elif MCU_VARIANT == MCU_NRF52 #if BOARD_MODEL == BOARD_OPENCOM_XL - void led_rx_on() { digitalWrite(pin_led_rx, 1); } - void led_rx_off() { digitalWrite(pin_led_rx, 0); } - void led_tx_on() { digitalWrite(pin_led_tx, 1); } - void led_tx_off() { digitalWrite(pin_led_tx, 0); } + void led_rx_on() { analogWrite(pin_led_rx, 1); } + void led_rx_off() { analogWrite(pin_led_rx, 0); } + void led_tx_on() { analogWrite(pin_led_tx, 1); } + void led_tx_off() { analogWrite(pin_led_tx, 0); } #endif #if BOARD_MODEL == BOARD_RAK4631 void led_rx_on() { digitalWrite(pin_led_rx, HIGH); }