Getting Started with PictoBlox
Important Terms
Courses

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
This helped
This didn't help

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

PictoBlox Supported Boards
Extensions
Close Menu
×
×

Cart

STEMpedia Starter Kit is now available on Indiegogo!
STEMpedia Starter Package is now on Indiegogo!
Get 41% OFF with Super Early Bird discounts!
x