Kondo KRS ICS Servos icon Kondo KRS ICS Servos Control Kondo KRS ICS2/3.5 servos via EZ-B UART; experimental, untested. Supports chaining, virtual servo ports, Release() and Servo() commands. 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.