Skip to content

Conversation

vaaski
Copy link
Contributor

@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
Contributor 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
Contributor 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
@ysoldak
Copy link
Contributor

ysoldak commented Jan 8, 2025

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

@ysoldak
Copy link
Contributor

ysoldak commented Jan 20, 2025

Thanks, @vaaski, now merging!

@ysoldak ysoldak merged commit 4f39be9 into tinygo-org:dev Jan 20, 2025
17 checks passed
deadprogram pushed a commit that referenced this pull request Aug 16, 2025
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