Skip to content

jihoonkimtech/ClockForSeg_Lib

Repository files navigation

ClockForSeg

exam

A library for Clock made of TM1637, DS1302

KOREAN VERSION


arduino-library-badge
NPM Version Build Status

Follows the MIT license ( Please check LICENSE file for more information. )


Function and How to Use

Code

Library Import

  • in case of Library file in Arduino/Library folder
    #include <ClockForSeg.h>
  • In case of Library file in Source code file
    #include <"ClockForSeg_Lib/ClockForSeg.h">

Create Object

    ClockForSeg clocks(RTC_CLK, RTC_DAT, RTC_RST, SEG_DIO, SEG_CLK);
    // clock is object name

Function

  • init (void);
    clocks.init();
    //initialize DS1302, TM1637
  • displayTime (int _mode);
    clocks.displayTime(BLINK);
    //Keep Blinking ":"
    //Delays : turn on 500ms, turn off 500ms

    clocks.displayTime(NON_BLINK);
    //keep ":" on
    //Delays : turn on 1000ms

Hardware

  • Supports the models below.
    • DS1302 (datasheet in /doc/HCSR04.pdf)
    • TM1637 (datasheet in /doc/HCSR04.pdf)
  • The boards below are supported.
    • Test Finished.
      • Arduino UNO
      • Arduino MEGA
      • Arduino NANO
    • Support Forecast
      • All boards using Arduino IDE

Example

The contents of the example are see Exemples folder.


Update History

  • 1.0.1
    • Change depends library
  • 1.0.0
    • First official version
    • Develop Finished
    • Register with Library Manager.
  • 0.0.1 (demo)
    • Start of Develop.

Information

Maker

About

A library for Clock made of TM1637

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages