top of page

Library — Virtuabotixrtch Arduino

The VirtuabotixRTC library, originally created by the hardware manufacturer Virtuabotix, is a lightweight, simple-to-use library designed specifically for the DS1307 and DS3231 RTC chips over I2C communication. Whether you are building a data logger, an automated garden irrigation system, or a digital clock, this library provides the essential functions without the bloat of more complex timestamp libraries.

Note: For heavy timestamp math, consider switching to RTClib. On tiny chips without hardware I2C, you can use any two digital pins: virtuabotixrtch arduino library

lcd.setCursor(0, 1); lcd.print("Date: "); if(myRTC.dayofmonth < 10) lcd.print("0"); lcd.print(myRTC.dayofmonth); lcd.print("/"); if(myRTC.month < 10) lcd.print("0"); lcd.print(myRTC.month); lcd.print("/20"); lcd.print(myRTC.year); The VirtuabotixRTC library

void setup() // Wake up Wire.begin(); myRTC.updateTime(); Serial.println(myRTC.minutes); // Enter deep sleep for 1 minute ESP.deepSleep(60e6); is a lightweight

NBS BV

Herenweg 69

1433GX

Kudelstaart

T. 0297-764963

M. 06-16946451

    linkedin wit.gif

    REQUEST YOUR FREE LISTING HERE

    Thank you for your submission!

    bottom of page