adafruit-circuitpython-lsm9ds0


Nameadafruit-circuitpython-lsm9ds0 JSON
Version 2.2.18 PyPI version JSON
download
home_pageNone
SummaryCircuitPython library for LSM9DS0 accelerometer, magnetometer, gyroscope.
upload_time2024-10-07 22:06:32
maintainerNone
docs_urlNone
authorNone
requires_pythonNone
licenseMIT
keywords adafruit lsm9ds0 accelerometer magnetometer gyroscope breakout hardwaremicropython circuitpython
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
Introduction
============

.. image:: https://readthedocs.org/projects/adafruit-circuitpython-lsm9ds0/badge/?version=latest
    :target: https://docs.circuitpython.org/projects/lsm9ds0/en/latest/
    :alt: Documentation Status

.. image:: https://raw.githubusercontent.com/adafruit/Adafruit_CircuitPython_Bundle/main/badges/adafruit_discord.svg
    :target: https://adafru.it/discord
    :alt: Discord

.. image:: https://github.com/adafruit/Adafruit_CircuitPython_LSM9DS0/workflows/Build%20CI/badge.svg
    :target: https://github.com/adafruit/Adafruit_CircuitPython_LSM9DS0/actions/
    :alt: Build Status

.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
    :target: https://github.com/psf/black
    :alt: Code Style: Black

CircuitPython module for the LSM9DS0 accelerometer, magnetometer, gyroscope.

Dependencies
=============
This driver depends on:

* `Adafruit CircuitPython <https://github.com/adafruit/circuitpython>`_
* `Bus Device <https://github.com/adafruit/Adafruit_CircuitPython_BusDevice>`_

Please ensure all dependencies are available on the CircuitPython filesystem.
This is easily achieved by downloading
`the Adafruit library and driver bundle <https://github.com/adafruit/Adafruit_CircuitPython_Bundle>`_.

Installing from PyPI
=====================
On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from
PyPI <https://pypi.org/project/adafruit-circuitpython-lsm9ds0/>`_. To install for current user:

.. code-block:: shell

    pip3 install adafruit-circuitpython-lsm9ds0

To install system-wide (this may be required in some cases):

.. code-block:: shell

    sudo pip3 install adafruit-circuitpython-lsm9ds0

To install in a virtual environment in your current project:

.. code-block:: shell

    mkdir project-name && cd project-name
    python3 -m venv .venv
    source .venv/bin/activate
    pip3 install adafruit-circuitpython-lsm9ds0

Usage Example
=============

.. code-block:: python

    import time
    import board
    import busioimport adafruit_lsm9ds0

    i2c = busio.I2C(board.SCL, board.SDA)
    sensor = adafruit_lsm9ds0.LSM9DS0_I2C(i2c)

    while True:
        accel_x, accel_y, accel_z = sensor.acceleration
        mag_x, mag_y, mag_z = sensor.magnetic
        gyro_x, gyro_y, gyro_z = sensor.gyro
        temp = sensor.temperature
        print('Acceleration (m/s^2): ({0:0.3f},{1:0.3f},{2:0.3f})'.format(accel_x, accel_y, accel_z))
        print('Magnetometer (gauss): ({0:0.3f},{1:0.3f},{2:0.3f})'.format(mag_x, mag_y, mag_z))
        print('Gyroscope (degrees/sec): ({0:0.3f},{1:0.3f},{2:0.3f})'.format(gyro_x, gyro_y, gyro_z))
        print('Temperature: {0:0.3f}C'.format(temp))
        time.sleep(1.0)

Documentation
=============

API documentation for this library can be found on `Read the Docs <https://docs.circuitpython.org/projects/lsm9ds0/en/latest/>`_.

For information on building library documentation, please check out `this guide <https://learn.adafruit.com/creating-and-sharing-a-circuitpython-library/sharing-our-docs-on-readthedocs#sphinx-5-1>`_.

Contributing
============

