You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
743 B
26 lines
743 B
#pragma once
|
|
#define VERSION "3.0"
|
|
|
|
#define KEY_PERIOD 5
|
|
#define EXCEPTION_CHECK_PERIOD 50
|
|
|
|
//自动关机时,一个灯等效的时间
|
|
#define AUTO_SHUTDOWN_ONE_LIGHT_EQ_TIME_S 20
|
|
//间歇工作周期
|
|
// #define INTERVAL_WORK_PERIOD_MS (60 * 1000)
|
|
#define INTERVAL_WORK_PERIOD_MS (20 * 1000)
|
|
//间歇工作工作时间占整个周期的百分比
|
|
#define INTERVAL_WORK_DUTY ((uint8_t)50)
|
|
|
|
#define HIGH_LEVEL_PWM_FREQ 25000
|
|
#define LOW_LEVEL_PWM_FREQ 10000
|
|
|
|
|
|
#define MIN_PWM_FREQ 5000
|
|
#define PWM_CHANGE_INTERVAL_TIME_MS 1000
|
|
//每次PWM变化的频率
|
|
#define PWM_CHANGE_STEP_FREQ 1000
|
|
//当目标PWM小于这个数值时,直接变化到20k
|
|
#define PWM_CHANGE_BEGIN_STEP_FREQ 20000
|
|
//PWM改变一次的周期
|
|
#define PWM_CHANGE_PERIOD 1000
|