Giter Site home page Giter Site logo

mcube_mc34x9_arduino_driver's People

Contributors

mcube-robert-li avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

mcube_mc34x9_arduino_driver's Issues

Tilt/Flip/Tilt35 example code request

Going through the datasheet and demo I couldn't find any example for Tilt/Flip/Tilt35. Can you provide some insight about this?

My aim is to detect changes in tilt angle and generate interrupt when tilt angle change is beyond certain angle (say 45 degrees).

I understand that registers 0x40 and 0x41 contain threshold values for Tilt/Flip/Tilt35 feature but 2hat do these thresholds actually mean.

From the MC3479 datasheet on page no. 70
For the flat/tilt/flip algorithm, these registers hold the programmed 15-bit threshold value to
detect the flat/tilt/flip position of the device. If the sample value is greater than the programmed
value of these registers, a tilt condition is detected.

What sample value is it referring to?

Sample Rate Register values Mismatch

I'm looking into using this driver for the MC3419 and I notice the enums MC34X9_sr_t do not seem to correspond with the ones specified in Table 28 from the Datasheet v1.2.

Could you confirm where these values came from, and if they're correct?

Thank you in advance!

Going into standby issue

Hello,

I'm working on a C library for the MC3419 as my project doesn't support C++.
I have been using your library for reference as some of the registers are missing from the data sheet mainly the device ID register

whilst I have been writing my library I have spotted a mistake in the enumeration used by the SetMode function:

typedef enum
{
MC34X9_MODE_SLEEP = 0b000,
MC34X9_MODE_CWAKE = 0b001,
MC34X9_MODE_RESERVED = 0b010,
MC34X9_MODE_STANDBY = 0b011,
} MC34X9_mode_t;

According to the datasheet the MC34X9 only has two states: standby (0), and wake (1).
MC34X9_MODE_STANDBY is used in various functions in the ".cpp" file

Best regards
Ben

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.