read state of digital pin ()

read state of digital pin

Read state of digital pin () block is a boolean block available in evive block, Arduino Uno block, Arduino Mega block, and Arduino Nano block. The block reads the state of the digital pin on evive (“High” or “Low”). If the state of the pin is “High”, it returns True, else False.

  1. Available pins in evive: 26 digital pins available for the user (2-27)
  2. Available pins in Arduino Mega: 52 digital pins available for the user (2-53)
  3. Available pins in Arduino Uno: 12 digital pins available for the user (2-13)
  4. Available pins in Arduino Nano: 12 digital pins available for the user (2-13)

You can choose these pins from the drop-down menu.

evive Notes Icon
Note: This block is available in both Upload mode and Stage mode.

Example

  1. Displaying the state of the tactile switch in stage mode.
    read digital state example
  2. Changing the state of  LED 13 using digital pin 2.
    read digital state example 2

Content is available under CC BY-SA 4.0 unless otherwise noted.

Related Tutorials, Projects & Documentation

Digital Input/Output Pins

Introduction Under the Magic Lid of evive, there are 28 Digital 5V Input and Output (I/O) pins. Digital I/O stands for Digital Input and Output.…
Plant-monitoring-system-2000-x-800.jpg

Plant Monitoring System

This project demonstrates how to track parameters like moisture of the soil, sunlight, humidity, and temperature of the plant environment and display it on evive display.

All articles loaded
No more articles to load
PictoBlox Supported Boards
Extensions
Close Menu
×

Cart

Registrations for Codeavour 2019 are OPEN!
Participate in this unique coding contest and stand a chance to win exciting prizes!
x