Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // library https://github.com/Arduino-IRremote/Arduino-IRremote
- // this code is modified by hwthinker
- #include <IRremote.h>
- int RECV_PIN = 6; //mendifiniskan pin IR receiver
- IRrecv irrecv(RECV_PIN);
- decode_results results;
- void setup ()
- {
- Serial.begin(9600);
- irrecv.enableIRIn(); // Start the receiver
- for (uint8_t i = 9; i < 14; i++)
- digitalWrite(i, LOW);
- }
- void loop()
- {
- if (irrecv.decode(&results))
- {
- Serial.println(results.value, HEX);
- irrecv.resume(); // Receive the next value
- }
- }
Add Comment
Please, Sign In to add comment