Created
August 18, 2021 08:28
-
-
Save ecehan-civril/79b1f80b4c05e137a33ecac41a78c354 to your computer and use it in GitHub Desktop.
3-kablolu-fan
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int pin = 7; | |
unsigned long duration; | |
void setup() { | |
Serial.begin(9600); | |
pinMode(pin, INPUT); | |
} | |
void loop() | |
{ | |
duration = pulseIn(pin, HIGH); | |
Serial.print(duration); | |
delay(1); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment