mirror of
https://gitee.com/moluo-tech/CodeBrick.git
synced 2025-01-16 04:32:51 +08:00
32 lines
980 B
C
32 lines
980 B
C
/******************************************************************************
|
||
* @brief led<65><64><EFBFBD><EFBFBD>
|
||
*
|
||
* Copyright (c) 2020, <master_roger@sina.com>
|
||
*
|
||
* SPDX-License-Identifier: Apache-2.0
|
||
*
|
||
* Change Logs:
|
||
* Date Author Notes
|
||
*
|
||
******************************************************************************/
|
||
#ifndef _LED_H_
|
||
#define _LED_H_
|
||
|
||
/*led<65><64><EFBFBD><EFBFBD>ģʽ ---------------------------------------------------------------*/
|
||
#define LED_MODE_OFF 0 /*<2A><><EFBFBD><EFBFBD>*/
|
||
#define LED_MODE_ON 1 /*<2A><><EFBFBD><EFBFBD>*/
|
||
#define LED_MODE_FAST 2 /*<2A><><EFBFBD><EFBFBD>*/
|
||
#define LED_MODE_SLOW 3 /*<2A><><EFBFBD><EFBFBD>*/
|
||
|
||
/*led<65><64><EFBFBD><EFBFBD> --------------------------------------------------------------------*/
|
||
typedef enum {
|
||
LED_TYPE_RED = 0,
|
||
LED_TYPE_GREEN,
|
||
LED_TYPE_BLUE,
|
||
LED_TYPE_MAX
|
||
}led_type;
|
||
|
||
void led_ctrl(led_type type, int mode, int reapeat);
|
||
|
||
#endif
|