Git Product home page Git Product logo

accelerometer_mma7660's People

Contributors

edelache avatar elefantasy avatar killingjacky avatar lanselambor avatar lawliet004 avatar pillar1989 avatar skadiexe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

accelerometer_mma7660's Issues

Interrupt Trigger

This is a Fantastic library for the MMA7660. I was attempting to enable the interrupts Register but was having Difficulty setting that by the Wire LIB. Is there a function that can change the interrupt Register to trigger a 1 for the various trigger modes.

Orientation Change When FBINT, PLINT = 1
Shake When SHINTX, SHINTY, SHINTZ = 1
Tap or Tilt When PDINT = 1
Auto-Wake/Sleep When ASINT = 1
X, Y, Z Data Update When GINT = 1

Issues with Wire.requestFrom()

In the file MMA7660.cpp there are a number of issues with Wire.requestFrom().

The Wire.requestFrom() should not have Wire.beginTransmission() or Wire.endTransmission().
This in in the funtion MMA7660::read.

There is no need to empty a buffer or stream before using Wire.requestFrom(). When the Wire.requestFrom() returns, the receive buffer in the Wire library does not contain old data.
This is in the function MMA7660::getXYZ, MMA7660::getAcceleration, MMA7660::getAllData.

There is no need for a timeout. The Wire.requestFrom() waits until the complete I2C transaction has finished. The Wire.read() after that, only reads data from a receive buffer in the Wire library.
This is in the function MMA7660:getXYZ, MMA7660:getAcceleration,.

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.