slide switch () is in the state ()?

slide switch is in state

Slide switch () is in the state ()? block is an evive block and a boolean block

evive has two slide switches both of which have 3 states :

  1. Slide up (state 1)
  2. Slide down (state 2)
  3. Middle (OFF)

evive Slide Switch

The block check takes the slide switch number (1 or 2) and state to be checked for (Up or Down) as input and returns “True” if the slide switch is in the specified state and “False” if it is not in the specified state.

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

Example

  1. Sprite moves forward if the slide switch 1 is Up, moves backward if the switch is Down else the sprite does not move.
    slide switch example
  2. In this script, if the slide switch 2 is slided up (state 1), the LED on evive (connected to pin 13), glows.
    slide switch example 2
This helped
This didn't help

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

Related Tutorials, Projects & Documentation

Interfacing Relay with evive

This tutorial explains interfacing of a relay module with evive for controlling high power circuits like AC bulb with help of evive.

Slide Switch

Introduction There are two inbuilt 3-way slide switches in evive. Slide switch 1 is connected to Arduino pins 40 and 41, both active high. This…

How to use evive’s Slide Switch

This tutorial discusses different types of switches based on their pole and throw, what are slide switches, and a simple Arduino IDE sketch to display the state of evive's slide switch on the TFT screen.
All articles loaded
No more articles to load
PictoBlox Supported Boards
Extensions
Close Menu
×

Cart