New user to Arduino IDE here and I was just wondering if there is a way to access the Vin pin when writing code in the IDE. For context my project uses the A0 pin on my Uno to display the battery percentage on an LCD. I was hoping to change the A0 pin to the Vin pin but I do not know how to define the Vin pin in the code.
For the A0 pin I just use : int battPin = A0;
Is there a way to do this with Vin? I tried to look this up but all I could get was information about how and why people use the Vin pin.
Thank you in advance for any information you can provide.