Giter VIP home page Giter VIP logo

rtcds3231's Introduction

Biblioteka za RTC senzor

Ova biblioteka omogućava upravljanje i očitavanje RTC (Real-Time Clock) senzora na Arduino platformi. Konkretno, biblioteka je prilagođena za korišćenje sa DS3231 RTC senzorom.

Instalacija

  1. Preuzmite biblioteku:
    • Kliknite na zeleno dugme "Code" na GitHub stranici projekta
    • Izaberite opciju "Download ZIP" za preuzimanje biblioteke kao ZIP arhivu
  2. U Arduino IDE-u idite na Sketch > Include Library > Add .ZIP Library...
  3. Izaberite preuzetu ZIP arhivu biblioteke
  4. Instalacija će se završiti, a biblioteka će biti dostupna u vašem Arduino projektu

Korišćenje biblioteke

  1. Uključite biblioteku u vaš Arduino kod dodavanjem linije #include <RTCsenzor.h>
  2. Kreirajte objekat klase SenzorRTC za upravljanje RTC senzorom
  3. Koristite metode objekta za postavljanje vremena, datuma, alarma, itd.
#include <RTCsenzor.h>

SenzorRTC rtc;

void setup() {
  Serial.begin(9600);
  rtc.pocetak();
}

void loop() {
  uint8_t sati, minuti, sekunde;
  rtc.dohvatiVreme(sati, minuti, sekunde);

  Serial.print("Trenutno vreme: ");
  Serial.print(sati);
  Serial.print(":");
  Serial.print(minuti);
  Serial.print(":");
  Serial.println(sekunde);

  delay(1000);
}

Primeri

Uključeni su i primeri koji demonstriraju različite funkcionalnosti biblioteke. Možete ih pronaći na wikistranici

Autori

Ova biblioteka je razvijena od strane Radenko Bogdanovic. Ako imate pitanja ili povratne informacije, slobodno me kontaktirajte na [email protected].

Licenca

Ova biblioteka je objavljena pod MIT licencom.

rtcds3231's People

Contributors

rasho avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

nekotreci1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.