<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
	<id>https://wiki.mchobby.be/index.php?action=history&amp;feed=atom&amp;title=RB-ARD-ROBOT-Func-updateIR</id>
	<title>RB-ARD-ROBOT-Func-updateIR - Historique des versions</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.mchobby.be/index.php?action=history&amp;feed=atom&amp;title=RB-ARD-ROBOT-Func-updateIR"/>
	<link rel="alternate" type="text/html" href="https://wiki.mchobby.be/index.php?title=RB-ARD-ROBOT-Func-updateIR&amp;action=history"/>
	<updated>2026-08-30T13:36:52Z</updated>
	<subtitle>Historique des révisions pour cette page sur le wiki</subtitle>
	<generator>MediaWiki 1.35.0</generator>
	<entry>
		<id>https://wiki.mchobby.be/index.php?title=RB-ARD-ROBOT-Func-updateIR&amp;diff=7380&amp;oldid=prev</id>
		<title>Admin : /* Résultat */</title>
		<link rel="alternate" type="text/html" href="https://wiki.mchobby.be/index.php?title=RB-ARD-ROBOT-Func-updateIR&amp;diff=7380&amp;oldid=prev"/>
		<updated>2013-09-17T06:40:26Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Résultat&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;fr&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Version précédente&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version du 17 septembre 2013 à 06:40&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l20&quot; &gt;Ligne 20 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 20 :&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Résultat ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Résultat ==&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-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Robot.IRarray[] : &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;contains the values of the &lt;/del&gt;5 &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;sensors &lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Robot.IRarray[] : &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;contient les valeurs pour les &lt;/ins&gt;5 &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;senseurs&lt;/ins&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-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Exemple ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Exemple ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://wiki.mchobby.be/index.php?title=RB-ARD-ROBOT-Func-updateIR&amp;diff=7379&amp;oldid=prev</id>
		<title>Admin : Page créée avec « {{Arduino-Robot-NAV}}  &lt;h4&gt;updateIR()&lt;/h4&gt;  == Description == Classe RobotControl, librairie d'[[Arduino Robot-Librairie|Ardui... »</title>
		<link rel="alternate" type="text/html" href="https://wiki.mchobby.be/index.php?title=RB-ARD-ROBOT-Func-updateIR&amp;diff=7379&amp;oldid=prev"/>
		<updated>2013-09-17T06:39:51Z</updated>

		<summary type="html">&lt;p&gt;Page créée avec « {{Arduino-Robot-NAV}}  &amp;lt;h4&amp;gt;updateIR()&amp;lt;/h4&amp;gt;  == Description == Classe &lt;a href=&quot;/index.php?title=Arduino_Robot-Librairie#Classe_RobotControl&quot; title=&quot;Arduino Robot-Librairie&quot;&gt;RobotControl&lt;/a&gt;, librairie d&amp;#039;[[Arduino Robot-Librairie|Ardui... »&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nouvelle page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Arduino-Robot-NAV}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h4&amp;gt;updateIR()&amp;lt;/h4&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
Classe [[Arduino Robot-Librairie#Classe_RobotControl|RobotControl]], librairie d'[[Arduino Robot-Librairie|Arduino Robot]].&lt;br /&gt;
&lt;br /&gt;
Lit la valeur des 5 senseurs de ligne infrarouge (IR) situé sous le robot et stocke les valeurs dans un tableau (array). Le tableau est accessible via Robot.IRarray[]. Cette fonction doit être appelée depuis la carte de contrôle.&lt;br /&gt;
&lt;br /&gt;
Pour obtenir la lecture d'un senseur spécifique, utiliser la fonction [[RB-ARD-ROBOT-Func-IRRead|IRRead()]] de la carte moteur. &lt;br /&gt;
&lt;br /&gt;
== Syntaxe ==&lt;br /&gt;
&lt;br /&gt;
Robot.updateIR();&lt;br /&gt;
&lt;br /&gt;
== Paramètres ==&lt;br /&gt;
&lt;br /&gt;
aucun&lt;br /&gt;
&lt;br /&gt;
== Résultat ==&lt;br /&gt;
&lt;br /&gt;
Robot.IRarray[] : contains the values of the 5 sensors &lt;br /&gt;
&lt;br /&gt;
== Exemple ==&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#include &amp;lt;ArduinoRobot.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
void setup(){&lt;br /&gt;
  Robot.begin();&lt;br /&gt;
  Serial.begin(9600);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void loop(){&lt;br /&gt;
   // faire une mise à jour du tableau contenant l'état des senseurs infrarouges&lt;br /&gt;
  Robot.updateIR();&lt;br /&gt;
  for(int i=0;i&amp;lt;=4;i++){&lt;br /&gt;
    Serial.print(Robot.IRarray[i]); // Afficher la valeur sur le port série&lt;br /&gt;
    Serial.print(&amp;quot;,&amp;quot;);&lt;br /&gt;
  }&lt;br /&gt;
  Serial.println(&amp;quot;&amp;quot;);&lt;br /&gt;
  delay(100);&lt;br /&gt;
}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Voir aussi ==&lt;br /&gt;
* [[RB-ARD-ROBOT-Func-digitalRead|digitalRead()]]&lt;br /&gt;
* [[RB-ARD-ROBOT-Func-digitalWrite|digitalWrite()]]&lt;br /&gt;
* [[RB-ARD-ROBOT-Func-analogRead|analogRead()]]&lt;br /&gt;
&lt;br /&gt;
{{Arduino-Robot-TRAILER}}&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>