- This topic has 1 reply, 1 voice, and was last updated 3 years, 5 months ago by .
Viewing 1 reply thread
Viewing 1 reply thread
- You must be logged in to reply to this topic.
Home › Forums › The libraries hosted on the site › PCF8574 i2c digital I/O expander › Set pin to INPUT low
Hi, how can I set pin mode to INPUT with low state?
When I use:
pinMode(p0, INPUT); p0 have 3,3V.
When i use:
digitalWrite(p0, LOW); p0 have 3,3V.
So, please share some code for example.
Thank’s.
Hi Grzegorz,
when you use INPUT It expects that the default state is LOW, to set an input pin to low you must add a pull-down resistor on your circuit.
Bye Renzo
More