Hi im new to arduino and i was a bit confused with how the pins are used on the arduino IDE. For example below is the mapping of the arduino nano every:
This out: analogRead() - Arduino Reference it gives you code etc. I have read it is not needed but I do it anyway, it never hurts and why waste the time trying to find out. that post was not correct. Over time things do change.
Please ignore the numbers in the parentheses. Those only indicate the physical pin order as you go around the edge of the board in a counterclockwise direction. They are never used in code and we never ever refer to the pins by these numbers when talking about them here on the forum or in the documentation. They only serve to make the diagram unnecessarily confusing.
The other thing that is potentially confusing is that when you see a pin name with a D prefix (for example, D2), you should refer to it with just the number alone in your code, for example:
pinState = digitalRead(2);
The "D" is only an indicator that this is a digital pin.