mirror of
https://gitee.com/moluo-tech/AT-Command
synced 2025-06-18 08:27:51 +00:00
32 lines
976 B
C
32 lines
976 B
C
![]() |
/******************************************************************************
|
|||
|
* @brief led<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
*
|
|||
|
* 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<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
|