Skip to content

0.2.0

Latest

Choose a tag to compare

@GOB52 GOB52 released this 27 Oct 09:21

Added

  • Add UnitRX8130 (alias UnitRX8130CE) for the built-in Epson RX8130CE RTC, and Tab5BuiltinRTC for the Tab5
  • Add ESP-IDF native build support
  • Add NanoH2 board support
  • Add ViaPaHub example
  • Add the Tab5 built-in RTC option to the AlarmNotify, PeriodicTimer and NTPSync examples
  • Add UnitPCF8563 readTimerInterruptPulse() / writeTimerInterruptPulse() for the /INT output mode of the timer (TI_TP)
  • Add move support to UnitPCF8563 (the interrupt handler moves with the object)
  • Add a warning log when UnitPCF8563 writeTimer() rounds the period (to 0 s, 255 s or 255 min)

Changed

  • Change UnitPCF8563 writeTimer(msec) to a periodic timer only, since the chip has no one-shot timer (stop it with writeTimer(0); setTimerIRQ() / setAlarmIRQ(int) also repeat, as in M5Unified)
  • Change UnitPCF8563 writeAlarm() / writeTimer() to no longer enable AIE / TIE (call writeAlarmInterrupt(true) / writeTimerInterrupt(true) to use /INT; setAlarmIRQ() / setTimerIRQ() still enable them)
  • Change UnitPCF8563 begin() to keep the alarm and timer flags
  • Change the I2C clock of UnitPCF8563 to 400 kHz
  • Change the NTPSync example to use esp_wifi and show its progress on Serial and the display

Deprecated

  • Deprecate UnitPCF8563 writeTimer(msec, repeat) (the repeat argument is ignored; use writeTimer(msec))
  • Deprecate UnitPCF8563 readTimerPeriodic() / writeTimerPeriodic() (use readTimerInterruptPulse() / writeTimerInterruptPulse())

Fixed

  • Fix UnitPCF8563 writeTimer() clearing the alarm flag and stop the timer before clearing the timer flag
  • Fix UnitPCF8563 setTimerIRQ(0) not stopping the timer
  • Fix UnitPCF8563 accepting out-of-range dates and times and returning invalid BCD values read from the chip
  • Fix UnitPCF8563 leaving the interrupt handler installed after destruction
  • Fix the examples not handling RTC read failures and invalid weekdays

追加

  • 内蔵 Epson RX8130CE 用の UnitRX8130 (別名 UnitRX8130CE) と Tab5 用の Tab5BuiltinRTC を追加
  • ESP-IDF native build 対応
  • NanoH2 ボード対応を追加
  • ViaPaHub example を追加
  • AlarmNotify / PeriodicTimer / NTPSync example で Tab5 内蔵 RTC を選べるようにした
  • タイマーの /INT 出力モード (TI_TP) 用に UnitPCF8563 readTimerInterruptPulse() / writeTimerInterruptPulse() を追加
  • UnitPCF8563 を move に対応 (割り込みハンドラもオブジェクトと一緒に移る)
  • UnitPCF8563 writeTimer() が周期を丸めたとき (0 秒 / 255 秒 / 255 分) に警告ログを出すようにした

変更

  • チップに one-shot タイマーが無いため、UnitPCF8563 writeTimer(msec) を周期タイマーのみに変更 (止めるには writeTimer(0)。setTimerIRQ() / setAlarmIRQ(int) も M5Unified と同じく繰り返す)
  • UnitPCF8563 writeAlarm() / writeTimer() が AIE / TIE を立てないように変更 (/INT を使うなら writeAlarmInterrupt(true) / writeTimerInterrupt(true) を呼ぶ。setAlarmIRQ() / setTimerIRQ() は従来どおり立てる)
  • UnitPCF8563 begin() がアラーム / タイマーのフラグを消さないように変更
  • UnitPCF8563 の I2C クロックを 400 kHz に変更
  • NTPSync example を esp_wifi に変更し、進捗を Serial と画面に表示するようにした

非推奨

  • UnitPCF8563 writeTimer(msec, repeat) を非推奨化 (repeat は無視される。writeTimer(msec) を使う)
  • UnitPCF8563 readTimerPeriodic() / writeTimerPeriodic() を非推奨化 (readTimerInterruptPulse() / writeTimerInterruptPulse() を使う)

修正

  • UnitPCF8563 writeTimer() がアラームフラグを消していたのを修正し、タイマーフラグを消す前にタイマーを止めるようにした
  • UnitPCF8563 setTimerIRQ(0) でタイマーが止まらなかったのを修正
  • UnitPCF8563 が範囲外の日付・時刻を受け付け、チップから読んだ不正な BCD 値をそのまま返していたのを修正
  • UnitPCF8563 の破棄後に割り込みハンドラが残っていたのを修正
  • example が RTC の読み出し失敗と不正な曜日を扱っていなかったのを修正