1.0.4 • Published 5 years ago

ds3231-rtc v1.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

#DS3231 RTC module

This package is an attempt to make it easy to read data from ds3231 Real time clock module connected to Raspberry pi through I2C.

However there might be a delay when a function is called. To get few details at same time like minutes and hours together, one function should be called withing the callback of the other function. please check example below.

##Usage

const rtc = require('ds3231-rtc');

rtc.min((data1)=>{
	rtc.hr((data2)=>{
					console.log('Time '+ data2 +':'+ data1);
					
})}); 

###To set time to module

rtc.set() 

###Other functions

rtc.sec((data)=>{}) // seconds

rtc.min((data)=>{}) // minutes

rtc.hr((data)=>{}) // hours

rtc.mn((data)=>{}) // month

rtc.date((data)=>{}) // date

rtc.yr((data)=>{}) // year
1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago