Inverts the state of an output pin i.e if the pin is HIGH it turns LOW.
' Turn device On and Off Example (TOGGLE) ' Toggle.txt ' Kic8 ' Our example assumes your device is connected to Out2 SYMBOL MyDevice = 2 DO ' Turn the device On/Off Toggle MyDevice ' Pause for a short while (1 second) - to see changes.. Pause 1000 LOOP
A Virtual LED is created for TOGGLE Commands:
The Pin Layout Window updates after TOGGLE is executed: