Giter Club home page Giter Club logo

Comments (6)

shaoziyang avatar shaoziyang commented on June 6, 2024

Do you enable alarm interrupt or Square-Wave Output? You can try to set Control Register (0Eh) to 0x1C (default value) to disable SQW, and clear A1F/A2F (Alarm Flag) before enter deepsleep mode.

from mpy-lib.

PaoloFanta avatar PaoloFanta commented on June 6, 2024

thanks for your kind reply. As I explained to you, I am not a programmer, I managed to get here only thanks to what I found on the internet. I'm sorry but I'm unable to go any further on my own.

from mpy-lib.

shaoziyang avatar shaoziyang commented on June 6, 2024

use ds.setReg(DS3231_REG_CTRL, 0x1C) to disable SQW, and ds.ClearALARM() to clear alarm.

from mpy-lib.

PaoloFanta avatar PaoloFanta commented on June 6, 2024

By adding
ds.setReg(DS3231_REG_CTRL, 0x1C)

gives me the following error:

File "main.py", line 27, in
NameError: name 'DS3231_REG_CTRL' isn't defined

from mpy-lib.

shaoziyang avatar shaoziyang commented on June 6, 2024

use
ds.setReg(DS3231.DS3231_REG_CTRL, 0x1C)

from mpy-lib.

PaoloFanta avatar PaoloFanta commented on June 6, 2024

The command does not give an error but the SQW pin always remains high.

from mpy-lib.

Related Issues (9)

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.