V1.0
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
#ifndef __Mode_H__
|
||||
#define __Mode_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*-----------------------------------------------------------------------------------
|
||||
INCLUDE HEADE FILES
|
||||
------------------------------------------------------------------------------------*/
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <stdint.h>
|
||||
typedef void (*pfunc)(void);
|
||||
|
||||
|
||||
extern uint8_t deviceStatus; //开机标志位
|
||||
extern uint8_t Mode; //mode0 1 2 3 4
|
||||
extern uint8_t Speed; //速度
|
||||
extern uint8_t direction; // 呼吸灯的亮度变化方向,1表示增加,0表示减小
|
||||
extern uint8_t choose_mode_falsg;
|
||||
extern uint8_t choose_mode_bh; //模式变化
|
||||
|
||||
enum
|
||||
{
|
||||
POWERON,
|
||||
POWEROFF
|
||||
};
|
||||
enum
|
||||
{
|
||||
mode0,
|
||||
mode1,
|
||||
mode2,
|
||||
mode3,
|
||||
};
|
||||
|
||||
|
||||
|
||||
void choice_mode();
|
||||
void set_mode();
|
||||
void Start_PWM();
|
||||
void Stop_PWM();
|
||||
void Set_timing();
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* __Mode_H__ */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user