313.45 KB, 下載次數: 10
xxpp2011 發表于 2020-7-1 11:00
while(A>=31)//溫度大于31度
{ delay(50);
while(A ...
xxpp2011 發表于 2020-7-1 11:00
while(A>=31)//溫度大于31度
{ delay(50);
while(A ...
xxpp2011 發表于 2020-7-1 11:00
while(A>=31)//溫度大于31度
{ delay(50);
while(A ...
xujiabin 發表于 2020-7-1 11:24
就是if(A
xujiabin 發表于 2020-7-1 11:27
定時器里面加一個計數標志,等到計數到2秒給主循環一個標志位,再拉低或者拉高引腳,就可以了。溫度防抖是 ...
shijie240 發表于 2020-7-1 12:30
你這個是定時去處理 我想要的是定時器直接做延遲
| 歡迎光臨 (http://www.raoushi.com/bbs/) | Powered by Discuz! X3.1 |