Output set Type fix (#487)
* properly send outputsettype info * fix simulator * bump pxt * typo in docs
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user