DEKI/ENGINE docs
manual api reference
deki-rtc 0.40.1
Deki package reference
deki-rtc

Real-time clock peripheral interface and DS3231 (I²C) backend

Repository: github.com/dekiengine/deki-rtc · Latest release: 0.40.0 · Needs engine 0.40.0+ · Requires: deki-i2c

Install with DekiEditor --packages-add deki-rtc <project>, or from the Package Manager. The engine's own components and C++ API are in the Deki docs.

Shown in the editor as RTC (Real-Time Clock).

Components

Component Category Description
DS3231RTCComponent Sensors Reads and sets the DS3231 real-time clock over I2C.
SystemClockRTCComponent System Uses the computer's own clock as the real-time clock, for editor and desktop runs.

Feature flags

Parts you can leave out of a build. A feature with a define is switched there; the rest are stripped with their components.

Feature Define Default
DS3231 (I²C) DEKI_FEATURE_RTC_DS3231 on

Component reference

DS3231RTCComponent

Reads and sets the DS3231 real-time clock over I2C.

Inspector name: DS3231 RTC · Category: Sensors · Type: DekiRtc::DS3231RTCComponent

Property Type Default Constraints Description
i2cPort int32 0 0 to 3 Which I2C bus the clock chip is on. Must match the I2C Bus component that set that port up.

SystemClockRTCComponent

Uses the computer's own clock as the real-time clock, for editor and desktop runs.

Inspector name: System Clock RTC · Category: System · Type: DekiRtc::SystemClockRTCComponent

No reflected properties.

Changelog

0.40.0

Changed

  • minEngine 0.40.0: built against engine 0.40.0. A build of this package from before does not load and is rebuilt.

0.22.0

Changed

  • Translations are keyed by the editor's names with their acronyms ("I2C Port", "SPI Host" rather than "I 2c Port", "Spi Host"), which the 0.22 editor shows.
  • minEngine 0.22.0: built against engine 0.22.0. A build of this package from before does not load and is rebuilt.

Earlier releases: CHANGELOG.md.


Generated from the package's reflection data (engine 0.40.1). Property names are the keys used in scene files. Renames keep an alias (compatibility).