Skip to content

Commit f69f353

Browse files
Merge pull request #11251 from radekdomin/radekdomin-flywoof405hd-9vbec-piniobox
Added support for switchable 9v BEC for FLYWOOF405HD and FLYWOOF405PRO
2 parents 5a2ac74 + bd45290 commit f69f353

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

src/main/target/FLYWOOF405PRO/config.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,8 @@ void targetConfiguration(void)
3131

3232
timerOverridesMutable(timer2id(TIM3))->outputMode = OUTPUT_MODE_MOTORS;
3333
timerOverridesMutable(timer2id(TIM2))->outputMode = OUTPUT_MODE_MOTORS;
34+
35+
// Pinio Box params as per manufacturer specification
36+
pinioBoxConfigMutable()->permanentId[0] = BOX_PERMANENT_ID_USER1;
37+
pinioBoxConfigMutable()->permanentId[1] = BOX_PERMANENT_ID_USER2;
3438
}

src/main/target/FLYWOOF405PRO/target.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,12 @@
152152
#define CURRENT_METER_ADC_CHANNEL ADC_CHN_2
153153
#define RSSI_ADC_CHANNEL ADC_CHN_3
154154

155+
// *************** PINIO ***********************
156+
#define USE_PINIO
157+
#define USE_PINIOBOX
158+
#define PINIO1_PIN PD6
159+
#define PINIO2_PIN PC8
160+
155161
// *************** LED2812 ************************
156162
#define USE_LED_STRIP
157163
#define WS2811_PIN PA9

0 commit comments

Comments
 (0)