I asked this question before, and I am ashamed to ask this question again, but I have encountered the"Error Compiling" message when I try to compile my program. When I asked this question last time, I was asked to add
// WCharacter.h prototypes
inline boolean isAlphaNumeric(int c) __attribute__((always_inline));
to the program, or to put an other deceleration in the front. But this time these two methods don't work. Can anyone help me? A million thanks.
P.S. This is the code I am trying to compile:
#include "pitches.h"
#include <IRremote.h>
int RECV_PIN = 8;
int ledPin = 7;
IRrecv irrecv(RECV_PIN);
decode_results results;
void setup()
{
Serial.begin(9600);
irrecv.enableIRIn(); // Start the receiver
pinMode(ledPin, OUTPUT);
}
void loop() {
if (irrecv.decode(&results)) {
Serial.println(results.value, DEC);
}
if(results.value == 150996993){
tone(6, NOTE_C4, 4);
}
if(results.value == 151029889){
tone(6, NOTE_D4, 4);
}
if(results.value == 151013441){
tone(6, NOTE_E4, 4);
}
irrecv.resume(); // Receive the next value
}