Table of Contents

read state of digital pin ()

Description

The block is a boolean block available in evive board. 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)

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

Example

There are no examples documented for this article.