Skip to content
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

targets: add WaveShare ESP-C3-32S-Kit #4538

Merged
merged 1 commit into from
Oct 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -835,6 +835,8 @@ ifneq ($(XTENSA), 0)
$(TINYGO) build -size short -o test.bin -target mch2022 examples/machinetest
@$(MD5SUM) test.bin
endif
$(TINYGO) build -size short -o test.bin -target=esp-c3-32s-kit examples/blinky1
@$(MD5SUM) test.bin
$(TINYGO) build -size short -o test.bin -target=qtpy-esp32c3 examples/machinetest
@$(MD5SUM) test.bin
$(TINYGO) build -size short -o test.bin -target=m5stamp-c3 examples/machinetest
Expand Down
40 changes: 40 additions & 0 deletions src/machine/board_esp-c3-32s-kit.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
//go:build esp_c3_32s_kit

package machine

// See:
// * https://www.waveshare.com/w/upload/8/8f/Esp32-c3s_specification.pdf
// * https://www.waveshare.com/w/upload/4/46/Nodemcu-esp-c3-32s-kit-schematics.pdf

// Digital Pins
const (
IO0 = GPIO0
IO1 = GPIO1
IO2 = GPIO2
IO3 = GPIO3
IO4 = GPIO4
IO5 = GPIO5
IO6 = GPIO6
IO7 = GPIO7
IO8 = GPIO8
IO9 = GPIO9
IO18 = GPIO18
IO19 = GPIO19
)

const (
LED_RED = IO3
LED_GREEN = IO4
LED_BLUE = IO5

LED = LED_RED

LED1 = LED_RED
LED2 = LED_GREEN
)

// I2C pins
const (
SDA_PIN = NoPin
SCL_PIN = NoPin
)
5 changes: 5 additions & 0 deletions targets/esp-c3-32s-kit.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"inherits": ["esp32c3"],
"build-tags": ["esp_c3_32s_kit"],
"serial-port": ["1a86:7523"]
}
Loading