Migrate docs from the other repo

This commit is contained in:
Michal Moskal
2016-03-25 16:47:20 -07:00
parent 38d2cf06d2
commit a08eb53f92
895 changed files with 36888 additions and 0 deletions

View File

@ -0,0 +1,46 @@
# micro:bit orientation
A #microbit library that exposes accelerometer events.
A simple library that exposes events to detect
* detect that the screen is facing up and the board is horizontal
```
onScreenUp(() => {
micro_bit.showString("screen up", 100)
})
```
* detect that the screen is facing down and the board is horizontal
```
onScreenDown(() => {
micro_bit.showString("screen down", 100)
})
```
* detect when the logo is up and the board is vertical
```
onLogoUp(() => {
micro_bit.showString("logo up", 100)
})
```
* detect when the logo is down and the board is vertical
```
onLogoDown(() => {
micro_bit.showString("r", 100)
})
```
* detect that the device is shaken
```
onShake(() => {
micro_bit.showString("shake", 100)
})
```