Hi,
this is an example of using the Real Time Clock DS1302 (from sunfounder).
There are two versions in the attachment:
1. Manual: Set the time manual befor uploading. After uploading the time is logged every seconds by a timer.
2. Commands: Various commands are accepted via the serial line (using Asyncstream):
- set: Set the RTC time year, month , dayofmonth , hour , minute , second , dayofweek
- get: Get the RTC timeformat YYYY-mon-dayofweek...
RTC DS1302 Example
from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1t3r2cS
via IFTTT
Aucun commentaire:
Enregistrer un commentaire