hwthinker icon

tes Remote

hwthinker | PRO | 11/14/21 04:20:46 AM UTC (Edited) | 0 ⭐ | 894 👁️ | Never ⏰ | []
Arduino |

530 B

|

None

|

0 👍

/

0 👎

// 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
    }
}
 
 
 

Comments