Atomic Clock and Weather

Atomic Clock and Weather with ESP32 and Nextion
ESP32ボードとNextion 2.4インチ(240×320インチ)でインターネットから正確な時刻や天気予報見ることが出来るようです。

NEXTION codeArduino code をダウンロードして動作確認をしてみます。

NEXTION code をNextion Editorに読み込みNextion 2.4インチにアップロードしたところ無事表示できました。

Arduino code をコンパイルするとエラー
ArduinoJson.h 5.1.1 に変更
43 Nextion myNextion(nextion, 9600);でエラー
43 Nextionxtion(Serial , 9600);でOK
137 myNextion.setComponentText(“g0″,”Connecting…”);
ネット検索しても解決方法が見つかりません。

コメントで質問してみましたが
The project is rather old. It is possible that in the meantime the libraries have changed their names and content. I guess you can fix this problem. My device works continuously for many years. Good luck!

古いプロジェクトでライブラリーの表記等変更があるので動作しないようです。Nextion.h の表記について調べなくてはなりません。時々思いますが興味を持つものはいつもかなり昔のものが多いようです。

<追記>
setComponentText は通過して
252 myNextion.setComponentValue(“n0”,hour());でエラー
試しに Arduino 1.8.19 デコンパイルすると
328 myNextion.setComponentValue(“bt2”,0); // else it is red.でエラー
setComponentValue の使い方を調べることが必要です。

コメント