Skip to main content

Class Pcf8523

Represents a PCF8523 real-time clock

Assembly: Pcf8523.dll
View Source
Declaration
public class Pcf8523 : II2cPeripheral, IRealTimeClock, IBatteryBackedPeripheral

Implements:
Meadow.Hardware.II2cPeripheral, Meadow.Hardware.IRealTimeClock, Meadow.IBatteryBackedPeripheral

Properties

DefaultI2cAddress

The default I2C address for the peripheral

View Source
Declaration
public byte DefaultI2cAddress { get; }

IsRunning

Stops or starts the clock oscillator

View Source
Declaration
public bool IsRunning { get; set; }

Methods

IsBatteryLow()

Reads the battery low indicator register bit

View Source
Declaration
public bool IsBatteryLow()
Returns

System.Boolean

GetTime()

Reads the RTC time

View Source
Declaration
public DateTimeOffset GetTime()
Returns

System.DateTimeOffset

SetTime(DateTimeOffset)

Sets the RTC time

View Source
Declaration
public void SetTime(DateTimeOffset time)
Parameters
TypeName
System.DateTimeOffsettime

Implements

  • Meadow.Hardware.II2cPeripheral
  • Meadow.Hardware.IRealTimeClock
  • Meadow.IBatteryBackedPeripheral