Hi Mike,
Thanks for your reply, Unfortunatley im still completely learning how to write in this format. Im so used to writing PLC ladder logic its taking some getting my head round!!
Here is the basic LED Blink code. COuld you show me how you would alter the delay parts to the milli parts:
int value = 0; // variable to keep the actual value
int ledpin = 9; // light connected to digital pin 9
void setup()
{
// nothing for setup
}
void loop()
{
for(value = 0 ; value <= 255; value+=5) // fade in (from min to max)
{
analogWrite(ledpin, value); // sets the value (range from 0 to 255)
delay(30); // time delay between each pwm fade in pulse
}
for(value = 255; value >=0; value-=5) // fade out (from max to min)
{
analogWrite(ledpin, value);
delay(30); // time delay between each pwm fade out pulse
}
}
Sorry for being such a newb!!!!
:![]()