{ "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-lsm303/badge/?version=latest\n :target: https://circuitpython.readthedocs.io/projects/lsm303/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_LSM303.svg?branch=master\n :target: https://travis-ci.com/adafruit/Adafruit_CircuitPython_LSM303\n :alt: Build Status\n\nAdafruit CircuitPython module for the LSM303 6-DoF with 3-axis accelerometer and magnetometer\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\nUsage Example\n=============\n\n.. code-block:: python\n\n\timport time\n\timport board\n\timport busio\n\n\timport adafruit_lsm303\n\n\ti2c = busio.I2C(board.SCL, board.SDA)\n\tsensor = adafruit_lsm303.LSM303(i2c)\n\n\twhile True:\n\t\traw_accel_x, raw_accel_y, raw_accel_z = sensor.raw_acceleration\n\t\taccel_x, accel_y, accel_z = sensor.acceleration\n\t\traw_mag_x, raw_mag_y, raw_mag_z = sensor.raw_magnetic\n\t\tmag_x, mag_y, mag_z = sensor.magnetic\n\n\t\tprint('Acceleration raw: ({0:6d}, {1:6d}, {2:6d}), (m/s^2): ({3:10.3f}, {4:10.3f}, {5:10.3f})'.format(raw_accel_x, raw_accel_y, raw_accel_z, accel_x, accel_y, accel_z))\n\t\tprint('Magnetometer raw: ({0:6d}, {1:6d}, {2:6d}), (gauss): ({3:10.3f}, {4:10.3f}, {5:10.3f})'.format(raw_mag_x, raw_mag_y, raw_mag_z, mag_x, mag_y, mag_z))\n\t\tprint('')\n\t\ttime.sleep(1.0)\n\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-lsm303 --library_location .\n\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_LSM303", "keywords": "adafruit lsm303 6dof 6-dof accelerometer magnetometer axisbreakout hardware micropython circuitpython", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "adafruit-circuitpython-lsm303", "package_url": "https://pypi.org/project/adafruit-circuitpython-lsm303/", "platform": "", "project_url": "https://pypi.org/project/adafruit-circuitpython-lsm303/", "project_urls": { "Homepage": "https://github.com/adafruit/Adafruit_CircuitPython_LSM303" }, "release_url": "https://pypi.org/project/adafruit-circuitpython-lsm303/1.2.5/", "requires_dist": null, "requires_python": "", "summary": "CircuitPython library for LSM303 6-DoF with 3-axis accelerometer and magnetometer.", "version": "1.2.5" }, "last_serial": 5722889, "releases": { "1.2.0": [ { "comment_text": "", "digests": { "md5": "552e69cf7fe33c3438337ca76237bc5c", "sha256": "60ec77b61bc241fc2ac80d5f7bdd6afd8aa358d78e63aba29cf53cdf00e6fecf" }, "downloads": -1, "filename": "adafruit-circuitpython-lsm303-1.2.0.tar.gz", "has_sig": false, "md5_digest": "552e69cf7fe33c3438337ca76237bc5c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21574, "upload_time": "2018-08-06T20:46:50", "url": "https://files.pythonhosted.org/packages/bc/85/72217ef0ea1d3edccb411ac48cb189d1fcf9c0756ae52311d73f0074cbb3/adafruit-circuitpython-lsm303-1.2.0.tar.gz" } ], "1.2.1": [ { "comment_text": "", "digests": { "md5": "e45221f3105beeaa97f3e5c6fea8f29b", "sha256": "06cb155939d341cb20016d40455ae9f8dc3df67e2ec74ce8d85976720bd01587" }, "downloads": -1, "filename": "adafruit-circuitpython-lsm303-1.2.1.tar.gz", "has_sig": false, "md5_digest": "e45221f3105beeaa97f3e5c6fea8f29b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21576, "upload_time": "2018-10-12T19:24:25", "url": "https://files.pythonhosted.org/packages/83/78/fcdfc2871e16405404b262e64ca47734234b9c72341c9ade8b301accc4b1/adafruit-circuitpython-lsm303-1.2.1.tar.gz" } ], "1.2.2": [ { "comment_text": "", "digests": { "md5": "acb9df126a9ddc21bdad56825e4596ad", "sha256": "8114aa3b3e3eb1e7a699392de5a24be873e63078c3d998267bbbf2550dfad2bd" }, "downloads": -1, "filename": "adafruit-circuitpython-lsm303-1.2.2.tar.gz", "has_sig": false, "md5_digest": "acb9df126a9ddc21bdad56825e4596ad", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21559, "upload_time": "2018-11-12T20:22:10", "url": "https://files.pythonhosted.org/packages/aa/9c/6abc98e601a15fad16e7617757f7b3bbaee2441ae3e49d32b94c2009e904/adafruit-circuitpython-lsm303-1.2.2.tar.gz" } ], "1.2.3": [ { "comment_text": "", "digests": { "md5": "40784214cf3e1253b3ece4f4d659b7a6", "sha256": "af40c3082ff223a16162cc4beb79937a503e28f867b6ccd00cac831ccda97749" }, "downloads": -1, "filename": "adafruit-circuitpython-lsm303-1.2.3.tar.gz", "has_sig": false, "md5_digest": "40784214cf3e1253b3ece4f4d659b7a6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21010, "upload_time": "2019-01-15T00:36:31", "url": "https://files.pythonhosted.org/packages/e9/0e/2f4725de7dccf78f6a27156166f2d7f5cf70b6a313b3bbb9cc567615b1d7/adafruit-circuitpython-lsm303-1.2.3.tar.gz" } ], "1.2.4": [ { "comment_text": "", "digests": { "md5": "c32bd85f78512798753f3395b261a30e", "sha256": "d65c4841dad61dd77b982603d4b0ebcb9429466aea9db3fdfe0c87086d5a464e" }, "downloads": -1, "filename": "adafruit-circuitpython-lsm303-1.2.4.tar.gz", "has_sig": false, "md5_digest": "c32bd85f78512798753f3395b261a30e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20874, "upload_time": "2019-05-11T17:44:50", "url": "https://files.pythonhosted.org/packages/4f/98/0338c9be6aa192a73d0d8983c931fe768eafe8c402db622511b86468ee80/adafruit-circuitpython-lsm303-1.2.4.tar.gz" } ], "1.2.5": [ { "comment_text": "", "digests": { "md5": "9ad71d43bef5a4b4c7bd9063a78f47da", "sha256": "a400b8342045f02757cc85cbc8b33e07551cf48679ad282b541a51d495a2a155" }, "downloads": -1, "filename": "adafruit-circuitpython-lsm303-1.2.5.tar.gz", "has_sig": false, "md5_digest": "9ad71d43bef5a4b4c7bd9063a78f47da", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20888, "upload_time": "2019-08-23T21:29:18", "url": "https://files.pythonhosted.org/packages/f1/cc/063ded5499b71ea86dab031de29608ffda768b945339e13fdb42e01433f8/adafruit-circuitpython-lsm303-1.2.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9ad71d43bef5a4b4c7bd9063a78f47da", "sha256": "a400b8342045f02757cc85cbc8b33e07551cf48679ad282b541a51d495a2a155" }, "downloads": -1, "filename": "adafruit-circuitpython-lsm303-1.2.5.tar.gz", "has_sig": false, "md5_digest": "9ad71d43bef5a4b4c7bd9063a78f47da", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20888, "upload_time": "2019-08-23T21:29:18", "url": "https://files.pythonhosted.org/packages/f1/cc/063ded5499b71ea86dab031de29608ffda768b945339e13fdb42e01433f8/adafruit-circuitpython-lsm303-1.2.5.tar.gz" } ] }