PWM Slider icon PWM Slider Slider to set EZ-B digital PWM for motor speed or LED brightness; shows duty-cycle, stop button, and board/port selection. Try it →
 

Get

Digital.get(port, [ezbIndex])

Parameters

port Digital port to read from.
ezbIndex (optional) Board index of the EZB to read from.

Returns

True if the specified digital port is 1 (high). False if the digital port is 0 (low).

Description

Reads and returns the digital value from the specified digital port.