Ds1307 Class

Definition

Realtime Clock DS1307

public class Ds1307 : Iot.Device.Rtc.RtcBase
type Ds1307 = class
    inherit RtcBase
Public Class Ds1307
Inherits RtcBase
Inheritance
Ds1307

Constructors

Ds1307(I2cDevice)

Creates a new instance of the DS1307

Fields

DefaultI2cAddress

DS1307 Default I2C Address

Properties

DateTime

Set or retrieves the current date/time. This property returns a DateTimeOffset and is therefore correct regardless of the current time zone (when LocalTimeZone is set correctly).

(Inherited from RtcBase)
LocalTimeZone

Gets or sets the time zone this instance will operate in. Defaults to the local time zone from the system. Changing this property will not change the time on the real time clock, but instead affect the return value of DateTime

(Inherited from RtcBase)
RtcDateTime

The Device's raw DateTime. The caller must be aware of the device's time zone. The behavior of the Kind property is implementation-dependent (typically it is ignored)

(Inherited from RtcBase)

Methods

Dispose() (Inherited from RtcBase)
Dispose(Boolean)

Cleanup

ReadTime()

Read Time from DS1307

SetTime(DateTime)

Set DS1307 Time

Applies to