- This topic has 1 reply, 1 voice, and was last updated 2 years, 1 month ago by .
- 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
3D Printer 3D printer upgrade ABB Arduino Arduino IDE Arduino SAMD boards Aurora AWS Ciclop 3D scanner CNC Cyclone PCB Factory Cyclone PCB Factory how to build It Display DynamoDB E32 EMail esp01 esp32 esp8266 File System Firmware i2c Library LoRa MicroPython Milling PCB My PCB Networking PCB pinout Power saving Raspberry Pi REST API RF rp2040 SD Card Sensors Sleep and Wake UP SPI STM32 Storage devices Tutorial Web Server Wemos D1 mini WiFi