Skip to content

Commit

Permalink
Merge pull request #4048 from shellixyz/asgard32f7_leds_fix
Browse files Browse the repository at this point in the history
ASGARD32F7 fix RGB LEDs
  • Loading branch information
digitalentity authored Dec 16, 2018
2 parents 9433810 + 769e4f0 commit 958b49f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/target/ASGARD32F7/target.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@ const timerHardware_t timerHardware[] = {
DEF_TIM(TIM3, CH3, PB0, TIM_USE_MC_MOTOR, 1, 0), // M2
DEF_TIM(TIM3, CH4, PB1, TIM_USE_MC_MOTOR, 1, 0), // M3
DEF_TIM(TIM4, CH2, PB7, TIM_USE_MC_MOTOR, 1, 0), // M4

// DEF_TIM(TIM4, CH1, PB6, TIM_USE_LED, 0), // LED strip - timer clash with M4 output

DEF_TIM(TIM5, CH3, PA2, TIM_USE_LED, 0, 0), // TX2 D(1,0) ; SA port ---> LED
DEF_TIM(TIM1, CH2, PA9, TIM_USE_ANY, 0, 0), // SS1
};

Expand Down
3 changes: 3 additions & 0 deletions src/main/target/ASGARD32F7/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@
#define CURRENT_METER_ADC_CHANNEL ADC_CHN_2
#define RSSI_ADC_CHANNEL ADC_CHN_3

#define USE_LED_STRIP
#define WS2811_PIN PA2

#define SENSORS_SET (SENSOR_ACC | SENSOR_BARO)

#define DEFAULT_FEATURES (FEATURE_TX_PROF_SEL | FEATURE_BLACKBOX | FEATURE_VBAT | FEATURE_OSD | FEATURE_SOFTSERIAL | FEATURE_TELEMETRY)
Expand Down

0 comments on commit 958b49f

Please sign in to comment.