Demo entry 6738618

ardu

   

Submitted by anonymous on May 04, 2018 at 14:09
Language: Arduino. Code size: 323 Bytes.

void fstart () { //Routine di start
    if(start==true){ start = false; }
    else{ tempo1 = micros(); start = true; }
    }
    
void fstop () { //Routine di stop
    if (start == false){ }
    else { tempo2 = micros(); start = false;
           durata = (tempo2-tempo1); Serial.println(durata);
         }
    }

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).