Skip to content

time.Tick() Ticker functions won't compile on RP Pico #2657

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

Closed
bmentink opened this issue Mar 1, 2022 · 1 comment
Closed

time.Tick() Ticker functions won't compile on RP Pico #2657

bmentink opened this issue Mar 1, 2022 · 1 comment

Comments

@bmentink
Copy link

bmentink commented Mar 1, 2022

Is the Ticker functions implemented on RP Pico? Whenever I try to use them, I get this loader error about missing libs.

tinygo:ld.lld: error: undefined symbol: time.startTimer
>>> referenced by tick.go:39 (/usr/local/go/src/time/tick.go:39)
>>>               /tmp/tinygo88041620/main.o:(tinyproj/bldc.test$gowrapper)
failed to run tool: ld.lld
error: failed to link /tmp/tinygo88041620/main: exit status 1

As a simple test, I am running the following function:

func test() {
	for tick := range time.Tick(3 * time.Second) {

		fmt.Println(".", tick)
	}
}
@aykevl
Copy link
Member

aykevl commented Mar 1, 2022

It is not implemented anywhere. For more information, see: #1037.

Closing this as a duplicate.

@aykevl aykevl closed this as completed Mar 1, 2022
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

No branches or pull requests

2 participants