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)
	}
}

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.

1 participant