sick_dt35/User/bsp/led.h
2025-04-02 16:20:48 +08:00

33 lines
836 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#pragma once
/* Includes ----------------------------------------------------------------- */
#include <stdint.h>
#include "bsp/led.h"
/* Exported constants ------------------------------------------------------- */
/* Exported macro ----------------------------------------------------------- */
/* Exported types ----------------------------------------------------------- */
/* LED灯状态设置用 */
typedef enum
{
BSP_LED_ON,
BSP_LED_OFF,
BSP_LED_TAGGLE,
} BSP_LED_Status_t;
/* LED通道 */
typedef enum
{
BSP_LED1,
BSP_LED2,
BSP_LED3,
} BSP_LED_Channel_t;
/* Exported functions prototypes -------------------------------------------- */
int8_t BSP_LED_SET(BSP_LED_Channel_t ch, BSP_LED_Status_t s);
int8_t BSP_WS2812_Set(uint8_t red, uint8_t green, uint8_t blue);
int8_t BSP_WS2812_Init(void);