Output set Type fix (#487)

* properly send outputsettype info

* fix simulator

* bump pxt

* typo in docs
This commit is contained in:
Peli de Halleux
2018-04-11 08:48:07 -06:00
committed by GitHub
parent 80989cf4c9
commit 4627328bcd
4 changed files with 26 additions and 17 deletions

View File

@ -18,7 +18,7 @@ The distance value returned is the number of centimeters to the object that the
When the ultrasonic sensor on port 4 detects a near object, display its distance on the screen.
```blocks
sensors.ultrasonic4.onEvent(UltrasonicSensorEvent.ObjecNear, function () {
sensors.ultrasonic4.onEvent(UltrasonicSensorEvent.ObjectNear, function () {
brick.showString("Object detected at:", 1)
brick.showNumber(sensors.ultrasonic4.distance(), 2)
brick.showString("centimeters", 3)