Swift Playgrounds 4で動くレゴ用Bluetoothリモコン
- iPadOS 15.2以降がインストールされたiPad
- Swift Playgrounds バージョン4以降
- iPadのWebブラウザで https://github.com/bricklife/LEGO-Remote-Playgrounds/releases/latest を開いて「Source code (zip)」をダウンロード
- iPadのファイルアプリでそのzipファイルをタップして解凍
- 中に入っている「LEGO Remote.swiftpm」を開く
- UI: ContentView.swift
- モーターのパワー設定: ViewModel.swift#L95-L100