-
-
Save nenodias/a3ae1594cd89f81602e94d71ecb7c4a9 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