Commit 7e9915b8 authored by Jérôme Abel's avatar Jérôme Abel
Browse files

code arduino

parent 8a9ed226
int E1 = 5;
int M1 = 4;
int value;
int del = 100;
void setup()
{
pinMode(M1, OUTPUT);
digitalWrite(M1,HIGH);
delay(5000);
}
void loop()
{
del= random(10,200);
for(value = 0 ; value <= 255; value+=1)
{
analogWrite(E1, value);
delay(del);
}
delay(random(15000, 40000));
analogWrite(E1, 0);
delay(random(15000, 40000));
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment