Hello there,in addition to my post "LCD with Arduino Due"(maybe you can have a look at it too) in the Displays forum, I have a question about accessing pins. With atmega32 I could do things like "DDRD |= 1 << PD3;" Are there similar possibilities for the sam3x? I read a little bit in the datasheet about PIO and "thousands" of registers. I came across the PIO_Get(...) function located in the pio.c which says "Returns 1 if one or more PIO of the given Pin instance currently have * a high level; otherwise returns 0. "How can i interprete that?My initiate idea was to put all necessary pins in one union and then accessing it via a Bitmask like:

union UnionOfPins {PORTA:1; PORTB:2; PORTA:3...; int myPort} myUnionOfPins; myUnionOfPins.myPort = 0xff; In other words I want to define my own Port or at least use the already defined Ports.One code example with getting a LED to blink with/(preferably)without using Arduino functions would already help quite a lot I think!