﻿<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://www.yfrobot.com.cn/wiki/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh">
		<id>https://www.yfrobot.com.cn/wiki/index.php?action=history&amp;feed=atom&amp;title=Break</id>
		<title>Break - 版本历史</title>
		<link rel="self" type="application/atom+xml" href="https://www.yfrobot.com.cn/wiki/index.php?action=history&amp;feed=atom&amp;title=Break"/>
		<link rel="alternate" type="text/html" href="https://www.yfrobot.com.cn/wiki/index.php?title=Break&amp;action=history"/>
		<updated>2026-04-06T09:13:18Z</updated>
		<subtitle>本wiki的该页面的版本历史</subtitle>
		<generator>MediaWiki 1.22.6</generator>

	<entry>
		<id>https://www.yfrobot.com.cn/wiki/index.php?title=Break&amp;diff=510&amp;oldid=prev</id>
		<title>Admin：以“break is used to exit from a do, for, or while loop, bypassing the normal loop condition. It is also used to exit from a switch statement.   &lt;font color=&quot;orange&quot; siz...”为内容创建页面</title>
		<link rel="alternate" type="text/html" href="https://www.yfrobot.com.cn/wiki/index.php?title=Break&amp;diff=510&amp;oldid=prev"/>
				<updated>2015-07-31T12:12:53Z</updated>
		
		<summary type="html">&lt;p&gt;以“break is used to exit from a do, for, or while loop, bypassing the normal loop condition. It is also used to exit from a switch statement.   &amp;lt;font color=&amp;quot;orange&amp;quot; siz...”为内容创建页面&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;break is used to exit from a do, for, or while loop, bypassing the normal loop condition. It is also used to exit from a switch statement.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=&amp;quot;orange&amp;quot; size=&amp;quot;+1&amp;quot;&amp;gt;'''示例'''&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;color:dimgray&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for (x = 0; x &amp;lt; 255; x ++)&lt;br /&gt;
{&lt;br /&gt;
    analogWrite(PWMpin, x);&lt;br /&gt;
    sens = analogRead(sensorPin);  &lt;br /&gt;
    if (sens &amp;gt; threshold){      // bail out on sensor detect&lt;br /&gt;
       x = 0;&lt;br /&gt;
       break;&lt;br /&gt;
    }  &lt;br /&gt;
    delay(50);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Arduino语法参考 | 返回Arduino语法参考列表]]&lt;br /&gt;
&lt;br /&gt;
更多建议和问题欢迎反馈至 [http://www.yfrobot.com YFRobot论坛]&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>