Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //B24DBF40 B24D7B84
- // Meu F4BA2988 liga/Desliga CE3693E6 Source
- #include <IRremote.h>
- long IRcode;
- int numBits = 32;
- char Acao;
- IRsend irsend;
- //----------------------------
- void setup()
- {
- Serial.begin(9600);
- }
- //----------------------------
- void loop()
- {
- if (Serial.available() > 0)
- {
- Acao = Serial.read();
- if (Acao == '1')
- {
- IRcode = 0xB24D7B84;
- Serial.println(Acao);
- }
- if (Acao == '2')
- {
- IRcode = 0xB24DBF40;
- Serial.println(Acao);
- }
- irsend.sendNEC(IRcode, numBits);
- delay(40);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement