Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add LEDSTRIP support to KAKUTEF4 target #2862

Merged
merged 1 commit into from
Mar 7, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/main/target/KAKUTEF4/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,12 @@
#define ADC_CHANNEL_2_PIN PC2
#define ADC_CHANNEL_3_PIN PC1

#define USE_LED_STRIP
#define WS2811_PIN PC8
#define WS2811_DMA_HANDLER_IDENTIFER DMA2_ST4_HANDLER
#define WS2811_DMA_STREAM DMA2_Stream4
#define WS2811_DMA_CHANNEL DMA_Channel_7

#define VBAT_ADC_CHANNEL ADC_CHN_1
#define CURRENT_METER_ADC_CHANNEL ADC_CHN_2
#define RSSI_ADC_CHANNEL ADC_CHN_3
Expand Down
2 changes: 2 additions & 0 deletions src/main/target/KAKUTEF4/target.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@ TARGET_SRC = \
drivers/compass/compass_qmc5883l.c \
drivers/compass/compass_mag3110.c \
drivers/compass/compass_ist8310.c \
drivers/light_ws2811strip.c \
drivers/light_ws2811strip_stdperiph.c \
drivers/max7456.c