<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
	<id>https://wikilipo.unige.ch/w/index.php?action=history&amp;feed=atom&amp;title=SensorBlinkingLed.ino</id>
	<title>SensorBlinkingLed.ino - Historique des versions</title>
	<link rel="self" type="application/atom+xml" href="https://wikilipo.unige.ch/w/index.php?action=history&amp;feed=atom&amp;title=SensorBlinkingLed.ino"/>
	<link rel="alternate" type="text/html" href="https://wikilipo.unige.ch/w/index.php?title=SensorBlinkingLed.ino&amp;action=history"/>
	<updated>2026-05-04T01:38:49Z</updated>
	<subtitle>Historique des versions pour cette page sur le wiki</subtitle>
	<generator>MediaWiki 1.39.4</generator>
	<entry>
		<id>https://wikilipo.unige.ch/w/index.php?title=SensorBlinkingLed.ino&amp;diff=1190&amp;oldid=prev</id>
		<title>Pdunandf : Page créée avec « &lt;pre&gt;// on Getting Started with Arduino // pp. 66-67 // Example 06A: Blink LED at a rate specified by the // value of the analogue input  // here a light dependant resistor (... »</title>
		<link rel="alternate" type="text/html" href="https://wikilipo.unige.ch/w/index.php?title=SensorBlinkingLed.ino&amp;diff=1190&amp;oldid=prev"/>
		<updated>2012-04-13T14:06:03Z</updated>

		<summary type="html">&lt;p&gt;Page créée avec « &amp;lt;pre&amp;gt;// on Getting Started with Arduino // pp. 66-67 // Example 06A: Blink LED at a rate specified by the // value of the analogue input  // here a light dependant resistor (... »&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nouvelle page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;pre&amp;gt;// on Getting Started with Arduino&lt;br /&gt;
// pp. 66-67&lt;br /&gt;
// Example 06A: Blink LED at a rate specified by the&lt;br /&gt;
// value of the analogue input &lt;br /&gt;
// here a light dependant resistor (LDR)&lt;br /&gt;
// faire varier la fréquence d&amp;#039;allumage d&amp;#039;une DEL&lt;br /&gt;
// en fonction de variation de l&amp;#039;exposition à la lumière&lt;br /&gt;
// d&amp;#039;un capteur: ici une cellule photoélectrique&lt;br /&gt;
// April 1, 2012&lt;br /&gt;
// French version on April 13, 2012&lt;br /&gt;
// @atelierpdf.com&lt;br /&gt;
&lt;br /&gt;
// circuit: &lt;br /&gt;
// DEL entre 13 et GRD (terre)&lt;br /&gt;
// la cellule LDR entre 5v et GRD, avec une résistance de 10KOhms&lt;br /&gt;
// la terre (GND) de la LDR est aussi branchée sur la fiche A0 analogique&lt;br /&gt;
&lt;br /&gt;
const int LED = 13; // le fiche de la DEL&lt;br /&gt;
int val = 0;        // la variable contenant les valeurs de la LDR&lt;br /&gt;
                    &lt;br /&gt;
void setup() {&lt;br /&gt;
  pinMode(LED, OUTPUT); // la fiche appelée DEL est initialisée en mode sortie&lt;br /&gt;
                        // Note: les fiches analogiques de l&amp;#039;arduino&lt;br /&gt;
                        // sont réglée comme entrées par défaut&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void loop() {&lt;br /&gt;
  &lt;br /&gt;
  val = analogRead(0); // on relève les valeurs du capteur&lt;br /&gt;
                       &lt;br /&gt;
  digitalWrite(LED, HIGH); // on allume la DEL&lt;br /&gt;
  &lt;br /&gt;
  delay(val); // on attend un temps égal&lt;br /&gt;
              // à la valeur captée en milisecondes&lt;br /&gt;
              &lt;br /&gt;
  digitalWrite(LED, LOW); // on éteint la DEL&lt;br /&gt;
  &lt;br /&gt;
  delay(val); // pendant la meme durée&lt;br /&gt;
  &lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Pdunandf</name></author>
	</entry>
</feed>