RTC_NXP_Arduino 1.2.1
RTC driver device operation sample code for Arduino
Loading...
Searching...
No Matches
Changelog

Unreleased

New features

  • set_clock_offset(float ratio) added to all supported devices (PCF2131, PCF85053A, PCF85063A, PCF85063TP, PCF85263A): converts a frequency correction ratio to the device's offset register encoding, applies it, and returns the ratio actually applied after rounding to the nearest representable step. The ratio is dimensionless (e.g. -10 ppm = -10.0e-6), not a ppm value.
// apply a -10 ppm correction; actual applied value may differ slightly
// due to the RTC's discrete correction steps
float applied = rtc.set_clock_offset( -10.0e-6 );

Resolves #8.

1.2.0

New features

  • PCF85063A / PCF85063TP: timer() now accepts an optional pulse parameter to select the interrupt output mode
// flag mode (default — same behavior as before)
rtc.timer(1.0);
rtc.timer(1.0, false);
// pulse mode
rtc.timer(1.0, true);

API changes (breaking)

The following identifiers contained typos and have been corrected. Replace old names with new names in your sketch.

PCF85263A — enum values

Before (typo) After (corrected)
PCF85263A::INTA_INTTERRUPT PCF85263A::INTA_INTERRUPT
PCF85263A::INTB_INTTERRUPT PCF85263A::INTB_INTERRUPT

PCF85263A — method names

Before (typo) After (corrected)
rtc.pin_congfig(cfg_a, cfg_b) rtc.pin_config(cfg_a, cfg_b)
rtc.ts_congfig(setting) rtc.ts_config(setting)

1.1.3

1.1.2

  • PCF2131: OTP refresh after oscillator stop flag (OSF) clear added
  • PCF2131: Control_3.PWRMNG bit field update changed to use bit_op()

1.1.1

  • PCF2131: software reset support added
  • PCF2131: OTP refresh support added
  • PCF2131: CLKOUT support added

1.1.0

  • PCF2131: second interrupt output (INT_B) support added
  • PCF2131: timestamp support added
  • PCF2131: periodic interrupt support added

1.0.x