Read Digital icon Read Digital Read TTL digital input from an ARC I/O port; real-time red/green status for low (0V) or high (+3.3/5V), selectable board/port and read interval. Try it →
 

Toggle

Digital.toggle(port, [ezbIndex])

Parameters

port Digital port to toggle.
ezbIndex (optional) Board index of the EZB to use.

Returns

The value toggled to.

Description

Toggles the digital port. If the digital port was 0 then it is set to 1. If the digital port was 1 then it is set to 0.