SWITCH ON pin, pin, pin...

SWITCHON pin, pin, pin...

SWITCH OFF pin, pin, pin...

SWITCHOFF pin, pin, pin...

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


Make pin output high / low.

This is a 'pseudo' command designed for use by younger students. It is actually equivalent to 'high' or 'low', i.e. the software outputs a high or low command as appropriate.

Applies To:
See Also:
Related Create:

Flash an LED

Repeatedly turn an LED on output 7 on for 5 seconds then off for 5 seconds

Code Example:
main:	switch on 7 	; switch on output 7
	wait 5 		; wait 5 seconds
	switch off 7 	; switch off output 7
	wait 5		; wait 5 seconds
	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.