miércoles, 20 de abril de 2016

Contador de pulsos

Contador de pulsos
int i=0,j=0;
void setup() {
 Serial.begin(9600);
 pinMode(6,INPUT);
 pinMode(7,INPUT);
}

void loop() {
 if(digitalRead(6)==true)
 {
  delay(250);
  if(digitalRead(6)==false)
  {
    i++;
   
    Serial.print("\na");
    Serial.print(i);
    delay(25);
   
  }
 }
 if(digitalRead(7)==true)
 {
  delay(250);
  if(digitalRead(7)==false)
  {
    j++;
    Serial.print("b");
    Serial.print(j);
    delay(25);
  }
 }

}

1 comentario:

  1. How to login into the casino in 2021
    Here is how to do this: Step 1. Go to the ventureberg.com/ website. · https://vannienailor4166blog.blogspot.com/ Click on the “Login” link งานออนไลน์ on the right-hand side. · Click on the gri-go.com “Login” button to enter a www.jtmhub.com live chat number. · Enter the

    ResponderBorrar