1か月使用したら,3分ほど時刻がずれました。 Talking_Clock.ino をそのままもう一回 IDE で書き込めば時刻が更新されると思っていたのですが,そうではありませんでした。 時刻合わせは以下のsketchを1回だけ書き込みます。 After one month of use, the time was off by about 3 minutes. I thought that if I wrote Talking_Clock.ino one more time by the IDE, the time would be updated, but that was not the case. To set the time, write the following sketch only once. // Talking_Clock_Adjust_Time.ino // // 時間合わせのためこれを1回だけ実行する。実行後もとの Talking_Clock.ino を書き戻す // This should be done only once to adjust the time. After execution, Talking_Clock.ino must be rewritten. // ・・・ //-------------- Talking_Clock.ino のこの部分を (Rewrite this part of Talking_Clock.ino ...) ------------ if (! rtc.isrunning()) { Serial.println("RTC is NOT running, let's set the time!"); rtc.adjust(DateTime(F(__DATE__), F(__TIME__))); } //-------------- こう書き換える (like this) --------------------------------------------------------------- // if (! rtc.isrunning()) { // Serial.println("RTC is NOT running, let's set the time!"); rtc.adjust(DateTime(F(__DATE__), F(__TIME__))); // }
1か月使用したら,3分ほど時刻がずれました。
Talking_Clock.ino をそのままもう一回 IDE で書き込めば時刻が更新されると思っていたのですが,そうではありませんでした。
時刻合わせは以下のsketchを1回だけ書き込みます。
After one month of use, the time was off by about 3 minutes.
I thought that if I wrote Talking_Clock.ino one more time by the IDE, the time would be updated, but that was not the case.
To set the time, write the following sketch only once.
// Talking_Clock_Adjust_Time.ino
//
// 時間合わせのためこれを1回だけ実行する。実行後もとの Talking_Clock.ino を書き戻す
// This should be done only once to adjust the time. After execution, Talking_Clock.ino must be rewritten.
//
・・・
//-------------- Talking_Clock.ino のこの部分を (Rewrite this part of Talking_Clock.ino ...) ------------
if (! rtc.isrunning()) {
Serial.println("RTC is NOT running, let's set the time!");
rtc.adjust(DateTime(F(__DATE__), F(__TIME__)));
}
//-------------- こう書き換える (like this) ---------------------------------------------------------------
// if (! rtc.isrunning()) {
// Serial.println("RTC is NOT running, let's set the time!");
rtc.adjust(DateTime(F(__DATE__), F(__TIME__)));
// }
SSD1306の表示方向はソフトウエアで変更可能なので物理的にひっくり返さなくても変えられますよ。
そうなんですね。思い至りませんでした。