Skip to content

Commit

Permalink
Fix LED pin
Browse files Browse the repository at this point in the history
  • Loading branch information
wvarty committed Aug 7, 2024
1 parent fc4a9d3 commit 735908f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 7 additions & 0 deletions lib/LED/devLED.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ static uint8_t _pin_inverted = true;
#else
static uint8_t _pin_inverted = false;
#endif

#define UNDEF_PIN (-1)

#ifndef PIN_LED
#define PIN_LED UNDEF_PIN
#endif

static uint8_t _pin = -1;
static const uint8_t *_durations;
static uint8_t _count;
Expand Down
3 changes: 1 addition & 2 deletions targets/mfd_crossbow.ini
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ build_flags =
${env_common_esp32.build_flags}
${mfd_crossbow_backpack_common.build_flags}
-D PIN_BUTTON=0
-D PIN_LED=16

[env:MFD_Crossbow_ESP32_Backpack_via_WIFI]
extends = env:MFD_Crossbow_ESP32_Backpack_via_UART
Expand All @@ -29,7 +28,7 @@ extends = env_common_esp32c3, mfd_crossbow_backpack_common
build_flags =
${env_common_esp32c3.build_flags}
${mfd_crossbow_backpack_common.build_flags}
-D PIN_BUTTON=0
-D PIN_BUTTON=9

[env:MFD_Crossbow_ESP32C3_Backpack_via_WIFI]
extends = env:MFD_Crossbow_ESP32C3_Backpack_via_UART
Expand Down

0 comments on commit 735908f

Please sign in to comment.