(made this a stub)
(Fixed)
Line 3: Line 3:
 
{{block
 
{{block
 
|name = Tilt angle ()
 
|name = Tilt angle ()
|image = File:Tilt angle ().PNG
+
|image = tilt angle [ v]::microbit
 
|category =[[micro:bit]]
 
|category =[[micro:bit]]
 
|type = [[Reporter Blocks|Reporter]]
 
|type = [[Reporter Blocks|Reporter]]
 +
|sb=yes
 
}}
 
}}
  
 
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.
 
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 ==
+
== Example Uses ==
[[File:Tilt angle () example use.PNG]]
+
The block reports the angle which the micro:bit is tilted at.
 +
 
 +
Some example uses are:
 +
*Displaying the tilt angle
 +
<scratchblocks>
 +
forever
 +
display text (tilt angle [left v]::microbit)::microbit
 +
</scratchblocks>
 
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.
  
 
[[Category:Micro:bit]]
 
[[Category:Micro:bit]]

Revision as of 03:25, 7 February 2020

Document stub.png This article is a stub. It may be incomplete, unfinished, or have missing parts/sections. If the article can be expanded, please do so! There may be suggestions on its talk page. (January 2020)
Tilt angle ()
tilt angle [ v]::microbit
Category micro:bit
Type Reporter

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

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

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

Cookies help us deliver our services. By using our services, you agree to our use of cookies.