http://gharee.com/wiki/index.php?action=history&feed=atom&title=DelayMicroseconds%28us%29
123,123,123
2025-06-30T00:35:10Z
本wiki的該頁(yè)面的版本歷史
MediaWiki 1.21.2
http://gharee.com/wiki/index.php?title=DelayMicroseconds(us)&diff=93&oldid=prev
Admin:以“<pre style="color:blue"> void delayMicroseconds (unsigned int us) </pre> 延時(shí)(微秒) <br> 延時(shí), 單位為微妙(1毫秒有1000微妙). 如果延時(shí)的時(shí)間...”為內(nèi)容創(chuàng)建頁(yè)面
2014-09-12T08:29:30Z
<p>以“<pre style="color:blue"> void delayMicroseconds (unsigned int us) </pre> 延時(shí)(微秒) <br> 延時(shí), 單位為微妙(1毫秒有1000微妙). 如果延時(shí)的時(shí)間...”為內(nèi)容創(chuàng)建頁(yè)面</p>
<p><b>新頁(yè)面</b></p><div><pre style="color:blue"><br />
void delayMicroseconds (unsigned int us) <br />
</pre><br />
延時(shí)(微秒) <br><br />
<br />
延時(shí), 單位為微妙(1毫秒有1000微妙). 如果延時(shí)的時(shí)間有幾千微妙, 那么建議使用 delay 函數(shù). 目前參數(shù)最大支持16383微妙(不過(guò)以后的版本中可能會(huì)變化).<br><br />
<br />
以下代碼向第8號(hào)引腳發(fā)送脈沖, 每次脈沖持續(xù)50微妙的時(shí)間.<br><br />
<br />
<pre style="color:green"><br />
<br />
int outPin = 8; // digital pin 8<br />
<br />
void setup()<br />
{<br />
pinMode(outPin, OUTPUT); // sets the digital pin as output<br />
}<br />
<br />
void loop()<br />
{<br />
digitalWrite(outPin, HIGH); // sets the pin on<br />
delayMicroseconds(50); // pauses for 50 microseconds <br />
digitalWrite(outPin, LOW); // sets the pin off<br />
delayMicroseconds(50); // pauses for 50 microseconds <br />
}<br />
</pre></div>
Admin