-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
board: arduino-mega2560: updated arduino pin mapping #5194
Conversation
I think here there is a misunderstanding about this "pin mapping". This file was aiming to provide the GPIO regarding its number on the CPU, not its number on the Arduino layout. Maybe the name @haukepetersen you told me something about this file that you wanted to change, is it? Tested and works. |
@@ -31,93 +32,78 @@ extern "C" { | |||
* | |||
* @note Some pins (e.g. 10, 11) are not mapped, as they are not usable as |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you change this since the pins are actually used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will do
nice catch! ACK once comments are addressed |
Comment has been addressed. |
You cannot ACK your own PR. ;-) The general procedure is that a maintainer reviews your PR and gives an ACK once he/she agrees that it is ready to be merged into master. |
Also, please prefix the commit message with something like |
Sorry...learning by doing ;-) |
No problem. We're here to help. :) |
@@ -16,7 +16,7 @@ | |||
* You can use the defines in this file for simplified interaction with the | |||
* Arduino specific pin numbers. | |||
* | |||
* @author Hauke Petersen <hauke.petersen@fu-berlin.de> | |||
* @author Daniel Nordahl <nordahl.d@gmail.com> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We usually just add new authors, unless you basically replace the whole file. ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My bad
Ok, anyways it was in the name. Thanks! |
4c0b872
to
cf2b026
Compare
@haukepetersen: Ok, done. |
sorry for being so picky - could you re-add the |
In general the commit message should be cleaned up: prefix missing, summary contains typo, description part is not very descriptive (my recommendation either remove it or describe you motivation for the change and how you changed it). |
(you can do that with |
cf2b026
to
2fba3bd
Compare
Ok, I am sorry for not doing this right. But I am learning a lot so hopefully it will go a lot smoother next time around =) |
No need to apologize :-) We all started at one point or another. |
@@ -29,95 +30,95 @@ extern "C" { | |||
/** | |||
* @brief Mapping of MCU pins to Arduino pins | |||
* | |||
* @note Some pins (e.g. 10, 11) are not mapped, as they are not usable as | |||
* GPIO, as they are pins for voltage supply, reset, etc. | |||
* @note ISCP pins are not mapped. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove trailing whitespaces.
2fba3bd
to
57c2e6b
Compare
nitpicky: You added the prefix as |
fixed |
The MCU pins was not correctly mapped to Arduino pins. Updated the mapping so that MCU pins respons to the correct Arduino pins.
Murdock + comments addressed + ACK = GO! |
awesome, thanks for the fix and your patience :-) |
I guess the patience thing goes both ways ;-) |
Congrats and thanks for the contribution! |
The Arduino pins was not correctly mapped for the Arduino mega 2560, so i remapped them using this as reference. Pin are tested.