When Tilted ()
when tilted (any v):: microbit
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 SVG.svg
when tilted (front v):: microbit hat
move (50) steps
Cookies help us deliver our services. By using our services, you agree to our use of cookies.