Modifications

Sauter à la navigation Sauter à la recherche
Ligne 52 : Ligne 52 :     
== Programme Blink ==
 
== Programme Blink ==
In the ''q2w'' directory in the wiringPi '''examples''' (exemple) directory, you’ll find a program called blink-io.c – this is the blink program adapted to use the 16-bit GPIO expander board. This program will blink the on-board LED at the same time as the one connected to the IO expander board.
+
Le sous répertoire '''q2w/examples/''' (exemple) dans le répertoire de wiringPi contient le programme blink-io.c – c'est une version du programme blink.c adapté pour utiliser la carte GPIO expander (à 16 entrées/sorties) de QuickToWire. Ce programme fait clignoter la LED de la carte principale en même temps que la LED connectée sur la carte GPIO.
   −
Study it to compare with the standard blink.c program. Compile and run with:
+
Comparer ce programme avec blink.c pour comprendre le fonctionnement.  
 +
 
 +
Utiliser les commandes suivantes pour le compiler et l'exécuter:
    
  <nowiki>gcc -Wall -oblink-io blink-io.c -lwiringPi
 
  <nowiki>gcc -Wall -oblink-io blink-io.c -lwiringPi
29 917

modifications

Menu de navigation