DEKI/ENGINE 문서
deki-gpio 0.19.0
Deki 패키지 레퍼런스
deki-gpio

디지털 핀: 핀 출력, 핀 읽기, 핀 펄스 카운트. 그리고 보드의 주변 장치에 전원을 넣는 부트 단계.

저장소: 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). 속성 이름은 씬 파일에서 쓰는 키입니다. 이름을 바꿔도 별칭이 유지됩니다(호환성).