#define k1 11
#define k2 10
#define m1 9
#define m2 8
int i, t = 80;
void setup()
{
pinMode(m2, OUTPUT);
pinMode(m1, OUTPUT);
pinMode(k2, OUTPUT);
pinMode(k1, OUTPUT);
}
void loop()
{
for (i = 0; i < 4; i++)
{
digitalWrite(k1, HIGH); digitalWrite(k2, HIGH); delay(t);
digitalWrite(k1, LOW); digitalWrite(k2, LOW); delay(t);
}
//-----------------------------
for (i = 0; i < 4; i++)
{
digitalWrite(m1, HIGH); digitalWrite(m2, HIGH); delay(t);
digitalWrite(m1, LOW); digitalWrite(m2, LOW); delay(t);
}
}
#define k2 10
#define m1 9
#define m2 8
int i, t = 80;
void setup()
{
pinMode(m2, OUTPUT);
pinMode(m1, OUTPUT);
pinMode(k2, OUTPUT);
pinMode(k1, OUTPUT);
}
void loop()
{
for (i = 0; i < 4; i++)
{
digitalWrite(k1, HIGH); digitalWrite(k2, HIGH); delay(t);
digitalWrite(k1, LOW); digitalWrite(k2, LOW); delay(t);
}
//-----------------------------
for (i = 0; i < 4; i++)
{
digitalWrite(m1, HIGH); digitalWrite(m2, HIGH); delay(t);
digitalWrite(m1, LOW); digitalWrite(m2, LOW); delay(t);
}
}