pxt-ev3/docs/reference/brick/show-ports.md
Peli de Halleux 7581b5af9e
Drift support (#926)
* upgrading drift support

* updated showports

* typos
2019-09-29 09:49:13 -07:00

583 B

show Ports

Show the status of everything connected to the ports.

brick.showPorts()

You can find out what's connected to the ports on the brick and show its status. The status information from each sensor or motor connected is displayed on the screen.

Example

Show the status of the ports on the brick. Resets all motors when ENTER is pressed.

brick.showPorts()
brick.buttonEnter.onEvent(ButtonEvent.Pressed, function () {
    motors.resetAll()
})

See also

show string, show value