I²C 버스 지원. 보드에서 버스를 한 번 설정하면 주변 장치 패키지(RTC, IMU, 터치)가 이를 공유합니다.
저장소: github.com/dekiengine/deki-i2c · 최신 릴리스: 0.19.0 · 엔진 0.19.0 이상 필요
DekiEditor --packages-add deki-i2c <project> 또는 패키지 관리자로 설치합니다. 엔진 자체의 컴포넌트와 C++ API는 Deki 문서에 있습니다.
에디터에는 I2C(으)로 표시됩니다.
컴포넌트
| 컴포넌트 | 카테고리 | 설명 |
| I2CBusComponent | 시스템 | 부팅 시 I2C 버스 하나를 시작합니다. 그 버스의 모든 칩이 이 버스를 공유합니다. |
컴포넌트 레퍼런스
I2CBusComponent
부팅 시 I2C 버스 하나를 시작합니다. 그 버스의 모든 칩이 이 버스를 공유합니다.
인스펙터 이름: I2C 버스 컴포넌트 · 카테고리: 시스템 · 유형: DekiI2c::I2CBusComponent
| 속성 | 유형 | 기본값 | 제약 | 설명 |
| i2cPort | int32 | 0 | 0~3 | 칩의 I2C 컨트롤러 중 어느 것을 쓸지 정합니다. 대부분의 보드는 하나만 연결되어 있으므로, 회로도에 다르게 나와 있지 않다면 0입니다. |
| sdaPin | int32 | 21 | 0~48 | I2C 데이터 라인(SDA)의 GPIO입니다. 센서의 배선과 일치해야 하며, 이 버스의 모든 장치가 공유합니다. |
| sclPin | int32 | 22 | 0~48 | I2C 클럭 라인(SCL)의 GPIO입니다. SDA처럼 이 버스의 모든 장치가 공유합니다. |
| i2cHz | int32 | 400000 | 10000~1e+06 | 버스 속도입니다. 100 kHz는 안전한 표준 모드, 400 kHz는 일반적인 고속 모드입니다. 배선이 길거나 장치가 많으면 낮은 값이 필요합니다. 너무 높으면 읽기가 간헐적으로 실패합니다. |
변경 내역
변경 내역은 영어로 되어 있습니다.
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: DekiI2CRegisterComponents, DekiI2CGetAutoComponentCount, DekiI2CEnsureRegistered 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). 속성 이름은 씬 파일에서 쓰는 키입니다. 이름을 바꿔도 별칭이 유지됩니다(호환성).