I'm kind of new at this. In the sample of my code below on a Digispark Pro where I use 1, 2, and 5 for outputs and they are on physical pins PB1, PB2, and PB5. For the analog input light-sensor, a light dependent resistor and 10k pull down, I use 0 but it shows up on physical pin PA0 which is also called A6 using Digispark Pro Pin-out Diagram V2. I want to use 2 of the PA pins to use with a 4 digit LED display. I am confused when it comes what to call pins to have them do what I want them to do. Is there short reference article I can get to get my brain on the right track? Thank you for the help.
int LIGHTsensor = 0;
int READY_LED = 2;
int RUN_LED = 5;
int MOTOR_SPEED = 1;
val2 = analogRead(LIGHTsensor);