- Notifications
You must be signed in to change notification settings - Fork1k
Clean variants files#167
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
- Common definitions are moved to pins_arduino_var.h. They could be redefined in variant.h if needed.- Removed *UART_EMUL* definitions as it need to be reworked in SoftwareSerial library.- Pin number over D15 replaced by pin name (more relevant)- Fixed some typosSigned-off-by: Frederic.Pillon <frederic.pillon@st.com>
Adminius commentedDec 5, 2017 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
#ifndef is a good idea! ;) |
fpistm commentedDec 5, 2017 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
by default, for board with Arduino header, SCL and SDA are on D14/D15 , if the board you add do not have it, only define it properly in the variant.h: Note: why post in this PR instead of the#165? |
ghost left a comment
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.
Could we move also LED_BUILTIN and USER_BTN?
fpistm commentedDec 5, 2017
I'm wondered the same question, using those default values: but some boards do not have LED or button, so I preferred to not define one by default. |
ghost commentedDec 5, 2017
Yes, I am. |
fpistm commentedDec 5, 2017
With this PR, variant is now cleaned and include only specific pin mapping |
Clean variants files
Uh oh!
There was an error while loading.Please reload this page.
They could be redefined in variant.h if needed.