El contenido de este sitio web es gratis, has una donación para continuar su desarrollo… The content of this website is free, do a donation to continue its development... TRABAJAR EN EQUIPO EVITA ACCIDENTES

ARDUINO INFRARED BLINK

Valorado 2.00 sobre 5 basado en 1 puntuación de cliente
(2 valoraciones de clientes)

//www.elegoo.com
//2016.09.19

#include <IRremote.h>//Infrared Library
int receiverpin = 12;//Infrared signal receiving pin
int LED=13; //define LED pin
volatile int state = LOW; //define default input mode
unsigned long RED;
#define L 16738455
IRrecv irrecv(receiverpin);//initialization
decode_results results;//Define structure type
void setup() {
pinMode(LED, OUTPUT); //initialize LED as an output
Serial.begin(9600); // debug output at 9600 baud
irrecv.enableIRIn();// Start receiving
}
void stateChange()
{
state = !state;
digitalWrite(LED, state);
}
void loop() {
if (irrecv.decode(&results))
{
RED=results.value;
Serial.println(RED);
irrecv.resume(); // Receive the next value
delay(150);
if(RED==L)
{
stateChange();
}
}
}

2 valoraciones en ARDUINO INFRARED BLINK

  1. Howdy! I know this is kinda off topic but I was wondering which blog platform are you using for this site? I’m getting sick and tired of WordPress because I’ve had problems with hackers and I’m looking at options for another platform. I would be fantastic if you could point me in the direction of a good platform.

    http://mrbaystreet.com/myb/index.php?do=/blog/47868/quality-roofers-quick-info-considerations/

  2. Valorado en 2 de 5

    Buying Tadalafil Tablets http://costofcial.com – cialis Nolvadex 20 Mg Generic Lasix Online Commander Cialis Tadalafil Viagra Cialis O Levitra 3 Grams Of Amoxicillin buy cialis Tadacip 20mg Online Review Best Buy Amatriptylene Levitra Online In Australia Tretinoin Cream 0.1 Buy Generic Synthroid Online http://costofcial.com – online pharmacy Order Generic Cialis Online Viagra Ohne Rezept Generika

Añadir una valoración