<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://www.robotc.net/w/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://www.robotc.net/w/index.php?title=ARDUINO_328_Functions_Sensors&amp;feed=atom&amp;action=history</id>
		<title>ARDUINO 328 Functions Sensors - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://www.robotc.net/w/index.php?title=ARDUINO_328_Functions_Sensors&amp;feed=atom&amp;action=history"/>
		<link rel="alternate" type="text/html" href="http://www.robotc.net/w/index.php?title=ARDUINO_328_Functions_Sensors&amp;action=history"/>
		<updated>2013-06-20T03:40:14Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.18.0</generator>

	<entry>
		<id>http://www.robotc.net/w/index.php?title=ARDUINO_328_Functions_Sensors&amp;diff=3393&amp;oldid=prev</id>
		<title>Tfriez: /* Digital */</title>
		<link rel="alternate" type="text/html" href="http://www.robotc.net/w/index.php?title=ARDUINO_328_Functions_Sensors&amp;diff=3393&amp;oldid=prev"/>
				<updated>2012-05-15T13:00:57Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Digital&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 13:00, 15 May 2012&lt;/td&gt;
		&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 61:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 61:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|style=&amp;quot;text-align:left; border-style: solid; border-width: 0px 0px 1px 0px&amp;quot;|'''Digital In'''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|style=&amp;quot;text-align:left; border-style: solid; border-width: 0px 0px 1px 0px&amp;quot;|'''Digital In'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|style=&amp;quot;text-align:left; border-style: solid; border-width: 0px 0px 1px 0px&amp;quot;|Pin configured as digital input with internal &amp;quot;Pull-Up&amp;quot; resistor &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;enabled&lt;/del&gt;. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|style=&amp;quot;text-align:left; border-style: solid; border-width: 0px 0px 1px 0px&amp;quot;|Pin configured as digital input with internal &amp;quot;Pull-Up&amp;quot; resistor &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;ENABLED&lt;/ins&gt;. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|style=&amp;quot;text-align:left; border-style: solid; border-width: 0px 0px 1px 0px&amp;quot;|'''Digital Out'''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|style=&amp;quot;text-align:left; border-style: solid; border-width: 0px 0px 1px 0px&amp;quot;|'''Digital Out'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 67:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 67:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|style=&amp;quot;text-align:left; border-style: solid; border-width: 0px 0px 1px 0px&amp;quot;|'''Digital High Inpedance'''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|style=&amp;quot;text-align:left; border-style: solid; border-width: 0px 0px 1px 0px&amp;quot;|'''Digital High Inpedance'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|style=&amp;quot;text-align:left; border-style: solid; border-width: 0px 0px 1px 0px&amp;quot;|Pin configured as digital input &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;without the &lt;/del&gt;&amp;quot;Pull-Up&amp;quot; resistor &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;enabled&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|style=&amp;quot;text-align:left; border-style: solid; border-width: 0px 0px 1px 0px&amp;quot;|Pin configured as digital input &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;with internal &lt;/ins&gt;&amp;quot;Pull-Up&amp;quot; resistor &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;DISABLED&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|style=&amp;quot;text-align:left; border-style: solid; border-width: 0px 0px 1px 0px&amp;quot;|'''Sonar [Ping]'''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|style=&amp;quot;text-align:left; border-style: solid; border-width: 0px 0px 1px 0px&amp;quot;|'''Sonar [Ping]'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Tfriez</name></author>	</entry>

	<entry>
		<id>http://www.robotc.net/w/index.php?title=ARDUINO_328_Functions_Sensors&amp;diff=3322&amp;oldid=prev</id>
		<title>Tfriez: /* SensorValue */</title>
		<link rel="alternate" type="text/html" href="http://www.robotc.net/w/index.php?title=ARDUINO_328_Functions_Sensors&amp;diff=3322&amp;oldid=prev"/>
				<updated>2012-05-11T21:14:06Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;SensorValue&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 21:14, 11 May 2012&lt;/td&gt;
		&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 144:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 144:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; |-&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; |-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; |&amp;lt;syntaxhighlight lang=&amp;quot;robotc&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; |&amp;lt;syntaxhighlight lang=&amp;quot;robotc&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;#pragma config(Sensor, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;dgtl24&lt;/del&gt;, dOut,&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;  sensorDigitalOut)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;#pragma config(Sensor, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;dgtl10&lt;/ins&gt;, dOut,&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;  sensorDigitalOut)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;//*!!Code automatically generated by 'ROBOTC' configuration wizard&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;  !!*//&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;//*!!Code automatically generated by 'ROBOTC' configuration wizard&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;  !!*//&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;task main()&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;task main()&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 164:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 164:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; |-&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; |-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; |&amp;lt;syntaxhighlight lang=&amp;quot;robotc&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; |&amp;lt;syntaxhighlight lang=&amp;quot;robotc&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;#pragma config(Sensor, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;dgtl25&lt;/del&gt;, dIn,&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; sensorDigitalIn)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;#pragma config(Sensor, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;dgtl11&lt;/ins&gt;, dIn,&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; sensorDigitalIn)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;//*!!Code automatically generated by 'ROBOTC' configuration wizard&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;  !!*//&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;//*!!Code automatically generated by 'ROBOTC' configuration wizard&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;  !!*//&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;task main()&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;task main()&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Tfriez</name></author>	</entry>

	<entry>
		<id>http://www.robotc.net/w/index.php?title=ARDUINO_328_Functions_Sensors&amp;diff=3321&amp;oldid=prev</id>
		<title>Tfriez: /* Information */</title>
		<link rel="alternate" type="text/html" href="http://www.robotc.net/w/index.php?title=ARDUINO_328_Functions_Sensors&amp;diff=3321&amp;oldid=prev"/>
				<updated>2012-05-11T21:13:40Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Information&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 21:13, 11 May 2012&lt;/td&gt;
		&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 7:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 7:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== Information ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== Information ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;The Arduino &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;MEGA has 16 &lt;/del&gt;analog sensor ports and &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;53 &lt;/del&gt;digital sensor ports.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;The &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;328P-Based &lt;/ins&gt;Arduino &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;have 6 &lt;/ins&gt;analog sensor ports and &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;13 &lt;/ins&gt;digital sensor ports.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;=== Analog ===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;=== Analog ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Tfriez</name></author>	</entry>

	<entry>
		<id>http://www.robotc.net/w/index.php?title=ARDUINO_328_Functions_Sensors&amp;diff=3271&amp;oldid=prev</id>
		<title>Bfeher at 20:45, 11 May 2012</title>
		<link rel="alternate" type="text/html" href="http://www.robotc.net/w/index.php?title=ARDUINO_328_Functions_Sensors&amp;diff=3271&amp;oldid=prev"/>
				<updated>2012-05-11T20:45:13Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;http://www.robotc.net/w/index.php?title=ARDUINO_328_Functions_Sensors&amp;amp;diff=3271&amp;amp;oldid=3151&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Bfeher</name></author>	</entry>

	<entry>
		<id>http://www.robotc.net/w/index.php?title=ARDUINO_328_Functions_Sensors&amp;diff=3151&amp;oldid=prev</id>
		<title>Bfeher at 21:27, 10 May 2012</title>
		<link rel="alternate" type="text/html" href="http://www.robotc.net/w/index.php?title=ARDUINO_328_Functions_Sensors&amp;diff=3151&amp;oldid=prev"/>
				<updated>2012-05-10T21:27:44Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 21:27, 10 May 2012&lt;/td&gt;
		&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 34:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 34:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{| style=&amp;quot;color:black;&amp;quot; width=&amp;quot;100%&amp;quot; cellpadding=&amp;quot;5%&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;0&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{| style=&amp;quot;color:black;&amp;quot; width=&amp;quot;100%&amp;quot; cellpadding=&amp;quot;5%&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;0&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;| class=&amp;quot;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;functionType&lt;/del&gt;&amp;quot;| &amp;lt;span class=&amp;quot;bigKeywordBI&amp;quot;&amp;gt;const word &amp;lt;/span&amp;gt;&amp;lt;span class=&amp;quot;bigKeywordB&amp;quot;&amp;gt;SensorBoolean&amp;lt;/span&amp;gt;&amp;lt;span class=&amp;quot;bigCodePunc&amp;quot;&amp;gt;[&amp;lt;/span&amp;gt;&amp;lt;span class=&amp;quot;bigCodeBasic&amp;quot;&amp;gt;tSensors sensor&amp;lt;/span&amp;gt;&amp;lt;span class=&amp;quot;bigCodePunc&amp;quot;&amp;gt;]&amp;lt;/span&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;| class=&amp;quot;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;variableType&lt;/ins&gt;&amp;quot;| &amp;lt;span class=&amp;quot;bigKeywordBI&amp;quot;&amp;gt;const word &amp;lt;/span&amp;gt;&amp;lt;span class=&amp;quot;bigKeywordB&amp;quot;&amp;gt;SensorBoolean&amp;lt;/span&amp;gt;&amp;lt;span class=&amp;quot;bigCodePunc&amp;quot;&amp;gt;[&amp;lt;/span&amp;gt;&amp;lt;span class=&amp;quot;bigCodeBasic&amp;quot;&amp;gt;tSensors sensor&amp;lt;/span&amp;gt;&amp;lt;span class=&amp;quot;bigCodePunc&amp;quot;&amp;gt;]&amp;lt;/span&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;| style=&amp;quot;font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;&amp;quot;|([[Data_Types#dataType_word|word]])&amp;#160; This returns a true or false reading from the sensor. (Mostly used by Touch sensors).&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;| style=&amp;quot;font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;&amp;quot;|([[Data_Types#dataType_word|word]])&amp;#160; This returns a true or false reading from the sensor. (Mostly used by Touch sensors).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 69:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 69:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{| style=&amp;quot;color:black;&amp;quot; width=&amp;quot;100%&amp;quot; cellpadding=&amp;quot;5%&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;0&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{| style=&amp;quot;color:black;&amp;quot; width=&amp;quot;100%&amp;quot; cellpadding=&amp;quot;5%&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;0&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;| class=&amp;quot;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;functionType&lt;/del&gt;&amp;quot;| &amp;lt;span class=&amp;quot;bigKeywordBI&amp;quot;&amp;gt;word &amp;lt;/span&amp;gt;&amp;lt;span class=&amp;quot;bigKeywordB&amp;quot;&amp;gt;SensorRaw&amp;lt;/span&amp;gt;&amp;lt;span class=&amp;quot;bigCodePunc&amp;quot;&amp;gt;[&amp;lt;/span&amp;gt;&amp;lt;span class=&amp;quot;bigCodeBasic&amp;quot;&amp;gt;tSensors sensor&amp;lt;/span&amp;gt;&amp;lt;span class=&amp;quot;bigCodePunc&amp;quot;&amp;gt;]&amp;lt;/span&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;| class=&amp;quot;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;variableType&lt;/ins&gt;&amp;quot;| &amp;lt;span class=&amp;quot;bigKeywordBI&amp;quot;&amp;gt;word &amp;lt;/span&amp;gt;&amp;lt;span class=&amp;quot;bigKeywordB&amp;quot;&amp;gt;SensorRaw&amp;lt;/span&amp;gt;&amp;lt;span class=&amp;quot;bigCodePunc&amp;quot;&amp;gt;[&amp;lt;/span&amp;gt;&amp;lt;span class=&amp;quot;bigCodeBasic&amp;quot;&amp;gt;tSensors sensor&amp;lt;/span&amp;gt;&amp;lt;span class=&amp;quot;bigCodePunc&amp;quot;&amp;gt;]&amp;lt;/span&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;| style=&amp;quot;font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;&amp;quot;|([[Data_Types#dataType_word|word]])&amp;#160; This array value will return the &amp;quot;raw&amp;quot; (un-normalized) value of a sensor. Usually this is the raw A-D converted value, which is an analog value between 0 to 1023.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;| style=&amp;quot;font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;&amp;quot;|([[Data_Types#dataType_word|word]])&amp;#160; This array value will return the &amp;quot;raw&amp;quot; (un-normalized) value of a sensor. Usually this is the raw A-D converted value, which is an analog value between 0 to 1023.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 104:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 104:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{| style=&amp;quot;color:black;&amp;quot; width=&amp;quot;100%&amp;quot; cellpadding=&amp;quot;5%&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;0&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{| style=&amp;quot;color:black;&amp;quot; width=&amp;quot;100%&amp;quot; cellpadding=&amp;quot;5%&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;0&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;| class=&amp;quot;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;functionType&lt;/del&gt;&amp;quot;| &amp;lt;span class=&amp;quot;bigKeywordB&amp;quot;&amp;gt;TSensorTypes &amp;lt;/span&amp;gt;&amp;lt;span class=&amp;quot;bigKeywordB&amp;quot;&amp;gt;SensorType&amp;lt;/span&amp;gt;&amp;lt;span class=&amp;quot;bigCodePunc&amp;quot;&amp;gt;[&amp;lt;/span&amp;gt;&amp;lt;span class=&amp;quot;bigCodeBasic&amp;quot;&amp;gt;tSensors sensor&amp;lt;/span&amp;gt;&amp;lt;span class=&amp;quot;bigCodePunc&amp;quot;&amp;gt;]&amp;lt;/span&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;| class=&amp;quot;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;variableType&lt;/ins&gt;&amp;quot;| &amp;lt;span class=&amp;quot;bigKeywordB&amp;quot;&amp;gt;TSensorTypes &amp;lt;/span&amp;gt;&amp;lt;span class=&amp;quot;bigKeywordB&amp;quot;&amp;gt;SensorType&amp;lt;/span&amp;gt;&amp;lt;span class=&amp;quot;bigCodePunc&amp;quot;&amp;gt;[&amp;lt;/span&amp;gt;&amp;lt;span class=&amp;quot;bigCodeBasic&amp;quot;&amp;gt;tSensors sensor&amp;lt;/span&amp;gt;&amp;lt;span class=&amp;quot;bigCodePunc&amp;quot;&amp;gt;]&amp;lt;/span&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;| style=&amp;quot;font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;&amp;quot;|([[Data_Types#dataType_TSensorTypes|TSensorTypes]])&amp;#160; The SensorType array is used to specify what type of sensor is connected to a certain port. Most users should not have to use this functionality and should use the Motors and Sensor Setup instead.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;| style=&amp;quot;font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;&amp;quot;|([[Data_Types#dataType_TSensorTypes|TSensorTypes]])&amp;#160; The SensorType array is used to specify what type of sensor is connected to a certain port. Most users should not have to use this functionality and should use the Motors and Sensor Setup instead.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 136:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 136:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{| style=&amp;quot;color:black;&amp;quot; width=&amp;quot;100%&amp;quot; cellpadding=&amp;quot;5%&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;0&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{| style=&amp;quot;color:black;&amp;quot; width=&amp;quot;100%&amp;quot; cellpadding=&amp;quot;5%&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;0&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;| class=&amp;quot;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;functionType&lt;/del&gt;&amp;quot;| &amp;lt;span class=&amp;quot;bigKeywordBI&amp;quot;&amp;gt;word &amp;lt;/span&amp;gt;&amp;lt;span class=&amp;quot;bigKeywordB&amp;quot;&amp;gt;SensorValue&amp;lt;/span&amp;gt;&amp;lt;span class=&amp;quot;bigCodePunc&amp;quot;&amp;gt;[&amp;lt;/span&amp;gt;&amp;lt;span class=&amp;quot;bigCodeBasic&amp;quot;&amp;gt;tSensors sensor&amp;lt;/span&amp;gt;&amp;lt;span class=&amp;quot;bigCodePunc&amp;quot;&amp;gt;]&amp;lt;/span&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;| class=&amp;quot;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;variableType&lt;/ins&gt;&amp;quot;| &amp;lt;span class=&amp;quot;bigKeywordBI&amp;quot;&amp;gt;word &amp;lt;/span&amp;gt;&amp;lt;span class=&amp;quot;bigKeywordB&amp;quot;&amp;gt;SensorValue&amp;lt;/span&amp;gt;&amp;lt;span class=&amp;quot;bigCodePunc&amp;quot;&amp;gt;[&amp;lt;/span&amp;gt;&amp;lt;span class=&amp;quot;bigCodeBasic&amp;quot;&amp;gt;tSensors sensor&amp;lt;/span&amp;gt;&amp;lt;span class=&amp;quot;bigCodePunc&amp;quot;&amp;gt;]&amp;lt;/span&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;| style=&amp;quot;font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;&amp;quot;|([[Data_Types#dataType_word|word]])&amp;#160; This array value returns the value of the sensor in a normalized fashion. Rather than returning a raw value of 0 to 1023, ROBOTC will interpret the data from the &amp;quot;SensorType&amp;quot; and return a more accurate representation of the sensor's data. An example of this is the Light Sensor, which will return a percentage value from 0 to 100.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;| style=&amp;quot;font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;&amp;quot;|([[Data_Types#dataType_word|word]])&amp;#160; This array value returns the value of the sensor in a normalized fashion. Rather than returning a raw value of 0 to 1023, ROBOTC will interpret the data from the &amp;quot;SensorType&amp;quot; and return a more accurate representation of the sensor's data. An example of this is the Light Sensor, which will return a percentage value from 0 to 100.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Bfeher</name></author>	</entry>

	<entry>
		<id>http://www.robotc.net/w/index.php?title=ARDUINO_328_Functions_Sensors&amp;diff=2985&amp;oldid=prev</id>
		<title>Tfriez: moved ARDUINO Functions Sensors to ARDUINO 328 Functions Sensors</title>
		<link rel="alternate" type="text/html" href="http://www.robotc.net/w/index.php?title=ARDUINO_328_Functions_Sensors&amp;diff=2985&amp;oldid=prev"/>
				<updated>2012-05-09T21:02:15Z</updated>
		
		<summary type="html">&lt;p&gt;moved &lt;a href=&quot;/wiki/ARDUINO_Functions_Sensors&quot; class=&quot;mw-redirect&quot; title=&quot;ARDUINO Functions Sensors&quot;&gt;ARDUINO Functions Sensors&lt;/a&gt; to &lt;a href=&quot;/wiki/ARDUINO_328_Functions_Sensors&quot; title=&quot;ARDUINO 328 Functions Sensors&quot;&gt;ARDUINO 328 Functions Sensors&lt;/a&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 21:02, 9 May 2012&lt;/td&gt;
		&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Tfriez</name></author>	</entry>

	<entry>
		<id>http://www.robotc.net/w/index.php?title=ARDUINO_328_Functions_Sensors&amp;diff=2098&amp;oldid=prev</id>
		<title>Bfeher: Created page with &quot;&lt;yambe:breadcrumb self=&quot;Sensors&quot;&gt;ARDUINO_Functions_and_Variables|Functions and Variables&lt;/yambe:breadcrumb&gt; &lt;br /&gt;  {| |- | ''For more examples and explanations, head over to ...&quot;</title>
		<link rel="alternate" type="text/html" href="http://www.robotc.net/w/index.php?title=ARDUINO_328_Functions_Sensors&amp;diff=2098&amp;oldid=prev"/>
				<updated>2012-05-01T17:29:11Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;yambe:breadcrumb self=&amp;quot;Sensors&amp;quot;&amp;gt;ARDUINO_Functions_and_Variables|Functions and Variables&amp;lt;/yambe:breadcrumb&amp;gt; &amp;lt;br /&amp;gt;  {| |- | &amp;#039;&amp;#039;For more examples and explanations, head over to ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;yambe:breadcrumb self=&amp;quot;Sensors&amp;quot;&amp;gt;ARDUINO_Functions_and_Variables|Functions and Variables&amp;lt;/yambe:breadcrumb&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
''For more examples and explanations, head over to [[VEX2_Sensors_Overview|CORTEX Sensors Overview]] page!''&lt;br /&gt;
&lt;br /&gt;
''For information and examples on using I2C sensors, head over to [[VEX2_I2C_Sensors|CORTEX I2C Digital Sensors]] page!''&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{tl|1|1}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Information ==&lt;br /&gt;
{| class=&amp;quot;wikiText&amp;quot; border=&amp;quot;0&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|The VEX 2.0 Cortex is equipped with 20 sensor ports. There are 8 Analog Sensor Ports and 12 Digital Sensor Ports.  Note that unlike the VEX - PIC microcontroller, all Analog sensors must be in Analog ports, while all Digital sensors must be in Digital ports.&lt;br /&gt;
&lt;br /&gt;
There are a variety of functions and variables used for configuring these ports and accessing their values.&lt;br /&gt;
&lt;br /&gt;
Configuring sensors can be complicated. ROBOTC has a built-in wizard that can be used to configure the VEX 2.0 Cortex sensors. The wizard contains a number of PC windows that allow you to set the following fields for the sensor:&lt;br /&gt;
&lt;br /&gt;
*The variable name that you want to assign to the sensor. Using a name like “leftBumper” makes for a more readable program than 'dgtl3'!&lt;br /&gt;
*The port that the sensor is connected to.&lt;br /&gt;
*The type of sensor – touch, quadrature encoder, sonar, line follower, etc.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== SensorBoolean ==&lt;br /&gt;
{| style=&amp;quot;color:black;&amp;quot; width=&amp;quot;100%&amp;quot; cellpadding=&amp;quot;5%&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;0&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| class=&amp;quot;functionType&amp;quot;| &amp;lt;span class=&amp;quot;bigKeywordBI&amp;quot;&amp;gt;const word &amp;lt;/span&amp;gt;&amp;lt;span class=&amp;quot;bigKeywordB&amp;quot;&amp;gt;SensorBoolean&amp;lt;/span&amp;gt;&amp;lt;span class=&amp;quot;bigCodePunc&amp;quot;&amp;gt;[&amp;lt;/span&amp;gt;&amp;lt;span class=&amp;quot;bigCodeBasic&amp;quot;&amp;gt;tSensors sensor&amp;lt;/span&amp;gt;&amp;lt;span class=&amp;quot;bigCodePunc&amp;quot;&amp;gt;]&amp;lt;/span&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;&amp;quot;|([[Data_Types#dataType_word|word]])  This returns a true or false reading from the sensor. (Mostly used by Touch sensors).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;parameterTable&amp;quot; cellpadding=&amp;quot;5%&amp;quot; width=&amp;quot;100%&amp;quot;&lt;br /&gt;
  ! width=&amp;quot;20%&amp;quot; style=&amp;quot;border-style: solid; border-width: 0px 0px 1px 0px&amp;quot;|Parameter&lt;br /&gt;
  ! width=&amp;quot;60%&amp;quot; style=&amp;quot;border-style: solid; border-width: 0px 0px 1px 0px&amp;quot;|Explanation&lt;br /&gt;
  ! width=&amp;quot;20%&amp;quot; style=&amp;quot;border-style: solid; border-width: 0px 0px 1px 0px&amp;quot;|Data Type&lt;br /&gt;
  |-&lt;br /&gt;
  | style=&amp;quot;border-style: solid; border-width: 1px 0px 0px 0px&amp;quot;|''sensor'' &lt;br /&gt;
  | style=&amp;quot;border-style: solid; border-width: 1px 0px 0px 0px&amp;quot;|A sensor port or name&lt;br /&gt;
  | style=&amp;quot;border-style: solid; border-width: 1px 0px 0px 0px&amp;quot;|[[Data_Types#dataType_tSensors|tSensors]]&lt;br /&gt;
  |-&lt;br /&gt;
  |}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  {|&lt;br /&gt;
  |-&lt;br /&gt;
  |&amp;lt;syntaxhighlight lang=&amp;quot;robotc&amp;quot;&amp;gt;&lt;br /&gt;
while(SensorBoolean[touchSensor]) // Loop while robot's bumper/touch sensor is pressed in&lt;br /&gt;
{&lt;br /&gt;
   motor[rightMotor] = 63;   // Right motor is run at half (63) power forward&lt;br /&gt;
   motor[leftMotor]  = 63;   // Left motor is run at half (63) power forward&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
  |-&lt;br /&gt;
  |}&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== SensorRaw ==&lt;br /&gt;
{| style=&amp;quot;color:black;&amp;quot; width=&amp;quot;100%&amp;quot; cellpadding=&amp;quot;5%&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;0&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| class=&amp;quot;functionType&amp;quot;| &amp;lt;span class=&amp;quot;bigKeywordBI&amp;quot;&amp;gt;word &amp;lt;/span&amp;gt;&amp;lt;span class=&amp;quot;bigKeywordB&amp;quot;&amp;gt;SensorRaw&amp;lt;/span&amp;gt;&amp;lt;span class=&amp;quot;bigCodePunc&amp;quot;&amp;gt;[&amp;lt;/span&amp;gt;&amp;lt;span class=&amp;quot;bigCodeBasic&amp;quot;&amp;gt;tSensors sensor&amp;lt;/span&amp;gt;&amp;lt;span class=&amp;quot;bigCodePunc&amp;quot;&amp;gt;]&amp;lt;/span&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;&amp;quot;|([[Data_Types#dataType_word|word]])  This array value will return the &amp;quot;raw&amp;quot; (un-normalized) value of a sensor. Usually this is the raw A-D converted value, which is an analog value between 0 to 1023.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;parameterTable&amp;quot; cellpadding=&amp;quot;5%&amp;quot; width=&amp;quot;100%&amp;quot;&lt;br /&gt;
  ! width=&amp;quot;20%&amp;quot; style=&amp;quot;border-style: solid; border-width: 0px 0px 1px 0px&amp;quot;|Parameter&lt;br /&gt;
  ! width=&amp;quot;60%&amp;quot; style=&amp;quot;border-style: solid; border-width: 0px 0px 1px 0px&amp;quot;|Explanation&lt;br /&gt;
  ! width=&amp;quot;20%&amp;quot; style=&amp;quot;border-style: solid; border-width: 0px 0px 1px 0px&amp;quot;|Data Type&lt;br /&gt;
  |-&lt;br /&gt;
  | style=&amp;quot;border-style: solid; border-width: 1px 0px 0px 0px&amp;quot;|''sensor'' &lt;br /&gt;
  | style=&amp;quot;border-style: solid; border-width: 1px 0px 0px 0px&amp;quot;|A sensor port or name&lt;br /&gt;
  | style=&amp;quot;border-style: solid; border-width: 1px 0px 0px 0px&amp;quot;|[[Data_Types#dataType_tSensors|tSensors]]&lt;br /&gt;
  |-&lt;br /&gt;
  |}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  {|&lt;br /&gt;
  |-&lt;br /&gt;
  |&amp;lt;syntaxhighlight lang=&amp;quot;robotc&amp;quot;&amp;gt;&lt;br /&gt;
if(SensorRaw[lightSensor] &amp;gt; 512) // If the Raw Value of the Light Sensor is greater than 512:&lt;br /&gt;
{&lt;br /&gt;
   motor[rightMotor] = 63;   // Right motor is run at half (63) power forward&lt;br /&gt;
   motor[leftMotor]  = 63;   // Left motor is run at half (63) power forward &lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
  |-&lt;br /&gt;
  |}&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== SensorType ==&lt;br /&gt;
{| style=&amp;quot;color:black;&amp;quot; width=&amp;quot;100%&amp;quot; cellpadding=&amp;quot;5%&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;0&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| class=&amp;quot;functionType&amp;quot;| &amp;lt;span class=&amp;quot;bigKeywordB&amp;quot;&amp;gt;TSensorTypes &amp;lt;/span&amp;gt;&amp;lt;span class=&amp;quot;bigKeywordB&amp;quot;&amp;gt;SensorType&amp;lt;/span&amp;gt;&amp;lt;span class=&amp;quot;bigCodePunc&amp;quot;&amp;gt;[&amp;lt;/span&amp;gt;&amp;lt;span class=&amp;quot;bigCodeBasic&amp;quot;&amp;gt;tSensors sensor&amp;lt;/span&amp;gt;&amp;lt;span class=&amp;quot;bigCodePunc&amp;quot;&amp;gt;]&amp;lt;/span&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;&amp;quot;|([[Data_Types#dataType_TSensorTypes|TSensorTypes]])  The SensorType array is used to specify what type of sensor is connected to a certain port. Most users should not have to use this functionality and should use the Motors and Sensor Setup instead.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;parameterTable&amp;quot; cellpadding=&amp;quot;5%&amp;quot; width=&amp;quot;100%&amp;quot;&lt;br /&gt;
  ! width=&amp;quot;20%&amp;quot; style=&amp;quot;border-style: solid; border-width: 0px 0px 1px 0px&amp;quot;|Parameter&lt;br /&gt;
  ! width=&amp;quot;60%&amp;quot; style=&amp;quot;border-style: solid; border-width: 0px 0px 1px 0px&amp;quot;|Explanation&lt;br /&gt;
  ! width=&amp;quot;20%&amp;quot; style=&amp;quot;border-style: solid; border-width: 0px 0px 1px 0px&amp;quot;|Data Type&lt;br /&gt;
  |-&lt;br /&gt;
  | style=&amp;quot;border-style: solid; border-width: 1px 0px 0px 0px&amp;quot;|''sensor'' &lt;br /&gt;
  | style=&amp;quot;border-style: solid; border-width: 1px 0px 0px 0px&amp;quot;|A sensor port or name&lt;br /&gt;
  | style=&amp;quot;border-style: solid; border-width: 1px 0px 0px 0px&amp;quot;|[[Data_Types#dataType_tSensors|tSensors]]&lt;br /&gt;
  |-&lt;br /&gt;
  |}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  {|&lt;br /&gt;
  |-&lt;br /&gt;
  |&amp;lt;syntaxhighlight lang=&amp;quot;robotc&amp;quot;&amp;gt;&lt;br /&gt;
SensorType[sonarSensor] = sensorSonar;  // set 'SonarSensor' to be of type sensorSonar (the Motors and &lt;br /&gt;
                                        // sensors Setup screen does this for you in the background)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
  |-&lt;br /&gt;
  |}&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== SensorValue ==&lt;br /&gt;
{| style=&amp;quot;color:black;&amp;quot; width=&amp;quot;100%&amp;quot; cellpadding=&amp;quot;5%&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;0&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| class=&amp;quot;functionType&amp;quot;| &amp;lt;span class=&amp;quot;bigKeywordBI&amp;quot;&amp;gt;word &amp;lt;/span&amp;gt;&amp;lt;span class=&amp;quot;bigKeywordB&amp;quot;&amp;gt;SensorValue&amp;lt;/span&amp;gt;&amp;lt;span class=&amp;quot;bigCodePunc&amp;quot;&amp;gt;[&amp;lt;/span&amp;gt;&amp;lt;span class=&amp;quot;bigCodeBasic&amp;quot;&amp;gt;tSensors sensor&amp;lt;/span&amp;gt;&amp;lt;span class=&amp;quot;bigCodePunc&amp;quot;&amp;gt;]&amp;lt;/span&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;&amp;quot;|([[Data_Types#dataType_word|word]])  This array value returns the value of the sensor in a normalized fashion. Rather than returning a raw value of 0 to 1023, ROBOTC will interpret the data from the &amp;quot;SensorType&amp;quot; and return a more accurate representation of the sensor's data. An example of this is the Light Sensor, which will return a percentage value from 0 to 100.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;parameterTable&amp;quot; cellpadding=&amp;quot;5%&amp;quot; width=&amp;quot;100%&amp;quot;&lt;br /&gt;
  ! width=&amp;quot;20%&amp;quot; style=&amp;quot;border-style: solid; border-width: 0px 0px 1px 0px&amp;quot;|Parameter&lt;br /&gt;
  ! width=&amp;quot;60%&amp;quot; style=&amp;quot;border-style: solid; border-width: 0px 0px 1px 0px&amp;quot;|Explanation&lt;br /&gt;
  ! width=&amp;quot;20%&amp;quot; style=&amp;quot;border-style: solid; border-width: 0px 0px 1px 0px&amp;quot;|Data Type&lt;br /&gt;
  |-&lt;br /&gt;
  | style=&amp;quot;border-style: solid; border-width: 1px 0px 0px 0px&amp;quot;|''sensor'' &lt;br /&gt;
  | style=&amp;quot;border-style: solid; border-width: 1px 0px 0px 0px&amp;quot;|A sensor port or name&lt;br /&gt;
  | style=&amp;quot;border-style: solid; border-width: 1px 0px 0px 0px&amp;quot;|[[Data_Types#dataType_tSensors|tSensors]]&lt;br /&gt;
  |-&lt;br /&gt;
  |}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  {|&lt;br /&gt;
  |-&lt;br /&gt;
  |&amp;lt;syntaxhighlight lang=&amp;quot;robotc&amp;quot;&amp;gt;&lt;br /&gt;
while(SensorValue(touchSensor) == 0) //Loop while robot's bumper/touch sensor isn't pressed in&lt;br /&gt;
{&lt;br /&gt;
   motor[rightMotor] = 63;   // Right motor is run at half (63) power forward&lt;br /&gt;
   motor[leftMotor]  = 63;   // Left motor is run at half (63) power forward&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
  |-&lt;br /&gt;
  |}&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Bfeher</name></author>	</entry>

	</feed>