Pin manipulation in the Arduino Due

HI!

I’m trying to directly manipulate the I/O pins in my Arduino Due. To do so I tried to use

#include <avr/io.h>

but I get an error message saying

fatal error: avr/io.h: No such file or directory.

I’ve looked in \hardware\tools\avr\avr\include\avr and the io.h file is there. Is this path somehow not being searched when libraries are loaded?

Thanks!

Duo? Which two would that be? UNO, DUE, Three!

The Due is a SAM chip not an avr the files are therefore in the sam sub dir's.

Mark

Thanks! So does that mean I should be looking in the \hardware\arduino\sam\system\libsam\include folder? I found a file called pio.h, is that the right one? And how should I include it?

Yes think so, but there is a section of the forum jus for the due look there!

Mark

Thanks Mark, will do!