您最多能選擇 25 個主題
主題必須以字母或數字為開頭,可包含連接號「-」且最長為 35 個字元。
|
#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);
|
|
}
|