equivalent to OUTL or similar

in the wiring syntax/libraries i'm curious if there is a functional equivalent to parallax's basic syntax for OUTL or OUTH in which you can pass a mask to an set of pins at once, e.g. :

OUTL = %111000111

whereby that sends on, on, on, off, off, off, on, on, on to pins 0-7.

would be even cooler to simply say something like

OUT[2-9] = %111000111

or something similar.

is there anything like that?

The AVR I/Os are in groups, known as ports A, B, C, D. You can access them as PINA, PINB, etc.

These are grouped by Atmel, and the numbers/groupings do not match Arduino pins. You can see the mapping here. For example, Arduino pin 0 is port D bit 0 (shown as PD0 on the diagram).

-j

Gotcha.

i think i'll probably just write a general class for pins that has a write method that takes a couple arrays. that way i can also use it on the wiring hardware as well. e.g.:

Pins.Write({1,2,3,5}, {High, High, Low, Low});

-b