basic question.
running this modified example i get something that looks like a byte warp.
does PWM when going over 255 or below 0 warp?
and if so, where can i read about it.
// Fading LED
// by BARRAGAN <http://people.interaction-ivrea.it/h.barragan>
int value = 0; // variable to keep the actual value
int ledpin = 11; // light connected to digital pin 9
void setup()
{
// nothing for setup
}
void loop()
{
for(value = -30 ; value <= 355; value+=5) // fade in (from min to max)
{
analogWrite(ledpin, value); // sets the value (range from 0 to 255)
delay(30); // waits for 30 milli seconds to see the dimming effect
}
delay(3000);
for(value = 355; value >=30; value-=5) // fade out (from max to min)
{
analogWrite(ledpin, value);
delay(30);
}
}