pxt-ev3/docs/reference/brick/show-ports.md
2018-03-29 16:43:17 -07:00

612 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 when the enter button is pressed.

brick.showString("Press ENTER for port status", 1)
brick.buttonEnter.onEvent(ButtonEvent.Pressed, function () {
    brick.showPorts()
})

See also

show string, show value