Skip to content

Commit 8615289

Browse files
committed
update built-in LEDs
1 parent 2cfc89c commit 8615289

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

firmware/platformio.ini

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ build_flags =
3737
-DFASTLED_INTERNAL ; Remove annoying FastLED pragma messages
3838
; Common libraries
3939
lib_deps =
40-
https://github.com/FastLED/FastLED.git
40+
https://github.com/FastLED/FastLED.git#master
4141
; Serial monitor
4242
monitor_speed = 115200
4343
monitor_filters = send_on_enter
@@ -63,7 +63,9 @@ build_flags = ${env:base.build_flags}
6363
[env:rpipicow]
6464
extends = env:base
6565
board = rpipicow
66-
build_flags = ${env:base.build_flags}
66+
build_flags =
67+
${env:base.build_flags}
68+
-D__TURTLPASS_LED_PIN__=25 ; $LED or $CYW43_WL_GPIO_LED_PIN
6769

6870
; =======================================
6971
; Raspberry Pi Pico 2 (RP2350)
@@ -79,7 +81,9 @@ build_flags = ${env:base.build_flags}
7981
[env:rpipico2w]
8082
extends = env:base
8183
board = rpipico2w
82-
build_flags = ${env:base.build_flags}
84+
build_flags =
85+
${env:base.build_flags}
86+
-D__TURTLPASS_LED_PIN__=\"$LEDW\"
8387

8488
; =======================================
8589
; Adafruit Feather RP2040
@@ -99,6 +103,7 @@ extends = env:base
99103
board = adafruit_qtpy
100104
build_flags =
101105
${env:base.build_flags}
106+
-D__TURTLPASS_LED_PIN__=12 ; GPIO 12
102107
-D__TURTLPASS_LED_IS_RGB__=true ; RGB LED
103108

104109
; =======================================
@@ -109,6 +114,7 @@ extends = env:base
109114
board = adafruit_trinkeyrp2040qt
110115
build_flags =
111116
${env:base.build_flags}
117+
-D__TURTLPASS_LED_PIN__=27 ; GPIO 27
112118
-D__TURTLPASS_LED_IS_RGB__=true ; RGB LED
113119

114120
; =======================================
@@ -139,6 +145,7 @@ extends = env:base
139145
board = waveshare_rp2040_zero
140146
build_flags =
141147
${env:base.build_flags}
148+
-D__TURTLPASS_LED_PIN__=16 ; GPIO 16
142149
-D__TURTLPASS_LED_IS_RGB__=true ; RGB LED
143150

144151
; =======================================
@@ -149,6 +156,7 @@ extends = env:base
149156
board = waveshare_rp2350_zero
150157
build_flags =
151158
${env:base.build_flags}
159+
-D__TURTLPASS_LED_PIN__=16 ; GPIO 16
152160
-D__TURTLPASS_LED_IS_RGB__=true ; RGB LED
153161

154162
; =======================================

0 commit comments

Comments
 (0)