File tree 2 files changed +6
-1
lines changed
boards/pimoroni_badger2040
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -46,3 +46,6 @@ disable-intrinsics = ["rp2040-hal/disable-intrinsics"]
46
46
47
47
# This enables ROM functions for f64 math that were not present in the earliest RP2040s
48
48
rom-v2-intrinsics = [" rp2040-hal/rom-v2-intrinsics" ]
49
+
50
+ # Define a feature to toggle between Badger2040 and Badger2040W
51
+ wifi = []
Original file line number Diff line number Diff line change @@ -81,11 +81,13 @@ hal::bsp_pins!(
81
81
} ,
82
82
Gpio20 { name: inky_dc } ,
83
83
Gpio21 { name: inky_res } ,
84
+ /// GPIO 22 is connected to activity LED of the badger2040W.
85
+ #[ cfg( feature = "wifi" ) ] Gpio22 { name: led } ,
84
86
Gpio23 { name: user_sw } ,
85
87
/// GPIO 24 is connected to vbus_detect of the badger2040.
86
88
Gpio24 { name: vbus_detect } ,
87
89
/// GPIO 25 is connected to activity LED of the badger2040.
88
- Gpio25 { name: led } ,
90
+ # [ cfg ( not ( feature = "wifi" ) ) ] Gpio25 { name: led } ,
89
91
Gpio26 { name: inky_busy } ,
90
92
Gpio27 { name: vref_power } ,
91
93
Gpio28 { name: vref_1v24 } ,
You can’t perform that action at this time.
0 commit comments