デジタルピン:ピンを駆動する、ピンを読む、ピンのパルスを数える。加えて、ボードの周辺機器に電源を入れるブートステップ。
リポジトリ: github.com/dekiengine/deki-gpio · 最新リリース: 0.19.0 · エンジン 0.19.0 以降が必要
DekiEditor --packages-add deki-gpio <project> か、パッケージマネージャーからインストールします。エンジン自身のコンポーネントと C++ API は Deki のドキュメントにあります。
エディターでは GPIO と表示されます。
コンポーネント
| コンポーネント | カテゴリ | 説明 |
| GpioPinSetup | GPIO | 起動時にピンを High または Low にします。電源のイネーブルや、共有バス上の使わないデバイスのチップセレクトに使います。 |
機能フラグ
ビルドから外せる部分です。define を持つ機能はその define で切り替わり、それ以外はコンポーネントと一緒に取り除かれます。
| 機能 | define | デフォルト |
| Boot Pins | DEKI_FEATURE_GPIO_PIN_SETUP | オン |
コンポーネントリファレンス
GpioPinSetup
起動時にピンを High または Low にします。電源のイネーブルや、共有バス上の使わないデバイスのチップセレクトに使います。
インスペクターでの名前: GPIO ピン · カテゴリ: GPIO · 型: DekiGpio::GpioPinSetup
| プロパティ | 型 | デフォルト | 制約 | 説明 |
| pin | int32 | -1 | -1 から 255 | ピン番号です。プラットフォームでの番号で指定します (-1 = 何もしない) |
| high | bool | true | | ピンを High にします (オフ = Low) |
| settleMs | int32 | 0 | 0 から 5000 | 設定した後に待つミリ秒数です。次のセットアップ手順の前に電源レールが立ち上がるのを待ちます |
変更履歴
変更履歴は英語です。
0.19.0
Changed
- minEngine 0.19.0: built against engine 0.19.0, whose component metadata records the package each class is in. A build of this package from before does not load and is rebuilt.
Added
- Japanese, Simplified Chinese and Korean: editor/lang/ja.json, zh.json and ko.json translate the names, tooltips and enum values this package's components show in the Inspector.
0.18.0
Changed
- minEngine 0.18.0. Reflection ABI 21: the package must be rebuilt.
- Names follow the code style (deki-engine/docs/codestyle): types, functions and enum values are PascalCase, constants kPascalCase, members m_PascalCase, locals and parameters camelCase. The code is formatted with clang-format 22.
- The functions the editor finds by name are PascalCase: DekiGPIORegisterComponents, DekiGPIOGetAutoComponentCount, DekiGPIOEnsureRegistered and the rest. Built against engine ABI 21; a build of this package from before does not load and is rebuilt.
Removed
- The former names from before 0.16.0 (bare class names, and deki-gpio's DekiEsp32::ESP32PinSetup). A scene that old is upgraded with 0.17 first.
それ以前のリリース: CHANGELOG.md
パッケージのリフレクションデータから生成しています (エンジン 0.19.0)。プロパティ名はシーンファイルで使われるキーです。名前を変えても別名が残ります (互換性)。