Analog and digital pins


I wan to confirm if i understood correctly, pins A0-A5 can be used as analog or digital pins?

do i have to do something at hardware or/and software level to use any of that pins as digital?

Yes both and you do not have to do anything special

Here ya go:

		private InputPort analog1;
		private OutputPort analog2;

		public static void Main()
			analog1 = new InputPort((Cpu.Pin)FEZ_Pin.Digital.An0, false, Port.ResistorMode.PullDown);
			analog2 = new OutputPort((Cpu.Pin)FEZ_Pin.Digital.An1, false);