-
-
Notifications
You must be signed in to change notification settings - Fork 555
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 m5stamp-c3 board #725
base: develop
Are you sure you want to change the base?
add m5stamp-c3 board #725
Conversation
3c7780f
to
6d83ceb
Compare
After some help on the ESPHome Discord, I've gotten this to work. The now updated version of this PR successfully boots into ESPHome using the following config:
|
Is there a way to manually include this until it is merged and released? |
I managed to figure this out (I think, not fully tested) by following the instructions here on creating custom boards. Hopefully it works. Would be really great if this could be merged officially. |
boards/m5stamp-c3.json
Outdated
"frameworks": [ | ||
"espidf" | ||
], |
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.
Is it possible for this to support Arduino? This board supposedly does.
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'll play around with that, we'll see.
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.
jcgruenhage@34858df works, but it's not based on develop, but on feature/arduino-upstream, (which seems not to have been merged since I started working on this back in February).
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.
Hm, thanks for checking on this. I may just stick with the esp framework then.
any updates on merging this pull request? |
boards/m5stamp-c3.json
Outdated
"core": "esp32", | ||
"f_cpu": "160000000L", | ||
"f_flash": "40000000L", | ||
"flash_mode": "dio", |
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 mode qio
Board does support
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.
iirc I changed it to dio after qio didn't work, but I can still change it back and test it when back in reach of one of these boards
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, dio
was needed for core < 2.0.4. Was a bug in bootloader generation.
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 have pushed that, although I wasn't able to validate it yet because I'm using the commit based on the feature/arduino-upstream branch, which doesn't seem to have been worked on recently? Arduino support is quite important to me..
660f6c9
to
e59cec7
Compare
Hi, any progress on this? I'm trying to use this PR with arduino framework. |
e59cec7
to
d61089e
Compare
d61089e
to
d5f6817
Compare
I've rebased this and this is working for me, including arduino support: esphome:
name: ${device_host}
platformio_options:
platform_packages:
- framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#2.0.14
platform:
- https://github.com/jcgruenhage/platform-espressif32.git#m5stamp-c3
on_boot:
then:
- light.turn_on:
id: "${device_id}_led"
red: 80%
green: 0%
blue: 100%
esp32:
board: m5stamp-c3
variant: esp32c3
framework:
type: arduino
binary_sensor:
- platform: gpio
pin: 3
name: "${device_name} Button"
id: "${device_id}_button"
on_click:
then:
- light.toggle:
id: "${device_id}_led"
light:
- platform: neopixelbus
id: "${device_id}_led"
type: GRB
variant: SK6812
method: ESP32_RMT_1
num_leds: 1
pin: 2
name: "${device_name} Led" Can we finally get this merged? It's been nearly two years now. |
@valeros Board is supported in Arduino espressif32 https://github.com/espressif/arduino-esp32/blob/master/variants/m5stack_stamp_c3/pins_arduino.h |
@Jason2866 This variant is not available in the latest stable 2.0.14. Furthermore, it seems that the |
Ahh, yes board Is there work done or planned to add a boards settings generator? Not just for espressif boards, a general solution? Most issues here and for users is this boards mess... |
Could you validate this request? |
I just checked the arduino-esp32 repo again, and it's still not in any release yet. There are release candidates for 3.0.0 though, which do contain the board. |
fixes #670
I have never done this before, so if I'm doing this very wrong, please tell me. I have not found any documentation on how to do this though.
I've based this on the
esp32-c3-devkitm-1.json
board, most stuff is unchanged.