tactile switch () pressed?

tactile switch pressed

tactile switch () pressed? is an evive block and a boolean block. evive has two tactile switches; this block checks if either of them is pressed. The switch whose state you want to check can be chosen from the drop-down menu on this block. It returns “true” if the switch is pressed and “false” if the switch is not pressed.

evive Tactile Switch Pushbuttons

evive Notes Icon
Note: This block is available in both Upload mode and Stage mode.

Example

  1. Rotating the sprite if the tactile switch 1 is pressed.
    tactile switch example
  2. The example below checks which one of tactile switches 1 or 2 is pressed and changes the screen color using the fill screen with () color block. If no switch is pressed, the screen remains black.
    tactile switch example 2

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

Related Tutorials, Projects & Documentation
evive Tactile Switch Pushbuttons

Tactile Switch

Introduction The two tactile switches are connected to Arduino pins 38 and 39, both active high. This means that the pins are at +5V when…
evive-brain

Interfacing evive with PictoBlox

This tutorial discusses how to interface evive with PictoBlox, the evive palette, the two modes for writing scripts in PictoBlox, and how to upload a script to evive.

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