About 71 results
Open links in new tab
  1. digitalRead() | Arduino Documentation

    Apr 23, 2025 · The analog input pins can be used as digital pins, referred to as A0, A1, etc. The exception is the Arduino Nano, Arduino Pro Mini, and Arduino Mini’s A6 and A7 pins, which can only …

  2. Digital Pins | Arduino Documentation

    Oct 10, 2025 · This means that it takes very little current to move the input pin from one state to another, and can make the pins useful for such tasks as implementing a capacitive touch sensor, reading an …

  3. Digital Read Serial | Arduino Documentation

    Oct 2, 2024 · If you disconnect the digital i/o pin from everything, its reading may change erratically. This is because the input is "floating" - that is, it doesn't have a solid connection to voltage or ground, and …

  4. Digital I/O | Arduino Documentation

    Dec 18, 2024 · In this guide, we have looked at different ways of interacting with digital pins on an Arduino, using MicroPython: How to use digital outputs (turning on/off an LED)

  5. Analog Input Pins | Arduino Documentation

    Jan 25, 2022 · While the main function of the analog pins for most Arduino users is to read analog sensors, the analog pins also have all the functionality of general purpose input/output (GPIO) pins …

  6. How does digitalRead () determine if pin is HIGH or LOW?

    Jun 22, 2012 · Do you mean that you have an external device outputting 12V as HIGH and 0.35V as LOW, and you want to read that with a digital pin? Arduino treats voltages 3V to Vcc as HIGH.

  7. How to read the state of an output pin - Arduino Forum

    Apr 23, 2012 · Looking at the code the digitalRead () function just does a read of the appropriate bit in the appropriate PINx register without modifying anything, so it should work.

  8. digitalRead () return value, please advise variable type - Arduino Forum

    Jan 10, 2021 · You have assumed that digitalRead () is required to return a non zero value when a pin is high. Even if you looked at the code for a specific platform to see that it does, the API documentation …

  9. analogRead() | Arduino Documentation

    May 9, 2025 · Description Reads the value from a specified analog input pin. An Arduino UNO, for example, contains a multichannel, 10-bit analog to digital converter (ADC). This means that it will …

  10. Using analog pins with digitalRead - Arduino Forum

    Oct 4, 2011 · Can anyone tell me how I can use the analog pins for inputs using the digitalRead and digitalWrite functions. I would like to reassign my buttons to them so I can use an SD card shield that …