肥皂起泡泡
#include #include int RECV_PIN = 11; //红外线接收器OUTPUT端接在pin 11IRrecv irrecv(RECV_PIN); // 定义IRrecv 对象来接收红外线信号int Buzzer=9; void setup(){Serial.begin(9600); pinMode(Buzzer,OUTPUT);irrecv.enableIRIn(); //启动红外解码 delay(1000);} void loop(){tone(Buzzer,500);}