Repository navigation
Releases: m5stack/M5Unit-RTC
Releases · m5stack/M5Unit-RTC
Release list
0.2.0
Added
- Add
UnitRX8130(aliasUnitRX8130CE) for the built-in Epson RX8130CE RTC, andTab5BuiltinRTCfor the Tab5 - Add ESP-IDF native build support
- Add NanoH2 board support
- Add
ViaPaHubexample - Add the Tab5 built-in RTC option to the
AlarmNotify,PeriodicTimerandNTPSyncexamples - 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 withwriteTimer(0);setTimerIRQ()/setAlarmIRQ(int)also repeat, as in M5Unified) - Change UnitPCF8563
writeAlarm()/writeTimer()to no longer enable AIE / TIE (callwriteAlarmInterrupt(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
NTPSyncexample to use esp_wifi and show its progress on Serial and the display
Deprecated
- Deprecate UnitPCF8563
writeTimer(msec, repeat)(the repeat argument is ignored; usewriteTimer(msec)) - Deprecate UnitPCF8563
readTimerPeriodic()/writeTimerPeriodic()(usereadTimerInterruptPulse()/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 ボード対応を追加
ViaPaHubexample を追加AlarmNotify/PeriodicTimer/NTPSyncexample で 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 に変更
NTPSyncexample を 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 の読み出し失敗と不正な曜日を扱っていなかったのを修正
0.1.0
Added
- Add M5UnitUnified driver
UnitPCF8563and the top-level headerM5UnitUnifiedRTC.h. - Add M5UnitUnified examples (
AlarmNotify,NTPSync,PeriodicTimer) supportingTwoWire,I2C_Class, andM5HALinitialization. - Add "M5UnitUnified" section to README.
Fixed
- Fix incorrect header include and object reference in
Unit_RTC_M5Core2example. - Fix broken docs.m5stack.com link
追加
- M5UnitUnified ドライバ
UnitPCF8563および統合ヘッダM5UnitUnifiedRTC.hを追加。 - M5UnitUnified 用 example (
AlarmNotify,NTPSync,PeriodicTimer) を追加。TwoWire,I2C_Class,M5HALに対応。 - README に "M5UnitUnified" セクションを追加。
修正
Unit_RTC_M5Core2example の誤ったヘッダ include / オブジェクト参照を修正。- 切れていた docs.m5stack.com リンクの修正