CodeBrick/user/led.h
2020-07-11 10:18:03 +08:00

32 lines
980 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.

/******************************************************************************
* @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