# Raspberrypi-DS3231 **Repository Path**: nexround/Raspberrypi-DS3231 ## Basic Information - **Project Name**: Raspberrypi-DS3231 - **Description**: A Raspberry Pi C Library for DS3231 Real-Time Clocks - **Primary Language**: C - **License**: GPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2020-12-03 - **Last Updated**: 2021-11-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Raspberrypi-DS3231 A Raspberrypi Library for DS3231 Real-Time Clocks ## Function * read date from DS3231's registers and format them (includes time and temperature) * synchronize DS3231's time with system time,you can also set every single part by corresponding function ## Usage ```c #include "ds3231lib.h" ``` Attention: the wiringPi library provides function to access I2C,so you need to make you sure you have already installed the wiringPi library. see how-to-use in the examples. ```shell gcc -c yourfile.c ds3231lib.c gcc -o main yourfile.o ds3231lib.o -lwiringPi ./main ``` [![Raspberrypi-DS3231](https://img.shields.io/badge/readme%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/Nexround/Raspberrypi-DS3231)