When Tilted ()
when tilted (any v) :: microbit hat
Category micro:bit
Type Hat
Introduced in 3.0

The when tilted () block is a hat block and a micro:bit block. Its options are "front", "back", "left", "right", and "any". The block activates when the micro:bit is tilted in the specified direction.

Example Uses

  • Triggering an event on the micro:bit

When tilted example use 1.PNG

when tilted (front v) :: microbit hat
move (50) steps