I'm new to the atmel ARM series MCU's and I am trying to create a simple program so that when I press the user button,
the led on de board lights up.
(I am using the SAM4s Xplained pro development board)
I want to do this without the ASF functions, but with the GPIO registers like
PIO_OSR, PIO_ODSR, PIO_PDSR etc.
Can anyone who has experience with this give me some clarification on how to do this?
The LED is working properly now so i can turn it on and off,
but I'm still having trouble with the button (so the if statement is not correct)
anyone knows you to read out the button via the PDSR register?