2018-02-08 18:35:47 +01:00
|
|
|
# Sensors
|
|
|
|
|
2018-02-10 03:17:12 +01:00
|
|
|
## Touch
|
|
|
|
|
|
|
|
```cards
|
|
|
|
sensors.touch1.onEvent(ButtonEvent.Pressed, function () {})
|
|
|
|
sensors.touch1.pauseUntil(ButtonEvent.Pressed)
|
|
|
|
sensors.touch1.wasPressed()
|
|
|
|
sensors.touch1.isPressed()
|
|
|
|
```
|
|
|
|
|
2018-02-08 18:35:47 +01:00
|
|
|
## Gyro
|
|
|
|
|
|
|
|
```cards
|
|
|
|
sensors.gyro1.angle();
|
|
|
|
sensors.gyro1.rate();
|
|
|
|
sensors.gyro1.reset();
|
|
|
|
```
|