Contributions are welcome! Please read our `Code of Conduct
<https://github.com/adafruit/Adafruit_CircuitPython_lsm9ds0/blob/main/CODE_OF_CONDUCT.md>`_
before contributing to help this project stay welcoming.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "adafruit-circuitpython-lsm9ds0",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "adafruit, lsm9ds0, accelerometer, magnetometer, gyroscope, breakout, hardwaremicropython, circuitpython",
    "author": null,
    "author_email": "Adafruit Industries <circuitpython@adafruit.com>",
    "download_url": "https://files.pythonhosted.org/packages/9a/f8/732a44819a2916e5bf59ca409eeac2fa32372af2ab1bdfe4b53a94543622/adafruit_circuitpython_lsm9ds0-2.2.18.tar.gz",
    "platform": null,
    "description": "\nIntroduction\n============\n\n.. image:: https://readthedocs.org/projects/adafruit-circuitpython-lsm9ds0/badge/?version=latest\n    :target: https://docs.circuitpython.org/projects/lsm9ds0/en/latest/\n    :alt: Documentation Status\n\n.. image:: https://raw.githubusercontent.com/adafruit/Adafruit_CircuitPython_Bundle/main/badges/adafruit_discord.svg\n    :target: https://adafru.it/discord\n    :alt: Discord\n\n.. image:: https://github.com/adafruit/Adafruit_CircuitPython_LSM9DS0/workflows/Build%20CI/badge.svg\n    :target: https://github.com/adafruit/Adafruit_CircuitPython_LSM9DS0/actions/\n    :alt: Build Status\n\n.. image:: https://img.shields.io/badge/code%20style-black-000000.svg\n    :target: https://github.com/psf/black\n    :alt: Code Style: Black\n\nCircuitPython module for the LSM9DS0 accelerometer, magnetometer, gyroscope.\n\nDependencies\n=============\nThis driver depends on:\n\n* `Adafruit CircuitPython <https://github.com/adafruit/circuitpython>`_\n* `Bus Device <https://github.com/adafruit/Adafruit_CircuitPython_BusDevice>`_\n\nPlease ensure all dependencies are available on the CircuitPython filesystem.\nThis is easily achieved by downloading\n`the Adafruit library and driver bundle <https://github.com/adafruit/Adafruit_CircuitPython_Bundle>`_.\n\nInstalling from PyPI\n=====================\nOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from\nPyPI <https://pypi.org/project/adafruit-circuitpython-lsm9ds0/>`_. To install for current user:\n\n.. code-block:: shell\n\n    pip3 install adafruit-circuitpython-lsm9ds0\n\nTo install system-wide (this may be required in some cases):\n\n.. code-block:: shell\n\n    sudo pip3 install adafruit-circuitpython-lsm9ds0\n\nTo install in a virtual environment in your current project:\n\n.. code-block:: shell\n\n    mkdir project-name && cd project-name\n    python3 -m venv .venv\n    source .venv/bin/activate\n    pip3 install adafruit-circuitpython-lsm9ds0\n\nUsage Example\n=============\n\n.. code-block:: python\n\n    import time\n    import board\n    import busioimport adafruit_lsm9ds0\n\n    i2c = busio.I2C(board.SCL, board.SDA)\n    sensor = adafruit_lsm9ds0.LSM9DS0_I2C(i2c)\n\n    while True:\n        accel_x, accel_y, accel_z = sensor.acceleration\n        mag_x, mag_y, mag_z = sensor.magnetic\n        gyro_x, gyro_y, gyro_z = sensor.gyro\n        temp = sensor.temperature\n        print('Acceleration (m/s^2): ({0:0.3f},{1:0.3f},{2:0.3f})'.format(accel_x, accel_y, accel_z))\n        print('Magnetometer (gauss): ({0:0.3f},{1:0.3f},{2:0.3f})'.format(mag_x, mag_y, mag_z))\n        print('Gyroscope (degrees/sec): ({0:0.3f},{1:0.3f},{2:0.3f})'.format(gyro_x, gyro_y, gyro_z))\n        print('Temperature: {0:0.3f}C'.format(temp))\n        time.sleep(1.0)\n\nDocumentation\n=============\n\nAPI documentation for this library can be found on `Read the Docs <https://docs.circuitpython.org/projects/lsm9ds0/en/latest/>`_.\n\nFor information on building library documentation, please check out `this guide <https://learn.adafruit.com/creating-and-sharing-a-circuitpython-library/sharing-our-docs-on-readthedocs#sphinx-5-1>`_.\n\nContributing\n============\n\nContributions are welcome! Please read our `Code of Conduct\n<https://github.com/adafruit/Adafruit_CircuitPython_lsm9ds0/blob/main/CODE_OF_CONDUCT.md>`_\nbefore contributing to help this project stay welcoming.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "CircuitPython library for LSM9DS0 accelerometer, magnetometer, gyroscope.",
    "version": "2.2.18",
    "project_urls": {
        "Homepage": "https://github.com/adafruit/Adafruit_CircuitPython_LSM9DS0"
    },
    "split_keywords": [
        "adafruit",
        " lsm9ds0",
        " accelerometer",
        " magnetometer",
        " gyroscope",
        " breakout",
        " hardwaremicropython",
        " circuitpython"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a37fe5e712cbbebb92d2f8bc3eabd32bb0434c1febbc85f437ba23753d9a84bf",
                "md5": "0af82a487e28e84132f957cdc2a975e0",
                "sha256": "06e8e437feba9e5d205de0c4feebc159595316c5ff8d012175592fc3f2df468d"
            },
            "downloads": -1,
            "filename": "adafruit_circuitpython_lsm9ds0-2.2.18-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "0af82a487e28e84132f957cdc2a975e0",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 7328,
            "upload_time": "2024-10-07T22:06:31",
            "upload_time_iso_8601": "2024-10-07T22:06:31.414621Z",
            "url": "https://files.pythonhosted.org/packages/a3/7f/e5e712cbbebb92d2f8bc3eabd32bb0434c1febbc85f437ba23753d9a84bf/adafruit_circuitpython_lsm9ds0-2.2.18-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9af8732a44819a2916e5bf59ca409eeac2fa32372af2ab1bdfe4b53a94543622",
                "md5": "015a4190d1fb625181134ee61480f7df",
                "sha256": "f500178c60e6701682df140d63f36862fa06e72162e40f41a70299d1387cbd78"
            },
            "downloads": -1,
            "filename": "adafruit_circuitpython_lsm9ds0-2.2.18.tar.gz",
            "has_sig": false,
            "md5_digest": "015a4190d1fb625181134ee61480f7df",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 28555,
            "upload_time": "2024-10-07T22:06:32",
            "upload_time_iso_8601": "2024-10-07T22:06:32.271950Z",
            "url": "https://files.pythonhosted.org/packages/9a/f8/732a44819a2916e5bf59ca409eeac2fa32372af2ab1bdfe4b53a94543622/adafruit_circuitpython_lsm9ds0-2.2.18.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-07 22:06:32",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "adafruit",
    "github_project": "Adafruit_CircuitPython_LSM9DS0",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "adafruit-circuitpython-lsm9ds0"
}
        
Elapsed time: 0.91989s