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.…
IR sensor Tutorial

What is an IR Sensor

Learn all about an IR sensor, from what is an IR sensor, how to interface it with evive using PictoBlox, and the projects we can make using it.

How to use a Tactile Switch with evive

This tutorial discusses what are switches, types of switches, pull-up and pull-down resistors, and how to control the pin 13 LED on evive using a tactile switch with the help of an Arduino IDE sketch.
All articles loaded
No more articles to load
PictoBlox Supported Boards
Extensions