4#ifndef HAL_TIM_MODULE_ENABLED
5#error "NeoPixel には TIM が必要です。CubeMX で TIM を有効にしてコードを再生成してください。"
7#ifndef HAL_DMA_MODULE_ENABLED
8#error "NeoPixel には DMA が必要です。CubeMX で DMA を有効にしてコードを再生成してください。"
18 uint32_t TIM_CHANNEL_X;
19 TIM_HandleTypeDef *HTIM;
22 bool dma_busy =
false;
27 uint32_t anim_last_tick;
30 WS2815B(TIM_HandleTypeDef *htim, uint32_t tim_channel_x);
32 void set_rgb(uint16_t PIXEL_NUM, uint8_t red, uint8_t green, uint8_t blue);
37 void hsv_to_rgb(
float h,
float s,
float v,
int *r,
int *g,
int *b);
bool is_fanfare_playing() const
void smooth_color_transition()
void hsv_to_rgb(float h, float s, float v, int *r, int *g, int *b)
void dma_complete_callback()
void set_rgb(uint16_t PIXEL_NUM, uint8_t red, uint8_t green, uint8_t blue)