tinygo icon indicating copy to clipboard operation
tinygo copied to clipboard

add board: esp32c3-supermini

Open vaaski opened this issue 1 year ago • 1 comments

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 avatar Oct 11 '24 17:10 vaaski

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

vaaski avatar Oct 11 '24 17:10 vaaski

What's up with that git submodule build problem?

dkegel-fastly avatar Jan 01 '25 17:01 dkegel-fastly

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 avatar Jan 03 '25 16:01 vaaski

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

ysoldak avatar Jan 08 '25 22:01 ysoldak

Thanks, @vaaski, now merging!

ysoldak avatar Jan 20 '25 20:01 ysoldak