I have a chinese clone of arduino nano and cannot control digital outputs at all. But sometimes it works, and i cannot notice what actions lead to this. So what i am doing. I load this sketch to the board, it is simple like 2x2:
After loading the sketch i take multimeter and measure voltage on pin D13. It shows that there is LOW level constantly. I see the same behaviour on all other digital pins (sure after changing PIN define in sketch and placing probe on another pin) - it simply are not switched.
Have anyone faced with similar problem? What is the cause of this?
damn, i thought that pins are numbered from top left down and from bot right to top and goes sequantially, but pins aren't actually pins numbers on the board, i see it, thanks, guys!
The picture on the official arduino website also doesn't provide the information about the pins numbers. So unfortunately it is useless for programmers.
Only this pic shows the numbers of the pins, which can be used in sketches:
The official pinout diagram does show the Arduino pin numbers. They are in the orange striped labels. They added a "D" prefix to indicate that they are digital pins, but you should use the pin number alone in your Arduino sketch code.
Because this logic will be broken if one try to apply it to the analogue i/o. For example, according to your explanation A1 is pin 1, the same as D1. But it is wrong.