Ds1307 Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Realtime Clock DS1307
public class Ds1307 : Iot.Device.Rtc.RtcBase
type Ds1307 = class
inherit RtcBase
Public Class Ds1307
Inherits RtcBase
- Inheritance
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for