Skip to content

Commit 65a1e26

Browse files
authored
Update README.md (#26)
1 parent 990a3be commit 65a1e26

File tree

1 file changed

+42
-15
lines changed

1 file changed

+42
-15
lines changed

README.md

Lines changed: 42 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
## TinyGo のインストール
2020

2121
以下のインストールが必要です。
22-
TinyGo については、このページの記入時点の最新版である v0.32.0 の URL を記載しましたが、適宜最新バージョンを使用してください。
22+
TinyGo については、適宜最新バージョンを使用してください。
2323

2424
* Git
2525
* https://git-scm.com/downloads
@@ -36,7 +36,7 @@ TinyGo は基本的に最新および直前 Version の Go と組み合わせて
3636

3737
| TinyGo | 対応する Go |
3838
| ------ | ----------- |
39-
| 0.35.0 | 1.23 - 1.22 |
39+
| 0.38.0 | 1.24 - 1.23 |
4040

4141
それぞれの実行体に PATH が通っていれば使うことができます。
4242
少し Version が古いですが以下も参考になると思います。
@@ -47,22 +47,22 @@ TinyGo は基本的に最新および直前 Version の Go と組み合わせて
4747

4848
```
4949
$ tinygo version
50-
tinygo version 0.35.0 windows/amd64 (using go version go1.23.6 and LLVM version 18.1.2)
50+
tinygo version 0.38.0 windows/amd64 (using go version go1.24.4 and LLVM version 19.1.2)
5151
```
5252

5353
```
5454
$ tinygo build -o out.uf2 --target waveshare-rp2040-zero --size short examples/serial
5555
code data bss | flash ram
56-
7836 108 3152 | 7944 3260
56+
9824 108 5240 | 9932 5348
5757
```
5858

5959
```
6060
$ tinygo flash --target waveshare-rp2040-zero --size short examples/serial
6161
code data bss | flash ram
62-
7932 108 3168 | 8040 3276
62+
9824 108 5240 | 9932 5348
6363
6464
$ tinygo monitor --target waveshare-rp2040-zero
65-
Connected to COM4. Press Ctrl-C to exit.
65+
Connected to COM12. Press Ctrl-C to exit.
6666
hello world!
6767
hello world!
6868
hello world!
@@ -137,6 +137,12 @@ Vim (+ vim-lsp) の場合は `github.com/sago35/tinygo.vim` を使ってみて
137137
* [TinyGo + 'VSCode or Vim (もしくはそれ以外の LSP 対応エディタ)' で gopls 連携する方法](https://qiita.com/sago35/items/c30cbce4a0a3e12d899c)
138138
* [TinyGo + Vim で gopls するための設定](https://qiita.com/sago35/items/f0b058ed5c32b6446834)
139139

140+
## コマンドライン補完 (Bash / Zsh / Clink)
141+
142+
Bash / Zsh / Clink を使っている場合は、以下をインストールすることでコマンドライン補完を導入できます。
143+
144+
https://github.com/sago35/tinygo-autocmpl
145+
140146
# 開発対象
141147

142148
TinyGo Keeb Tour では zero-kb02 という自作キーボード/マクロパッドを使用します。
@@ -200,7 +206,7 @@ RP2040 搭載のボードは BOOT / BOOTSEL と呼ばれているボタンを押
200206

201207
※この書き込み方法は TinyGo 以外で作られた uf2 ファイルに対しても有効です
202208

203-
上記の 00_basic.uf2 を自分で作成する場合は以下のコマンドを実行します。
209+
上記の `00_basic.uf2` を自分で作成する場合は以下のコマンドを実行します。
204210
エラーメッセージ等が表示されず、 `00_basic.uf2` ができていれば成功です。
205211

206212
```
@@ -260,7 +266,9 @@ hello world!
260266
hello world!
261267
```
262268

263-
### macOS 15 Sequoia で tinygo flash 出来ない場合
269+
### macOS 15 Sequoia で tinygo flash 出来ない場合 (TinyGo 0.37 以前のみ)
270+
271+
※この問題は [micchie さんにより修正され](https://github.com/tinygo-org/tinygo/pull/4928) TinyGo 0.38 にマージされました
264272

265273
`$TINYGOROOT/targets/rp2040.json``msd-volume-name``NO NAME` を追加してください。
266274
$TINYGOROOT は `tinygo env` で調べることができます。
@@ -790,6 +798,7 @@ Windows 環境では MIDI-OX を使うとよいでしょう。
790798
以下の例も参考にしてください。
791799

792800
* [./21_midi2](./21_midi2//)
801+
* https://github.com/conejoninja/midikeeb
793802

794803
## buzzer を使う
795804

@@ -859,7 +868,8 @@ func main() {
859868
* 参考ソース
860869
* https://github.com/tinygo-org/drivers/blob/release/examples/tone/tone.go
861870
* https://github.com/sago35/tinygo-examples/blob/main/wioterminal/buzzer/main.go
862-
871+
* [./23_akatonbo](./23_akatonbo/)
872+
* https://github.com/triring/7Keyx3Oct
863873

864874
# sago35/tinygo-keyboard を使う
865875

@@ -900,14 +910,28 @@ Vial は以下にあり、 WebHID API に対応した Edge / Chrome などから
900910
* [Create Your Own Keyboard with sago35/tinygo-keyboard](https://dev.to/sago35/create-your-own-keyboard-with-sago35tinygo-keyboard-4gbj)
901911

902912

903-
## zero-kb02 の firmware
913+
## zero-kb02 の tinygo-keybord firmware
904914

905915
以下にあります。
906916

907917
* https://github.com/sago35/keyboards
908918

919+
# koebiten
909920

910-
## トラブルシュート
921+
TinyGo 向けに 2D ゲームエンジン `koebiten` を開発しています。
922+
これは、 Go 向け 2D ゲームエンジン `Ebitengine` の TinyGo 版のような位置づけです。
923+
zero-kb02 を含む複数のハードウェアへの対応、シンプルな API が特徴です。
924+
925+
サンプルの実行してみるだけでもよいでしょう。
926+
以下から UF2 をダウンロードすることができます。
927+
928+
* https://github.com/sago35/koebiten/releases
929+
930+
Zenn にて入門記事を作っているので参考にしてください。
931+
932+
* https://zenn.dev/sago35/books/b0d993b62f05c9
933+
934+
# トラブルシュート
911935

912936
- プログラムの書き込みが出来ない
913937

@@ -921,17 +945,20 @@ COM7 2E8A:0003 waveshare-rp2040-zero
921945

922946
認識されていない場合は、マイコンをPCから外して挿し直してください。
923947

924-
## 作例
948+
# 作例
925949

926950
* https://x.com/ysaito8015/status/1827626098450166185
927951
* https://x.com/ysaito8015/status/1827630059580231788
928952
* https://x.com/sago35tk/status/1830208709471223966
929953
* https://x.com/Ryu_07_29/status/1847921967070163377
930954
* [./19_redkey/](./19_redkey/)
931955
* [./20_rotary_gopher](./20_rotary_gopher/)
932-
* [./21_midi2](./21_midi2/)
933-
* [./23_akatonbo](./23_akatonbo/)
934-
* https://github.com/conejoninja/midikeeb
956+
* MIDI
957+
* [./21_midi2](./21_midi2/)
958+
* https://github.com/conejoninja/midikeeb
959+
* buzzer
960+
* [./23_akatonbo](./23_akatonbo/)
961+
* https://github.com/triring/7Keyx3Oct
935962
* https://x.com/triring/status/1891448348818776323
936963
* https://github.com/sago35/koebiten
937964

0 commit comments

Comments
 (0)