Introduction

Read digital pin () block is a Robot block and a Boolean block. It 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.

Available  pins in evive:

  • 26 digital pins available for user (2-27)
  • Two tactile switches (Tactile_Swithc_1 & Tactile_Switch_2)
  • Two slide switches (Slide_Switch_1_Dir_1, Slide_Switch_1_Dir_2, Slide_Switch_2_Dir_1 and Slide_Switch_2_Dir_2).

You can choose these pins from the drop down menu.

This block can be used in Arduino Mode as well as in Scratch Mode.

read digital pin ()
read state of digital pin in arduino
Block Type:
Extension:
Example

  • Displaying the state of the tactile switch in Scratch Mode.

• Displaying the state of the tactile switch in Scratch Mode

  • Changing the state of motor 1 LEDs using slide switch 1 of evive.

• Changing the state of motor 1 LEDs using slide switch 1 of evive.

Close Menu
×

Cart