mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
25 lines
381 B
C
25 lines
381 B
C
#ifndef __LED_H
|
||
#define __LED_H
|
||
|
||
//Sparrow Board LED
|
||
typedef enum{
|
||
SP_LED1,
|
||
SP_LED2,
|
||
SP_LED3,
|
||
SP_LED4,
|
||
}sp_led_t;
|
||
|
||
//LED״̬
|
||
typedef enum{
|
||
SP_LED_STATE_CLOSE, //LED<45>ر<EFBFBD>
|
||
SP_LED_STATE_OPEN //LED<45><44><EFBFBD><EFBFBD>
|
||
}sp_led_State_t;
|
||
|
||
|
||
void Led_Init(void);
|
||
void Led_SetState(sp_led_t led,sp_led_State_t state);
|
||
void Led_Toggles(sp_led_t led);
|
||
sp_led_State_t Led_GetState(sp_led_t led);
|
||
|
||
#endif
|