Toggle outs
Archiver
Posts: 46,084
Sid-
This won't do what I think you intend. TOGGLE requires a pin number
as an argument. TOGGLE OUTS will not toggle all 16 pins, it will
only toggle one, the one specified by the current value of the
variable OUTS.
To toggle all at once, try: OUTS = ~OUTS
Regards,
Steve
On 20 Jul 04 at 18:18, Newzed@a... wrote:
> I think this is right just want to check. I want to toggle all 16
> I/O ports to check a BS2. Will this do it
>
> outs = 1
>
> do
> toggle outs
> pause 200
> loop
>
> Sid
This won't do what I think you intend. TOGGLE requires a pin number
as an argument. TOGGLE OUTS will not toggle all 16 pins, it will
only toggle one, the one specified by the current value of the
variable OUTS.
To toggle all at once, try: OUTS = ~OUTS
Regards,
Steve
On 20 Jul 04 at 18:18, Newzed@a... wrote:
> I think this is right just want to check. I want to toggle all 16
> I/O ports to check a BS2. Will this do it
>
> outs = 1
>
> do
> toggle outs
> pause 200
> loop
>
> Sid