Quantcast
Channel: fritzing forum - Latest topics
Viewing all articles
Browse latest Browse all 5429

I R Hex codes won't print on monitor

$
0
0

@zneb wrote:

I have tried every example I can find ,but they all load properly .I get no print out with button push. Using ELEGOO uno R3 and this is the last sketch I tried.

#include <IRremote.h>
#include <IRremoteInt.h>

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

void setup()
{
  Serial.begin(9600);
  irrecv.enableIRIn(); // Start the receiver
}

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

Posts: 6

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 5429

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>