yes of course!! ![]()
...... (here is loop code)
void execute (int m) {
byte n;
digitalWrite (relay, HIGH);
for (n = 0; n <(m); n ++)
{
delay (1000);
}
digitalWrite (relay, LOW);
}
(this would be the function to modify)
When it arrives at the function CurrentMillis = 11000 aprox, and I wanted the LED turn on with the value of int m (milliseconds)