Name:
toggle
Syntax:

TOGGLE pin,pin,pin...

Pin - is a variable/constant which specifies the i/o pin to use.

Description:

Make pin output and toggle state. On microcontrollers with configurable input/output pins this command also automatically configures the pin as an output.

Applies To:
All
See Also:
Related Create:
Share:
Print:

Flash a LED

Flash an LED every second

Code Example:
main:
	toggle B.7 	; toggle output 7
	pause 1000 	; wait 1 second
	goto main 	; loop back to start
Copy Code Submit an Example

Submit Your Own Code!

You must be logged in to submit code examples. Login now.