DIRS
Syntax
DIRS
Description
DIRS reads or writes the 16 bits controlling the directions of the 16 IO pins. A 1 in one of the 16 bit positions corresponds to that IO pin being driven as an output.
The ARMmite allows control of 24 pins (0..23), with pins 16..23 shared with the AD pins.
Example
'set direction of pins 0 to 7 output, 8 to 15 input
DIRS = $00FF
Differences from other BASICs
- no equivalent in Visual BASIC
- none from PBASIC