Delete comment from: Ken Shirriff's blog
@Lausus
this is my code i talked about...
if i increase the value LEDHELLIGKEIT there is only one short blink when it passes 255.
#include
int RECV_PIN = 11;
int LED = 3;
int LEDHELLIGKEIT = 0;
IRrecv irrecv(RECV_PIN);
decode_results results;
void setup()
{
pinMode(LED,OUTPUT);
digitalWrite(LED,HIGH);
Serial.begin(9600);
irrecv.enableIRIn(); // Start the receiver
}
void loop() {
if (irrecv.decode(&results)) {
Serial.println(results.value);
if(results.value == 22058)
{
Serial.println("UP!");
LEDHELLIGKEIT =LEDHELLIGKEIT +1;
analogWrite(LED,LEDHELLIGKEIT);
}
if(results.value == 13866)
{
Serial.println("DOWN!");
LEDHELLIGKEIT =LEDHELLIGKEIT -1;
analogWrite(LED,LEDHELLIGKEIT);
}
Serial.println(LEDHELLIGKEIT);
irrecv.resume(); // Receive the next value
}
}
what do u think?
Apr 16, 2012, 5:04:29 PM
Posted to A Multi-Protocol Infrared Remote Library for the Arduino

