-
Notifications
You must be signed in to change notification settings - Fork 13.3k
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
add board WiFi Slot #3916
add board WiFi Slot #3916
Conversation
Check #3722. New boards in boards.txt will be integrated through a script. In order to add your board, and what is not clear enough in your files,
|
Hi, thank you.
Sorry, I did not really understand. Do I have to change the boards.txt now? |
Boards.txt will be generated by a script. Boards are entries in an array |
For this board is important that reset method is nodemcu, custom .build.board (wifi_slot in variants) and fash size is more than 1M. I really liked your suggestions for the default settings. But I can not be sure that all the family esp12 will be stable in the future |
Should I change the script in your branch? |
Your new board brings more changes than a simple new board declaration. |
941dbe8
to
45ccc6f
Compare
45ccc6f
to
a458df8
Compare
variants/wifi_slot/pins_arduino.h
Outdated
static const uint8_t A6 = PIN_A6; | ||
static const uint8_t A7 = PIN_A7; | ||
|
||
static const uint8_t LED_BUILTIN = 2; |
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 use a #define LED_BUILTIN
like in the other variants and get rid of BUILTIN_LED
, it is defined in common.h that you should use to avoid duplicate code.
Is that fair ?
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.
Thanks for your feedback.
I'll fix the #define LED_BUILTIN
. Unfortunately, I can not just connect common.h
, because the pinout of our board conflicts with this:
Arduino/variants/generic/common.h
Lines 50 to 52 in 1a9403d
#define PIN_A0 (17) | |
static const uint8_t A0 = PIN_A0; |
I could change the common.h
in this part to this code:
#ifndef PIN_A0
#define PIN_A0 (17)
#endif
static const uint8_t A0 = PIN_A0;
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.
I don't see any problem with this proposal,
as long as the API remains compatible with the Arduino use of analogRead(A0)
which seems to be the case in your PR and your new analog pins and I guess a analog multiplexer.
@d-a-v , it seems that the code has magically passed the tests. Could you look at this please? |
Added new board WiFi Slot with esp12-f.
Description: http://wiki.amperka.ru/%D0%BF%D1%80%D0%BE%D0%B4%D1%83%D0%BA%D1%82%D1%8B:wifi-slot