Skip to content

Commit

Permalink
Merge pull request #250 from Maggyver/master
Browse files Browse the repository at this point in the history
New PlatformIO Build Flags "KNX_LED_ACTIVE_ON" , default is low
  • Loading branch information
thelsing authored Jun 16, 2023
2 parents 494c76c + 90cafdb commit 48000b2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/knx_facade.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -411,7 +414,7 @@ template <class P, class B> 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;
Expand Down

0 comments on commit 48000b2

Please sign in to comment.