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.

Related Tutorials, Projects & Documentation
Smartphone Controlled Plant Watering 600px

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.

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
Close Menu
×

Cart

No mo #FOMO on the coolest project-making app out there!

Check it out RIGHT NOW on Product Hunt!
Launch-Pop-Up
Dabble is trending on Product Hunt!
Check it out and let us know what your favorite feature is. 😉
x