mirror of
https://gitee.com/moluo-tech/AT-Command
synced 2025-06-17 16:07:52 +00:00
32 lines
976 B
C
32 lines
976 B
C
/******************************************************************************
|
||
* @brief led왠齡
|
||
*
|
||
* Copyright (c) 2020, <morro_luo@163.com>
|
||
*
|
||
* SPDX-License-Identifier: Apache-2.0
|
||
*
|
||
* Change Logs:
|
||
* Date Author Notes
|
||
*
|
||
******************************************************************************/
|
||
#ifndef _LED_H_
|
||
#define _LED_H_
|
||
|
||
/*led묏鱗친駕 ---------------------------------------------------------------*/
|
||
#define LED_MODE_OFF 0 /*끽췻*/
|
||
#define LED_MODE_ON 1 /*끽좋*/
|
||
#define LED_MODE_FAST 2 /*우<>*/
|
||
#define LED_MODE_SLOW 3 /*찹<>*/
|
||
|
||
/*led잚謹 --------------------------------------------------------------------*/
|
||
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
|