Git Product home page Git Product logo

ds323x's Issues

Problem Compiling 'time' example

I have two problems compiling the example 'time' program.

  1. the macro PM is defined in Arduino.h (somewhere). I can work around it by #undef prior to including the header file
  2. There is some sort of assignment error when using DataTime now,
    In file included from C:\Users\00011114\AppData\Local\Temp\arduino_modified_sketch_540583\time.ino:2:0:
    C:\Users\00011114\Documents\Arduino\libraries\DS323x/DS323x.h: In instantiation of 'int8_t arduino::ds323x::DS323x_::readBytes(arduino::ds323x::DS323x_::Reg, uint8_t, const uint8_t*, const uint8_t*) [with WireType = TwoWire; int8_t = signed char; uint8_t = unsigned char]':
    C:\Users\00011114\Documents\Arduino\libraries\DS323x/DS323x.h:472:22: required from 'uint8_t arduino::ds323x::DS323x_::readByte(arduino::ds323x::DS323x_::Reg, uint8_t) [with WireType = TwoWire; uint8_t = unsigned char]'
    C:\Users\00011114\Documents\Arduino\libraries\DS323x/DS323x.h:115:54: required from 'uint8_t arduino::ds323x::DS323x_::month() [with WireType = TwoWire; uint8_t = unsigned char]'
    C:\Users\00011114\Documents\Arduino\libraries\DS323x/DS323x.h:108:55: required from 'DateTime arduino::ds323x::DS323x_::now() [with WireType = TwoWire]'
    C:\Users\00011114\AppData\Local\Temp\arduino_modified_sketch_540583\time.ino:18:28: required from here
    C:\Users\00011114\Documents\Arduino\libraries\DS323x/DS323x.h:510:29: error: assignment of read-only location '*(data + ((sizetype)count))'
    data[count] = wire->read() & mask[count];

Issue with reading time after 19:59:59

when I set the time to 19:59:50 in 24 hours format, it works fine until 19:59:59, after that the clock starts to show 00:00:00 and then with time it increases seconds, so technically I am not able to get the time beyon 19:59:59 it resets as if it was 23:59:59

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.