Set pin to INPUT low

Viewing 1 reply thread
  • Author
    Posts
    • #19132
      Grzegorz

        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.

      • #19136
        Renzo Mischianti
        Keymaster

          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

      Viewing 1 reply thread
      • You must be logged in to reply to this topic.
      Exit mobile version