fosstodon.org is one of the many independent Mastodon servers you can use to participate in the fediverse.
Fosstodon is an invite only Mastodon instance that is open to those who are interested in technology; particularly free & open source software. If you wish to join, contact us for an invite.

Administered by:

Server stats:

8.8K
active users

#tinygo

2 posts2 participants1 post today

TinyGo + Wio Terminal で加速度情報から画面の Gopher を動かすサンプル。いい感じに動く。書籍にはなかったなまし処理もいれたらスムーズに動くようになった。
#tinygo

I have achieved, bare minimum functionality on my intrepid timer firmware, But all the major hurdles are dealt with.
Lots of work to do, especially finding a nice representation for the internal state machine. But it's getting there, and I'm pretty sure I have enough headroom in the firmware for the remaining logic I need.

github.com/tcolgate/intrepid-f

Contribute to tcolgate/intrepid-fstopper development by creating an account on GitHub.
GitHubGitHub - tcolgate/intrepid-fstopperContribute to tcolgate/intrepid-fstopper development by creating an account on GitHub.

Question! How do you imagine the playground components are oriented? Do you imagine them laying flat (on a desk), or rather in front of you like a computer monitor? Poll in the first reply.

This is important to know to simulate an accelerometer. The orientation of an accelerometer matters!

Today I discovered there's an old POSIX API that uses a POSIX signal (SIGIO) to let the application know that I/O can happen on a socket.

...why, why did they ever think this was a good idea? Instead of, you know, a blocking system call of some sorts. I can't imagine a way this would even be usable in a safe (non-racy) way without a lot of work that essentially makes it a blocking system call anyway.

In any case, since nobody should be using it, I'm repurposing this signal to pause threads on MacOS for GC stack scanning in #TinyGo.

koebiten に透過 PNG 読み込みを足すトライを再び。これを実現するにあたり、 drivers/pixel に 2bpp 形式を足しつつ drivers/image/png に RGBA 32bit な形式の読み込みを追加しつつ、って感じになるのでなかなか大変。とりあえず fork するかな。
#tinygo #koebiten

Continued thread

TinyGo 0.38 の目玉ポイントは RP2040 で複数コアを使った処理ができるようになったこと、です。ただ、この時点で若干他マイコンとは異なる goroutine 切り替えタイミングになっているのでそこは注意が必要。
#tinygo

RP>
TinyGo 0.38 is out with our first multicore support! Initially available on the RP2040 now use both cores at the same time for true concurrency in hardware. Plus USB MSD support, new WASM GC options, fixes, & more!
Go get it right now!
#golang #tinygo
github.com/tinygo-org/tinygo/r

GitHubRelease 0.38.0 · tinygo-org/tinygoThis release includes some very exciting new features, in particular our first multicore support! Initially available on the RP2040 microcontrollers, now TinyGo can use both cores at the same time ...