Do we call pinMode for analog ports?

Hi Everyone

I am a little confused as to whether I have to call pinMode for the analog pins or not. I see it being called for the analog inputs in the example python files, for example:
sound sensor

If I am supposed to call pinMode for analog as well as digital, how does the grovepi know the difference between:

pinMode(2, “INPUT”) # when I mean the A2 pin

and

pinMode(2, “INPUT”) # when I mean the D2 pin.

Thanks in advance for any clarity on this for me.

Hey,
You don;t have to call pinMode() for analog inputs. Sorry for the error. We’ll update it ASAP.

-Karan