{ "info": { "author": "Adafruit Industries", "author_email": "circuitpython@adafruit.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Software Development :: Libraries", "Topic :: System :: Hardware" ], "description": "Introduction\n============\n\n.. image:: https://readthedocs.org/projects/adafruit-circuitpython-lsm9ds0/badge/?version=latest\n :target: https://circuitpython.readthedocs.io/projects/lsm9ds0/en/latest/\n :alt: Documentation Status\n\n.. image :: https://img.shields.io/discord/327254708534116352.svg\n :target: https://discord.gg/nBQh6qu\n :alt: Discord\n\n.. image:: https://travis-ci.com/adafruit/Adafruit_CircuitPython_LSM9DS0.svg?branch=master\n :target: https://travis-ci.com/adafruit/Adafruit_CircuitPython_LSM9DS0\n :alt: Build Status\n\nCircuitPython module for the LSM9DS0 accelerometer, magnetometer, gyroscope.\n\nDependencies\n=============\nThis driver depends on:\n\n* `Adafruit CircuitPython `_\n* `Bus Device `_\n\nPlease ensure all dependencies are available on the CircuitPython filesystem.\nThis is easily achieved by downloading\n`the Adafruit library and driver bundle `_.\n\nInstalling from PyPI\n=====================\nOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from\nPyPI `_. 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 .env\n source .env/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\nContributing\n============\n\nContributions are welcome! Please read our `Code of Conduct\n`_\nbefore contributing to help this project stay welcoming.\n\nBuilding locally\n================\n\nTo build this library locally you'll need to install the\n`circuitpython-build-tools `_ package.\n\n.. code-block:: shell\n\n python3 -m venv .env\n source .env/bin/activate\n pip install circuitpython-build-tools\n\nOnce installed, make sure you are in the virtual environment:\n\n.. code-block:: shell\n\n source .env/bin/activate\n\nThen run the build:\n\n.. code-block:: shell\n\n circuitpython-build-bundles --filename_prefix adafruit-circuitpython-lsm9ds0 --library_location .\n\nSphinx documentation\n-----------------------\n\nSphinx is used to build the documentation based on rST files and comments in the code. First,\ninstall dependencies (feel free to reuse the virtual environment from above):\n\n.. code-block:: shell\n\n python3 -m venv .env\n source .env/bin/activate\n pip install Sphinx sphinx-rtd-theme\n\nNow, once you have the virtual environment activated:\n\n.. code-block:: shell\n\n cd docs\n sphinx-build -E -W -b html . _build/html\n\nThis will output the documentation to ``docs/_build/html``. Open the index.html in your browser to\nview them. It will also (due to -W) error out on any warning like Travis will. This is a good way to\nlocally verify it will pass.", "description_content_type": "text/x-rst", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/adafruit/Adafruit_CircuitPython_LSM9DS0", "keywords": "adafruit lsm9ds0 accelerometer magnetometer gyroscope breakout hardwaremicropython circuitpython", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "adafruit-circuitpython-lsm9ds0", "package_url": "https://pypi.org/project/adafruit-circuitpython-lsm9ds0/", "platform": "", "project_url": "https://pypi.org/project/adafruit-circuitpython-lsm9ds0/", "project_urls": { "Homepage": "https://github.com/adafruit/Adafruit_CircuitPython_LSM9DS0" }, "release_url": "https://pypi.org/project/adafruit-circuitpython-lsm9ds0/2.1.2/", "requires_dist": null, "requires_python": "", "summary": "CircuitPython library for LSM9DS0 accelerometer, magnetometer, gyroscope.", "version": "2.1.2" }, "last_serial": 5881307, "releases": { "1.1.0": [ { "comment_text": "", "digests": { "md5": "578291ab610c314236e08e61f5ba749d", "sha256": "ec0440b790a527de3f2af8be822b9e75bdd4a59b26218852113aa0e9a9bf0643" }, "downloads": -1, "filename": "adafruit-circuitpython-lsm9ds0-1.1.0.tar.gz", "has_sig": false, "md5_digest": "578291ab610c314236e08e61f5ba749d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22289, "upload_time": "2018-08-06T20:48:48", "url": "https://files.pythonhosted.org/packages/94/36/d4850e22ab7c496b992f6760d0eb81ea318917170febb7ddb91767a4a617/adafruit-circuitpython-lsm9ds0-1.1.0.tar.gz" } ], "2.0.0": [ { "comment_text": "", "digests": { "md5": "a76fa1b86adef1a5ca6fa4332ef3bade", "sha256": "458ef3b6e5142b5d612655981c390f08ffdd779519b18fd2e06308a762deabfe" }, "downloads": -1, "filename": "adafruit-circuitpython-lsm9ds0-2.0.0.tar.gz", "has_sig": false, "md5_digest": "a76fa1b86adef1a5ca6fa4332ef3bade", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22030, "upload_time": "2018-09-18T21:23:07", "url": "https://files.pythonhosted.org/packages/7d/a2/30e562d85278d339684706e836846e2758667d07811d09f4db37c13655ab/adafruit-circuitpython-lsm9ds0-2.0.0.tar.gz" } ], "2.1.0": [ { "comment_text": "", "digests": { "md5": "4503726a0a5990f882a66cf518fa51a5", "sha256": "4a075f281596fcb434d09b2a4e7d398bedde495418fdedfdf71a778ab31596f6" }, "downloads": -1, "filename": "adafruit-circuitpython-lsm9ds0-2.1.0.tar.gz", "has_sig": false, "md5_digest": "4503726a0a5990f882a66cf518fa51a5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22173, "upload_time": "2018-11-29T22:53:36", "url": "https://files.pythonhosted.org/packages/49/32/a673d02e2068f032aab41368a33fa371745a4a2bc4734c1fb0e0c6b3e406/adafruit-circuitpython-lsm9ds0-2.1.0.tar.gz" } ], "2.1.1": [ { "comment_text": "", "digests": { "md5": "4d295caf50b697014c066f2b7b33ff35", "sha256": "16a5df57f555db464ac6c58106b8b8019276afdbdce22d96e43bd07b2df03308" }, "downloads": -1, "filename": "adafruit-circuitpython-lsm9ds0-2.1.1.tar.gz", "has_sig": false, "md5_digest": "4d295caf50b697014c066f2b7b33ff35", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21521, "upload_time": "2019-01-16T02:29:52", "url": "https://files.pythonhosted.org/packages/25/48/c0eedc6370c39447ac1ff2ff5f804bb5f9ab9edb162210aca78ad33a71e1/adafruit-circuitpython-lsm9ds0-2.1.1.tar.gz" } ], "2.1.2": [ { "comment_text": "", "digests": { "md5": "9d53125a34e0777fcac294d379d0d635", "sha256": "239bba0bbb51cf9f59fdb15ff91233629cb4065a76cce054cabe1224f16df5a9" }, "downloads": -1, "filename": "adafruit-circuitpython-lsm9ds0-2.1.2.tar.gz", "has_sig": false, "md5_digest": "9d53125a34e0777fcac294d379d0d635", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21984, "upload_time": "2019-09-24T18:30:27", "url": "https://files.pythonhosted.org/packages/a2/a2/6c921bc288dadfe3101ae07d6970a506df94a4827469f03f9b5206005e70/adafruit-circuitpython-lsm9ds0-2.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9d53125a34e0777fcac294d379d0d635", "sha256": "239bba0bbb51cf9f59fdb15ff91233629cb4065a76cce054cabe1224f16df5a9" }, "downloads": -1, "filename": "adafruit-circuitpython-lsm9ds0-2.1.2.tar.gz", "has_sig": false, "md5_digest": "9d53125a34e0777fcac294d379d0d635", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21984, "upload_time": "2019-09-24T18:30:27", "url": "https://files.pythonhosted.org/packages/a2/a2/6c921bc288dadfe3101ae07d6970a506df94a4827469f03f9b5206005e70/adafruit-circuitpython-lsm9ds0-2.1.2.tar.gz" } ] }