From 90cafdbd01eb0e612c5ea55373a5cb375514e87b Mon Sep 17 00:00:00 2001 From: Maggyver <46162338+Maggyver@users.noreply.github.com> Date: Sun, 11 Jun 2023 14:38:40 +0200 Subject: [PATCH] New PlatformIO Build Flags "KNX_LED_ACTIVE_ON" , default is low --- src/knx_facade.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/knx_facade.h b/src/knx_facade.h index 05f67ba..7facf61 100644 --- a/src/knx_facade.h +++ b/src/knx_facade.h @@ -58,6 +58,9 @@ #ifndef KNX_LED #define KNX_LED LED_BUILTIN #endif +#ifndef KNX_LED_ACTIVE_ON + #define KNX_LED_ACTIVE_ON 0 +#endif #ifndef KNX_BUTTON #define KNX_BUTTON -1 #endif @@ -411,7 +414,7 @@ template class KnxFacade : private SaveRestore B& _bau; ProgLedOnCallback _progLedOnCallback = 0; ProgLedOffCallback _progLedOffCallback = 0; - uint32_t _ledPinActiveOn = LOW; + uint32_t _ledPinActiveOn = KNX_LED_ACTIVE_ON; uint32_t _ledPin = KNX_LED; int32_t _buttonPin = KNX_BUTTON; SaveCallback _saveCallback = 0;