Created
May 6, 2017 02:20
-
-
Save anonymous/c057c6f5718c1d3b2a8dc61991bc98ea to your computer and use it in GitHub Desktop.
Arduino lendo pino PWD
This file contains hidden or 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
byte PWM_PIN = 11; | |
int pwm_value; | |
void setup() { | |
pinMode(PWM_PIN, INPUT); | |
Serial.begin(115200); | |
} | |
void loop() { | |
pwm_value = pulseIn(PWM_PIN, HIGH); | |
Serial.println(pwm_value); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment