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

add board: esp32c3-supermini #4518

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from
Open

add board: esp32c3-supermini #4518

wants to merge 3 commits into from

Conversation

vaaski
Copy link

@vaaski vaaski commented Oct 11, 2024

Hey, I apologize for the long silence on #4212. I just picked up the project where I need this again and thought I'd give it a shot.

I've used the xiao-esp32c3 and #4454 as a reference.

After building it, I was able to run https://github.com/tinygo-org/tinygo/blob/release/src/examples/blinky1/blinky1.go successfully.

Thanks again for all the work on tinygo and thanks to @deadprogram for the friendly and helpful responses on my original issue. I'm glad I won't have to learn C++ for my project :D

resolves #4212

@vaaski
Copy link
Author

vaaski commented Oct 11, 2024

Not sure if this is intended design or not, but when I include a println in my blinky loop, it only blinks when there is a serial monitor attached. As soon as I stop tinygo monitor it seemingly pauses the whole loop.

package main

import (
	"machine"
	"time"
)

func main() {
	led := machine.LED
	led.Configure(machine.PinConfig{Mode: machine.PinOutput})

	for {
		println("high")
		led.High()
		time.Sleep(time.Millisecond * 1000)

		println("low")
		led.Low()
		time.Sleep(time.Millisecond * 1000)
	}
}

@dkegel-fastly
Copy link
Contributor

What's up with that git submodule build problem?

@vaaski
Copy link
Author

vaaski commented Jan 3, 2025

Sorry, I did not mean to close this. Git is still a mystery to me sometimes even after almost a decade.

I think I updated the branch to the latest dev and redid my changes without touching that submodule folder, not sure how that happened in the first place.

@vaaski vaaski reopened this Jan 3, 2025

// This file contains the pin mappings for the ESP32 supermini boards.
//
// - https://forum.arduino.cc/t/esp32-c3-supermini-pinout/1189850/7
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// - https://forum.arduino.cc/t/esp32-c3-supermini-pinout/1189850/7
// - https://www.tindie.com/products/adz1122/esp32-c3-development-board-esp32-supermini/
// - https://forum.arduino.cc/t/esp32-c3-supermini-pinout/1189850/7

Copy link

@vanvanni vanvanni Jan 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about using "https://dl.artronshop.co.th/ESP32-C3%20SuperMini%20datasheet.pdf" instead of the webshop URL? As alternative this is also a great option: https://www.sudo.is/docs/esphome/boards/esp32c3supermini/ they reference multiple sources and platforms, including datasheets

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, sure, great! I just wanted to find some "origin" not an obscure forum post.
BTW, they seem had an official github repo some time ago (referenced on that shop page), but it is now no more...
Is the board still widely available and produced/supported?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I know yes. Especially in China. Saw them on multiple sites, I recently got 6 of them in the mail.

@ysoldak
Copy link
Contributor

ysoldak commented Jan 8, 2025

@deadprogram you said you are happy to accept this board addition PR :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants