GithubHelp home page GithubHelp logo

seeed-studio / grove_6axis_accelerometer_and_gyroscope_bmi088 Goto Github PK

View Code? Open in Web Editor NEW
10.0 10.0 7.0 14 KB

Library for the Grove - 6-Axis Accelerometer&Gyroscope(BMI088)

License: MIT License

C++ 100.00%

grove_6axis_accelerometer_and_gyroscope_bmi088's People

Contributors

digity101 avatar pillar1989 avatar wayenweng avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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

grove_6axis_accelerometer_and_gyroscope_bmi088's Issues

Publish to PlatformIO

Would it be possible to publish this library to PlatformIO's registry?

My team would very much appreciate it.

Grove - 6-Axis Accelerometer&Gyroscope(BMI088) library does not support alternate device address.

The default I2C device address is hard coded into this library. One method is to change the constructor to accept the alternate device address:

In BMI088.cpp:
BMI088::BMI088( unsigned short acc_addr = BMI088_ACC_ADDRESS, unsigned short gyro_addr = BMI088_GYRO_ADDRESS ) { devAddrAcc = acc_addr; devAddrGyro = gyro_addr; }

remove from BMI088.cpp
BMI088 bmi088;

In BMI088.h:

#define BMI088_ACC_ALT_ADDRESS      0x18
#define BMI088_GYRO_ALT_ADDRESS         0x68

class BMI088
{
    public:

        BMI088( unsigned short, unsigned short );

remove from BMI088.h
extern BMI088 bmi088;

This also would drive a minor change to the example BMI088_Example.ino:
BMI088 bmi088( BMI088_ACC_ADDRESS, BMI088_GYRO_ADDRESS );

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.