@nanomatic/ds3231
RTC DS3231 implementation for the Raspberry PI 4 + temperature reading
π Table of Contents
π Table of Contents-
π Getting Started -
βοΈ Built With π¦ Dependencies-
βοΈ Authors -
π Acknowledgments
π Getting Started
Installing
npm i @nanomatic/ds3231
Using
Example code below:
import { DS3231 } from '@nanomatic/ds3231'
const RTC = new DS3231;
// Writting system time to the DS3231
RTC.set(new Date());
// Reading time from the DS3231
setInterval(() => console.log(`${RTC.get().toString()} ${RTC.getTemperature()} Β°C`), 500);
βοΈ Built With
- @types/rpio - Type definitions for the Raspberry I/O library
- ts-node-dev - TypeScript Node Dev
- tsc-watch - The nodemon for TypeScript
- TSLint - TypeScript linter
- NodeJs - Test Environment
π¦ Dependencies
- rpio - Raspberry I/O library
βοΈ Authors
- @NANOmatic - Idea & Initial work
π Acknowledgments
- Special thanks for Εukasz & Sebastian for working together and giving ideas
π