Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MPU6050 i2c example expanded into library #504

Draft
wants to merge 9 commits into
base: develop
Choose a base branch
from

Commits on Mar 31, 2022

  1. Reorganized to use register functions and scaling

    Reorganized so i2c code is in register reading and writing functions. Rewrote power functions for reset and power options. Added mpu6050 scale set functions and local scaling functions. Tested connecting, reading data and changing scale, all working.
    NirajPatelRobots committed Mar 31, 2022
    Configuration menu
    Copy the full SHA
    daf21fd View commit details
    Browse the repository at this point in the history

Commits on Apr 2, 2022

  1. Added scaled read, C++ wrapper and headers

    The new files wrap the mpu6050_i2c.c functions in a cpp class. New read function includes scale. Also split separate accel, gyro, and temp scale functions. NOT tested.
    NirajPatelRobots committed Apr 2, 2022
    Configuration menu
    Copy the full SHA
    4bd085d View commit details
    Browse the repository at this point in the history

Commits on Apr 12, 2022

  1. Tested, renamed main() for library use

    Tested cpp code works to read mpu. main() renamed test() so I can call it in other code.
    NirajPatelRobots committed Apr 12, 2022
    Configuration menu
    Copy the full SHA
    27a0149 View commit details
    Browse the repository at this point in the history

Commits on Jun 20, 2024

  1. split mpu6050 lib (c and c++) from demo main, refactor mostly comments

    the code that's been running with simplewalker. Also add self-test even though idk what it does.
    NirajPatelRobots committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    ce8b1dc View commit details
    Browse the repository at this point in the history

Commits on Jul 10, 2024

  1. scale test, C++ enum and bus_addr

    add scale_test executable demonstrating C++lib and scaling, create enum MPU6050::Scale, C++ set bus_addr, remove #include stdlib.h from headers
    NirajPatelRobots committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    8cce5bd View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c974dc8 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9a24fb2 View commit details
    Browse the repository at this point in the history

Commits on Aug 8, 2024

  1. fix scale test

    NirajPatelRobots committed Aug 8, 2024
    Configuration menu
    Copy the full SHA
    60c24b9 View commit details
    Browse the repository at this point in the history

Commits on Aug 12, 2024

  1. Configuration menu
    Copy the full SHA
    7bf6b47 View commit details
    Browse the repository at this point in the history