標(biāo)題:
單片機風(fēng)扇控制函數(shù)
[打印本頁]
作者:
cenk235
時間:
2018-3-5 00:19
標(biāo)題:
單片機風(fēng)扇控制函數(shù)
風(fēng)扇控制函數(shù)***************/
void fengshan_kz()
{
if(flag_en == 1)
{
if(temperature >= t_high) //風(fēng)扇全開
{
TR1 = 1;
pwm = 0;
}
else if((temperature < t_high) && (temperature >= t_low)) //風(fēng)扇緩慢
{
f_pwm_l = 60;
TR1 = 1;
}
else if(temperature < t_low) //關(guān)閉風(fēng)扇
{
TR1 = 0;
pwm = 1;
}
}
}
復(fù)制代碼
作者:
850323370
時間:
2018-3-5 10:45
謝謝你的幫助
歡迎光臨 (http://www.torrancerestoration.com/bbs/)
Powered by Discuz! X3.1