m (removed unreleased)
Line 1: Line 1:
 
{{block
 
{{block
 
|name = Tilt angle ()
 
|name = Tilt angle ()
|image = File:Tilt angle ().PNG
+
|image = tilt angle [up v]::extension reporter
 
|category =[[micro:bit]]
 
|category =[[micro:bit]]
 
|type = [[Reporter Blocks|Reporter]]
 
|type = [[Reporter Blocks|Reporter]]
 +
|sb=yes
 
}}
 
}}
 +
The '''tilt angle''' block is a [[Reporter Block]] in the [[Lego BOOST Extension]]. This block will detect the angle of tilt in a certain direction. By default, the block checks for the tilt angle for the front but can be changed to detect the angle of 'back', 'left', or 'right' tilting.
  
The '''tilt angle''' block is a reporter block used as part of the [[micro:bit]] extension. This block will detect the angle of tilt in a certain direction. By default, the block checks for the tilt angle for the front but can be changed to detect the angle of 'back', 'left', or 'right' tilting.
+
== Example Uses ==
 
+
Detecting when the Lego BOOST is tilted in a certain direction
== Example uses ==
+
<scratchblocks>
[[File:Tilt angle () example use.PNG]]
+
when tilted [left v]::extension
When the micro:bit is tilted left, the left tilt angle is displayed on the micro:bit.
+
display (tilt angle [left v]::extension)::extension
 +
</scratchblocks>
  
 
[[Category:Micro:bit]]
 
[[Category:Micro:bit]]

Revision as of 18:16, 3 January 2020

Tilt angle ()
tilt angle [up v]::extension reporter
Category micro:bit
Type Reporter

The tilt angle block is a Reporter Block in the Lego BOOST Extension. This block will detect the angle of tilt in a certain direction. By default, the block checks for the tilt angle for the front but can be changed to detect the angle of 'back', 'left', or 'right' tilting.

Example Uses

Detecting when the Lego BOOST is tilted in a certain direction

when tilted [left v]::extension
display (tilt angle [left v]::extension)::extension
Cookies help us deliver our services. By using our services, you agree to our use of cookies.