LOW
Syntax
LOW expression
Description
LOW will set the pin corresponding to expression to a low value (0V) and then set it to an output.
HIGH and LOW have been added for PBASIC compatablity, OUT(x)=0 will be faster.
Example
DIRS = $00FF
' set pins 0 to 7 to output
OUTS
= 255 ' and
then set them hign or to 3.3 V
FOR I=0 TO 7
PAUSE
(1000)
LOW I
' set each pin LOW one after the other every second
NEXT I
Differences from other BASICs
- no equivalent in Visual BASIC
- none from PBASIC