Skip to content

ATtiny804 Pin Mapping Discrepancy with megaTinyCore Library #1053

Answered by SpenceKonde
krishank652 asked this question in Q&A
Discussion options

You must be logged in to vote
  1. The physical pin numbers have never been what you use to refer to pins from within the code. Physical pin 0 is Vcc. You can't digitalRead() the Vcc pin, and you certainly can't write it either. Power and ground pins have never been given logical pin numbers.
  2. Physical pin numbers are never used by the code, Only logical pin numbers can be used, however use of unadorned numbers to reference pins (which I think is one of the biggest mistakes of Arduino proper) is not advised in general
  3. As above.

This is all described under the "How to refer to pins" section of the readme (which it sounds as though you have not read), where I describe the preferred method to refer to pins: PIN_Pxn (where x …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by krishank652
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants