Quiero usar el mando para poder usar como botones
aqui enciende un led, pero yo quiero usarlo como boton
========================================================
#include <Arduino.h>
#include <NECIRrcv.h>
#define IRPIN 8 // pin that IR detector is connected to
int led = 13;
static int aux = 1;
NECIRrcv ir(IRPIN) ;
void setup()
{
pinMode(led, OUTPUT);
Serial.begin(9600) ;
Serial.println("0xEF10FF00") ;
ir.begin() ;
}
void loop()
{
unsigned long ircode ;
while (ir.available()) {
ircode = ir.read() ;
Serial.println(ircode) ;
if(ircode == 3125149440){
if(aux == 0){
digitalWrite(led, LOW);
aux = 1;
}
else{
digitalWrite(led, HIGH);
aux = 0;
}
}
}
}
========================================================
ejemplo este codigo usa 3 botones, yo quiero usar el mando
http://e-elektronic.blogspot.com.es/2013/09/arduino-tutorial-parte-14-temporizador.html
Mando ARDUINO101
1= 0xEF10FF00
2= 0xFC03FF00
3= 0xFE01FF00
4= 0xF906FF00
5= 0xF609FF00
6= 0xE21DFF00
7= 0xE01FFF00
8= 0xF20DFF00
9= 0xE619FF00
0= 0xE41BFF00
10+= 0xEE11FF00
Mute= 0xEA15FF00
subtitule= 0xE817FF00
goto= 0xED12FF00
mode= 0xE916FF00
zoom= 0xB34CFF00
audio= 0xBF40FF00
display= 0xB748FF00
detras= 0xFB04FF00
alante= 0xFF00FF00
angle= 0xFD02FF00
boton amarillo arriba= 0xFA05FF00
menu= 0xAB54FF00
title= 0xB24DFF00
boton amarillo izquierda= 0xF50AFF00
play/pausa= 0xE11EFF00
boton amarillo derecha= 0xF10EFF00
stop= 0xE51AFF00
setup= 0xE31CFF00
boton amarillo abajo= 0xEB14FF00
return= 0xF00FFF00
open= 0xF30CFF00
Hace unos días que lo tengo soy un noobster. Saludos!! ...
aqui enciende un led, pero yo quiero usarlo como boton
========================================================
#include <Arduino.h>
#include <NECIRrcv.h>
#define IRPIN 8 // pin that IR detector is connected to
int led = 13;
static int aux = 1;
NECIRrcv ir(IRPIN) ;
void setup()
{
pinMode(led, OUTPUT);
Serial.begin(9600) ;
Serial.println("0xEF10FF00") ;
ir.begin() ;
}
void loop()
{
unsigned long ircode ;
while (ir.available()) {
ircode = ir.read() ;
Serial.println(ircode) ;
if(ircode == 3125149440){
if(aux == 0){
digitalWrite(led, LOW);
aux = 1;
}
else{
digitalWrite(led, HIGH);
aux = 0;
}
}
}
}
========================================================
ejemplo este codigo usa 3 botones, yo quiero usar el mando
http://e-elektronic.blogspot.com.es/2013/09/arduino-tutorial-parte-14-temporizador.html
Mando ARDUINO101
1= 0xEF10FF00
2= 0xFC03FF00
3= 0xFE01FF00
4= 0xF906FF00
5= 0xF609FF00
6= 0xE21DFF00
7= 0xE01FFF00
8= 0xF20DFF00
9= 0xE619FF00
0= 0xE41BFF00
10+= 0xEE11FF00
Mute= 0xEA15FF00
subtitule= 0xE817FF00
goto= 0xED12FF00
mode= 0xE916FF00
zoom= 0xB34CFF00
audio= 0xBF40FF00
display= 0xB748FF00
detras= 0xFB04FF00
alante= 0xFF00FF00
angle= 0xFD02FF00
boton amarillo arriba= 0xFA05FF00
menu= 0xAB54FF00
title= 0xB24DFF00
boton amarillo izquierda= 0xF50AFF00
play/pausa= 0xE11EFF00
boton amarillo derecha= 0xF10EFF00
stop= 0xE51AFF00
setup= 0xE31CFF00
boton amarillo abajo= 0xEB14FF00
return= 0xF00FFF00
open= 0xF30CFF00
Hace unos días que lo tengo soy un noobster. Saludos!! ...