-
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
boards/esp32c3-wemos-mini: add support for Wemos ESP32-C3 mini #19417
Conversation
00e153f
to
07cfb3b
Compare
80d091e
to
c13fdd2
Compare
boards/esp32c3-wemos-mini/Kconfig
Outdated
config MODULE_ESP32C3_WEMOS_MINI_V2_1_0 | ||
bool | ||
help | ||
Indicates that Wemos ESP32-C3 mini board version v2.0.0 is 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.
Indicates that Wemos ESP32-C3 mini board version v2.0.0 is used. | |
Indicates that Wemos ESP32-C3 mini board version v2.1.0 is used. |
?
How do the versions differ/how can the user tell which is which?
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.
The versions differ
- in their pinout for GPIO0 ... GPIO6 which in turn affects the pins used for ADC channels and even more important for SPI and
- in what type of LED (RGB LED vs. LED) they have connected to GPIO7.
To ensure the right assignment of SPI signals, the board version has to be specified either using USEMODULE=esp32c3-wemos-mini_v*_*_0
in make or the choice of the MODULE_ESP32C3_WEMOS_MINI_V*_*_0
symbols in Kconfig.
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 think the RGB led is a good sign, we can add that to the description of the option.
# default board version if not defined | ||
#BOARD_VERSION ?= esp32c3_wemos_mini_v2_1_0 | ||
|
||
#ifndef CONFIG_USB_VID | ||
# CFLAGS += -DCONFIG_BOARD_VERSION_$(call uppercase_and_underscore,$(BOARD_VERSION)) | ||
#endif |
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.
should this be commented out?
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.
Yes, it's just a leftover. Before I used pseudomodules esp32c3_wemos_mini_v2_1_0
and esp32c3_wemos_mini_v1_0_0
I tried to realize the version handling by variable BOARD_VERSION
.
af9808b
to
dc681d4
Compare
@benpicco Is there anything else for this board to change? |
No, just the remaining open comments, you can directly squash. |
dc681d4
to
79fc49c
Compare
Ok, fixed. |
bors merge |
Build succeeded:
|
@benpicco Thanks |
Contribution description
This PR provides the support for the Wemos ESP32-C3 mini board.
Testing procedure
The board should work for provided features.
The board was already tested with:
tests/driver_sht3x
using I2Ctests/driver_l3gxxxx
using SPItests/periph_adc
tests/periph_pwm
tests/driver_ws281x
Issues/PRs references