Page 103 - PROYECTO INTEGRADOR
P. 103
pinMode(4, OUTPUT);
pinMode(5, OUTPUT);
pinMode(6, OUTPUT);
pinMode(7, OUTPUT);
pinMode(8, OUTPUT);
pinMode(9, OUTPUT);
pinMode(12,INPUT);
}
void loop()
{
d=digitalRead(12);
if (d==HIGH)
{
analogWrite(7,254);
analogWrite(8,0);
analogWrite(9,150);
analogWrite(6,64);
analogWrite(5,90);
analogWrite(4,30);
analogWrite(3,34);
analogWrite(2,20);
analogWrite(1,130);