You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
289 B
Arduino
20 lines
289 B
Arduino
2 weeks ago
|
#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);
|
||
|
}
|