Configure SAMD21 gpio pins from Analog to Digital

I need additional Digital GPIO pins on MKR WAN 1310. I believe that the boot loader (for arduino) only sets up 8 and I need the usual 14. Is it possible to access the SAMD21 after boot and reconfigure for the additional digital gpio? If so, is there an example? Thanks in advance.

You mean this?


(from sales page)

Did you try just using them as is?
digitalWrite(A0,HIGH), etc.?

bootloader doesn't configure the pins.
all pins have 'digital' function

1 Like

Thanks. I will be sure that my setup doesn’t change them.

Steve Letter KO4ZKR

The tech specs say it only has 8 digital gpio, so that confused me.

Their text is confusing. For the Uno and Mega, Arduino counts all the digital-capable pins, not just the digital-only pins.