Différences entre versions de « Senseur IR Librairie IR Multiprotocol »
Sauter à la navigation
Sauter à la recherche
Ligne 1 : | Ligne 1 : | ||
+ | [http://www.arcfn.com/2009/08/multi-protocol-infrared-remote-library.html multi-protocol-infrared-remote-library] | ||
+ | |||
+ | == Arduino 1.0 == | ||
+ | Pour fonctionner avec Arduino 1.0, vous devez modifier une ligne dans la librairie. | ||
+ | |||
+ | Ouvrez le fichier IRremoteInt.h disponible dans le répertoire <Arduino>/Librairies/IRRemote/ | ||
+ | |||
+ | Remplacez la ligne qui contient | ||
+ | #include <WProgram.h> | ||
+ | par | ||
+ | #include <Arduino.h> | ||
+ | afin que le contenu ressemble à ce qui suit: | ||
+ | <nowiki>/* | ||
+ | * IRremote | ||
+ | * Version 0.1 July, 2009 | ||
+ | * Copyright 2009 Ken Shirriff | ||
+ | * For details, see http://arcfn.com/2009/08/multi-protocol-infrared-remote-library.html | ||
+ | * | ||
+ | * Interrupt code based on NECIRrcv by Joe Knapp | ||
+ | * http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1210243556 | ||
+ | * Also influenced by http://zovirl.com/2008/11/12/building-a-universal-remote-with-an-arduino/ | ||
+ | */ | ||
− | + | #ifndef IRremoteint_h | |
+ | #define IRremoteint_h | ||
+ | |||
+ | #include <Arduino.h> | ||
+ | </nowiki> | ||
== Tester LED emetrice == | == Tester LED emetrice == |
Version du 1 août 2012 à 20:10
multi-protocol-infrared-remote-library
Arduino 1.0
Pour fonctionner avec Arduino 1.0, vous devez modifier une ligne dans la librairie.
Ouvrez le fichier IRremoteInt.h disponible dans le répertoire <Arduino>/Librairies/IRRemote/
Remplacez la ligne qui contient
#include <WProgram.h>
par
#include <Arduino.h>
afin que le contenu ressemble à ce qui suit:
/* * IRremote * Version 0.1 July, 2009 * Copyright 2009 Ken Shirriff * For details, see http://arcfn.com/2009/08/multi-protocol-infrared-remote-library.html * * Interrupt code based on NECIRrcv by Joe Knapp * http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1210243556 * Also influenced by http://zovirl.com/2008/11/12/building-a-universal-remote-with-an-arduino/ */ #ifndef IRremoteint_h #define IRremoteint_h #include <Arduino.h>
Tester LED emetrice
Après le test du récepteur infrarouge.avec une télécommande, il peut être utile de tester avec la LED émettrice avec le même montage.
Examples > IRRemote > IRSendDemo