@nanomatic/ds3231
TypeScript icon, indicating that this package has built-in type declarations

3.0.2Β β€’Β PublicΒ β€’Β Published

FSM

@nanomatic/ds3231

Status License


RTC DS3231 implementation for the Raspberry PI 4 + temperature reading 🌑

πŸ“ Table of Contents

🏁 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

πŸ“¦ Dependencies

  • rpio - Raspberry I/O library

✍️ Authors

πŸŽ‰ Acknowledgments

  • Special thanks for Łukasz & Sebastian for working together and giving ideas πŸ˜‰

Dependencies (1)

Dev Dependencies (5)

Package Sidebar

Install

npm i @nanomatic/ds3231

Homepage

nanomatic.pl

Weekly Downloads

1

Version

3.0.2

License

MIT

Unpacked Size

5.9 kB

Total Files

4

Last publish

Collaborators

  • nano_matic