Arduino remote

This was a complete failure and I’m not sure why, at first I thought it was because I hadn’t entered in the correct ports for the code but it still didn’t work after I made that correctio :(. It kept showing me this instead of hexadecimal numbers when I pressed a button on the remote.

“The function decode(&results)) is deprecated and may not work as expected! Just use decode() – without any parameter.”

#include <IRremote.h>
 const int RECV_PIN = 7; 
 IRrecv irrecv(RECV_PIN);
 decode_results results; 

void setup(){
 Serial.begin(9600); 
 irrecv.enableIRIn(); 
 irrecv.blink13(true); } 

void loop(){ 
if (irrecv.decode(&results)){ Serial.println(results.value, HEX); irrecv.resume(); 
 } 
}

it has come to my attention that past me did not take any pictures of the circuit for some reason :// this is truly disastrous

Leave a Reply

Your email address will not be published. Required fields are marked *