Vous ne pouvez pas sélectionner plus de 25 sujets
Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
|
#include <RCSwitch.h>
|
|
|
|
RCSwitch mySwitch = RCSwitch();
|
|
|
|
void setup() {
|
|
|
|
Serial.begin(9600);
|
|
|
|
// Transmitter is connected to Arduino Pin #10
|
|
mySwitch.enableTransmit(10);
|
|
|
|
}
|
|
|
|
void loop() {
|
|
|
|
/* using binary code */
|
|
mySwitch.send("01100101 01111000 01101010");
|
|
delay(100);
|
|
}
|