This commit is contained in:
moyuhai
2026-06-09 16:39:17 +08:00
commit 41a602f89c
3057 changed files with 771495 additions and 0 deletions
@@ -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__ */