mirror of
https://github.com/rodneyosodo/arduino-congenial-giggle.git
synced 2026-08-07 07:14:45 +00:00
Example of infrared to send data
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
#include <IRremote.h>
|
||||
IRsend irsend;
|
||||
|
||||
void setup()
|
||||
{
|
||||
Serial.begin(9600);
|
||||
}
|
||||
|
||||
void loop()
|
||||
{
|
||||
for (int i = 0; i < 50; i++) {
|
||||
irsend.sendSony(0xa90, 12); // Sony TV power code
|
||||
delay(40);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user