when () at () active

Description

The block activates the sprite under this hat block when the sensor connected to the selected pin becomes HIGH (or 3.3V). The block is used for digital sensors like PIR Sensor, Flame Sensor, or the IR Sensor.

There are lots of pins to which the sensor can be connected:

  1. Digital Pin: D1, D2 or D3
  2. Analog Pins: A1 and A2

The pin can be selected from the dropdown.

Example

There are no examples documented for this article.
Table of Contents