Virtuabotixrtc.h Arduino Library Direct

if (myRTC.dayofweek == 1) // Monday setColor(RED);

Polls the DS1302 module to update the local variables in the Arduino sketch. virtuabotixrtc.h arduino library

The DS1302 is a trickle-charge RTC that communicates via a 3-wire synchronous serial interface (CE, I/O, SCLK). It is slightly older and less precise than the DS3231, but it is incredibly cheap and easy to use. The Virtuobiotix library was tailor-made for this chip. if (myRTC