vielen dank
es kommt leider fehler meldung
/*
IRremote: IRsendRawDemo - demonstrates sending IR codes with sendRaw
An IR LED must be connected to Arduino PWM pin 3.
Version 0.1 July, 2009
Copyright 2009 Ken Shirriff
http://arcfn.com
IRsendRawDemo - added by AnalysIR (via www.AnalysIR.com), 24 August 2015
This example shows how to send a RAW signal using the IRremote library.
The example signal is actually a 32 bit NEC signal.
Remote Control button: LGTV Power On/Off.
Hex Value: 0x20DF10EF, 32 bits
It is more efficient to use the sendNEC function to send NEC signals.
Use of sendRaw here, serves only as an example of using the function.
*/
#include <IRremote.h>
IRsend irsend;
int RECV_PIN = 11; // hier muss dein Pin rein
unsigned long irValue;
IRrecv irrecv(RECV_PIN);
decode_results results;
int khz = 38; // 38kHz carrier frequency for the NEC protocol
unsigned int irSignalan[] = {8900, 4450, 600, 550, 600, 550, 550, 550, 600, 550, 500, 650, 600, 500, 600, 550, 500, 1750, 600, 500, 600, 550, 600, 550, 600, 500, 550, 1700, 600, 1650, 550, 1650, 550, 600, 600, 550, 550, 550, 550, 600, 600, 550, 550, 600, 550, 550, 600, 1600, 600, 1650, 600, 1650, 600, 1600, 600, 1650, 550, 1700, 600, 1600, 600, 1650, 550, 600, 550, 600, 500}; //AnalysIR Batch Export (IRremote) - RAW
unsigned int irSignalaus[] = {8900, 4450, 600, 550, 600, 550, 550, 550, 600, 550, 500, 650, 600, 500, 600, 550, 500, 1750, 600, 500, 600, 550, 550, 600, 600, 500, 600, 1650, 550, 1700, 600, 1600, 550, 600, 600, 1650, 550, 1650, 550, 1700, 600, 1600, 600, 1650, 500, 650, 600, 500, 600, 1650, 550, 600, 600, 500, 550, 600, 600, 550, 600, 550, 500, 1700, 600, 1650, 600, 550, 500};
void setup()
{
Serial.begin(9600);
irrecv.enableIRIn(); // Start the receiver
}
void loop()
{
if (irrecv.decode(&results)) {
Serial.println(results.value, HEX);
irValue = results.value;
switch (irValue) {
case 4450, 4500, 500, 1750, 500, 1700, 500, 1750, 500, 600, 500, 600, 500, 650, 500, 600, 500, 600, 500, 1750, 500, 1700, 500, 1750, 500, 600, 500, 600, 500, 600, 550, 600, 500, 600, 500, 1700, 550, 1700, 500, 1700, 550, 600, 500, 600, 550, 550, 550, 1700, 500, 600, 500, 600, 550, 600, 500, 600, 550, 1650, 550, 1700, 550, 1650, 600, 550, 550, 1650, 550
: // dein empfangener Code 1
Serial.println("Empfängt Code 1 und sendet Code1");
irsend.sendRaw(irSignalan, sizeof(irSignalan) / sizeof(irSignalan[0]), khz); //Note the approach used to automatically calculate the size of the array.
break;
case 87654321: // dein empfangener Code 2
Serial.println("Empfängt Code 2 und sendet Code 2");
irsend.sendRaw(irSignalaus, sizeof(irSignalaus) / sizeof(irSignalaus[0]), khz);
break;
}
irrecv.resume(); // Receive the next value
}
}
Arduino: 1.8.6 Hourly Build 2017/11/13 11:33 (Windows 7), Board: "Arduino/Genuino Uno"
C:\Users\UkrainezR\Documents\Arduino\mein_proekt_von_forum\mein_proekt.ino: In function 'void loop()':
mein_proekt_von_forum:46: error: expected ':' before ',' token
case 4450, 4500, 500, 1750, 500, 1700, 500, 1750, 500, 600, 500, 600, 500, 650, 500, 600, 500, 600, 500, 1750, 500, 1700, 500, 1750, 500, 600, 500, 600, 500, 600, 550, 600, 500, 600, 500, 1700, 550, 1700, 500, 1700, 550, 600, 500, 600, 550, 550, 550, 1700, 500, 600, 500, 600, 550, 600, 500, 600, 550, 1650, 550, 1700, 550, 1650, 600, 550, 550, 1650, 550
^
mein_proekt:46: error: expected primary-expression before ',' token
exit status 1
expected ':' before ',' token