If the pin has been configured as an OUTPUT with pinMode(), its voltage will be set to the corresponding value: 5V (or 3.3V on 3.3V boards) for HIGH, 0V (ground) for LOW.If the pin is configured as an INPUT, writing a HIGH value with digitalWrite() will enable an internal 20K pullup resistor (see the tutorial on digital pins).
Hi when I code digitalWrite(inputPin, HIGH) is this just assigning a value of 1 to my inputPin or is it actually applying a voltage near 5V to that pin? Does anyone know where I can find a diagram of this internal resistor? Thanks
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16