#include <RCSwitch.h>
int ledPin = 13; // LED connected to digital pin 13
int NO = 0;
int YES = 1;
int HIGHH = 1;
int LOWL = 0;
RCSwitch mySwitch = RCSwitch();
void setup()
{
Serial.begin(9600);
mySwitch.enableReceive(0); // Receiver on inerrupt 0 => that is pin #
int cX;
for ( cX = 0; cX < 10; cX++ ) // power-on flash LED 10 times
{
digitalWrite(ledPin, HIGHH); // turn the LED on (HIGH is the voltage level)
delay(50);
digitalWrite(ledPin, LOWL); // turn the LED off (LOW is the voltage level)
delay(50);
}
}
void loop ()
{
int cX;
Komentáře k této Příručce