Using unused port of Orion board


#1

Hi there,

iam using the Orion Me Board. i tried to use A7 from J8 to use it as digital output.

I tried the following example:

void setup()
{
pinMode(A7, OUTPUT); // sets the digital pin as output
}

void loop()
{
digitalWrite(A7, HIGH); // sets the LED on
}

but i was not able to measure 5V between ground the A7. So what iam doing wrong?


#2

Here’s something I found:

"According to the ATmega328P datasheet, ADC0 through ADC5 are on port C, which is also a regular digital I/O port. However, ADC6 and ADC7 are orphans that can be addressed directly but aren’t part of a digital I/O port. I have no idea why the MCU was designed that way, but that’s the way it is.

So you should be able to use A6 and A7 as analog inputs, but you can’t use them as digital outputs."

Read the full post here:

Can’t use A6 and A7 as output


#3