m
(Automated edit: added {{bad style}} (1 guideline broken) (1 fixed))
Line 14: Line 14:
  
 
Some example uses are:
 
Some example uses are:
*Displaying the tilt angle
+
* Displaying the tilt angle
 
<scratchblocks>
 
<scratchblocks>
 
forever
 
forever
Line 22: Line 22:
 
When the micro:bit is tilted left, the left tilt angle is displayed on the micro:bit.
 
When the micro:bit is tilted left, the left tilt angle is displayed on the micro:bit.
  
 +
 +
{{bad style
 +
|no-spaces-inside-apos
 +
|date=August 2020
 +
}}
 
[[Category:Micro:bit Extension]]
 
[[Category:Micro:bit Extension]]

Revision as of 01:36, 25 August 2020

Tilt Angle ()
(tilt angle ( v) :: microbit)
Category micro:bit
Type Reporter
Introduced in 3.0

The tilt angle () block is a reporter block and a micro:bit block. Its options are "front", "back", "left", and "right". The block returns the micro:bit unit's tilt value in the specified direction.

Example Uses

The block reports the angle which the micro:bit is tilted at.

Some example uses are:

  • Displaying the tilt angle
forever
    display text (tilt angle (left v) :: microbit) :: microbit
end

When the micro:bit is tilted left, the left tilt angle is displayed on the micro:bit.


Document stub.png
This page has bad source code style. If you can improve it according to Scratch Wiki:Style Guide, please do! (August 2020)
Specifically, this page:
Cookies help us deliver our services. By using our services, you agree to our use of cookies.