Using analog pins as digital outputs/inputs on Arduino Due

For every other Arduino board, there's a lot of information online about how to use the analog pins as digital pins, by simply referring to them (i.e. for the Uno) as D14-D19. But I haven't been able to find information about this for the Due.

Is it possible to use the Due's analog pins as digital pins, similar to the other Arduino boards?

Yes. Although I've never actually tried it for myself.

One critical difference with the Due is not all pins have the same output current. Some are quite limited. You can't run a 20mA LED on half of them. It's worth checking out the datasheet to look for this.

MorganS:
One critical difference with the Due is not all pins have the same output current. Some are quite limited. You can't run a 20mA LED on half of them. It's worth checking out the datasheet to look for this.

You can't run a 20mA LED on ANY of them...... See Rob Gray's excellent DUE diagram for at a glance info on the DUE pin capabilities. Due pinout diagram - Arduino Due - Arduino Forum

Regards,

Graham

ghlawrence2000:
You can't run a 20mA LED on ANY of them...... See Rob Gray's excellent DUE diagram for at a glance info on the DUE pin capabilities. Due pinout diagram - Arduino Due - Arduino Forum

Thanks. It looks like that diagram has my answer (unless I'm reading it wrong), since it labels the analog pins as D54 - D69. It's interesting too that all of the analog pins seem to be the lower current type.

I'll test it out sometime, and report back if I find anything anomalous.