Jump to content

Search the Community

Showing results for tags 'DS1388'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News
    • Announcements
    • Suggestions
    • New users say Hi!
  • Spotlight!
    • Sponsor Spotlight
    • Sponsor Giveaways
  • Energia
    • Energia - MSP
    • Energia - TivaC/CC3XXX
    • Energia - C2000
    • Energia Libraries
  • MSP Technical Forums
    • General
    • Compilers and IDEs
    • Development Kits
    • Programmers and Debuggers
    • Code vault
    • Projects
    • Booster Packs
    • Energia
  • Tiva-C, Hercules, CCXXXX ARM Technical Forums
    • General
    • SensorTag
    • Tiva-C, Hercules, CC3XXX Launchpad Booster Packs
    • Code Vault
    • Projects
    • Compilers and IDEs
    • Development Kits and Custom Boards
  • Beagle ARM Cortex A8 Technical Forums
    • General
    • Code Snippets and Scripts
    • Cases, Capes and Plugin Boards
    • Projects
  • General Electronics Forum
    • General Electronics
    • Other Microcontrollers
  • Connect
    • Embedded Systems/Test Equipment Deals
    • Buy, Trade and Sell
    • The 43oh Store
    • Community Projects
    • Fireside Chat
  • C2000 Technical Forums
    • General
    • Development Kits
    • Code Vault
    • Projects
    • BoosterPacks

Calendars

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Location


Interests


Sparkfun


Github

Found 1 result

  1. Another trivial port... this is the RTCLib I've been using for a couple of AVR projects, it runs with really minor modifications (just stripped out PROGMEM related stuff). I've already pulled a request to the main repo (I've been contributing DS1388 to this lib in the past). While the pull gets in, here is the library on my fork: https://github.com/elpaso/rtclib I've tested the library on my LP 1.5 with a DS1388 (3.3V version) and it's working fine. Example #include <Wire.h> #include <RTClib.h> RTC_DS1388 RTC; DateTime now; // Ugly globals... uint8_t timeH; uint8_t timeM; volatile uint8_t timeS; uint8_t dateD; uint8_t dateM; uint16_t dateY; uint8_t dateW; void setup() { Wire.begin(); RTC.begin(); if (!RTC.isrunning()) { // following line sets the RTC to the date & time this sketch was compiled RTC.adjust(DateTime(__DATE__, __TIME__)); } } void loop() { // Read clock now = RTC.now(); timeH = now.hour(); timeM = now.minute(); timeS = now.second(); dateD = now.day(); dateM = now.month(); dateY = now.year(); // Do something with those figures... }
×