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

실시간 시계 주변 장치. 씬 컴포넌트에서 현재 시각을 읽고 쓰며, DS3231(I²C) 백엔드를 제공합니다.

저장소: github.com/dekiengine/deki-rtc · 최신 릴리스: 0.19.0 · 엔진 0.19.0 이상 필요 · 의존: deki-i2c

DekiEditor --packages-add deki-rtc <project> 또는 패키지 관리자로 설치합니다. 엔진 자체의 컴포넌트와 C++ API는 Deki 문서에 있습니다.

에디터에는 RTC (Real-Time Clock)(으)로 표시됩니다.

컴포넌트

컴포넌트 카테고리 설명
DS3231RTCComponent 센서 I2C로 DS3231 실시간 클럭을 읽고 설정합니다.
SystemClockRTCComponent 시스템 에디터와 데스크톱에서 실행할 때 컴퓨터 자체의 시계를 실시간 클럭으로 사용합니다.

기능 플래그

빌드에서 뺄 수 있는 부분입니다. define이 있는 기능은 그 define으로 켜고 끄며, 나머지는 컴포넌트와 함께 제거됩니다.

기능 define 기본값
DS3231 (I²C) DEKI_FEATURE_RTC_DS3231 켜짐

컴포넌트 레퍼런스

DS3231RTCComponent

I2C로 DS3231 실시간 클럭을 읽고 설정합니다.

인스펙터 이름: DS3231 RTC · 카테고리: 센서 · 유형: DekiRtc::DS3231RTCComponent

속성 유형 기본값 제약 설명
i2cPort int32 0 0~3 시계 칩이 연결된 I2C 버스입니다. 해당 포트를 설정한 I2C 버스 컴포넌트와 일치해야 합니다.

SystemClockRTCComponent

에디터와 데스크톱에서 실행할 때 컴퓨터 자체의 시계를 실시간 클럭으로 사용합니다.

인스펙터 이름: 시스템 시계 RTC · 카테고리: 시스템 · 유형: DekiRtc::SystemClockRTCComponent

리플렉션된 속성이 없습니다.

변경 내역

변경 내역은 영어로 되어 있습니다.

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