57. User Define RTC Function For Time Reading

Interface the RTC module with a microcontroller using the I2C protocol.

Create a user-defined function to read time from the RTC module and print time on the serial terminal (e.g., PuTTY, Arduino IDE).

Example

RTC-Output

Note

  • Do not use pre-built libraries of the RTC module.
  • Refer to the datasheet of the respective RTC module for a clear understanding.
     

Submit Your Solution

Note: Once submitted, your solution goes public, helping others learn from your approach!