{ "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-lsm303agr-mag/badge/?version=latest\n :target: https://circuitpython.readthedocs.io/projects/lsm303agr-mag/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_LSM303AGR_Mag.svg?branch=master\n :target: https://travis-ci.com/adafruit/Adafruit_CircuitPython_LSM303AGR_Mag\n :alt: Build Status\n\nAdafruit CircuitPython module for the LSM303AGR's 3-axis magnetometer\n\nDependencies\n=============\nThis driver depends on:\n\n* `Adafruit CircuitPython `_\n* `Bus Device `_\n* `Register `_\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 import time\n import board\n import busio\n import adafruit_lsm303agr_mag\n\n i2c = busio.I2C(board.SCL, board.SDA)\n sensor = adafruit_lsm303agr_mag.LSM303AGR_Mag(i2c)\n\n while True:\n mag_x, mag_y, mag_z = sensor.magnetic\n\n print('Magnetometer (gauss): ({0:10.3f}, {1:10.3f}, {2:10.3f})'.format(mag_x, mag_y, mag_z))\n print('')\n time.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-lsm303agr-mag --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_LSM303AGR_Mag", "keywords": "adafruit lsm303 6dof 6-dof magnetometer axisbreakout hardware micropython circuitpython", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "adafruit-circuitpython-lsm303agr-mag", "package_url": "https://pypi.org/project/adafruit-circuitpython-lsm303agr-mag/", "platform": "", "project_url": "https://pypi.org/project/adafruit-circuitpython-lsm303agr-mag/", "project_urls": { "Homepage": "https://github.com/adafruit/Adafruit_CircuitPython_LSM303AGR_Mag" }, "release_url": "https://pypi.org/project/adafruit-circuitpython-lsm303agr-mag/1.0.0/", "requires_dist": null, "requires_python": "", "summary": "CircuitPython library for LSM303AGR's 3-axis magnetometer.", "version": "1.0.0" }, "last_serial": 5973896, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "68b839ee049a1829fef6611c5269a934", "sha256": "ded8cb2d14c25197b3f7d5327078ed120ebae86ddd807445be34aadeac7f830c" }, "downloads": -1, "filename": "adafruit-circuitpython-lsm303agr-mag-1.0.0.tar.gz", "has_sig": false, "md5_digest": "68b839ee049a1829fef6611c5269a934", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20474, "upload_time": "2019-10-14T22:55:07", "url": "https://files.pythonhosted.org/packages/c4/88/c47e7a99c2bf2478e386d5a22fbe43921110b29c48d8408c668f159fef84/adafruit-circuitpython-lsm303agr-mag-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "68b839ee049a1829fef6611c5269a934", "sha256": "ded8cb2d14c25197b3f7d5327078ed120ebae86ddd807445be34aadeac7f830c" }, "downloads": -1, "filename": "adafruit-circuitpython-lsm303agr-mag-1.0.0.tar.gz", "has_sig": false, "md5_digest": "68b839ee049a1829fef6611c5269a934", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20474, "upload_time": "2019-10-14T22:55:07", "url": "https://files.pythonhosted.org/packages/c4/88/c47e7a99c2bf2478e386d5a22fbe43921110b29c48d8408c668f159fef84/adafruit-circuitpython-lsm303agr-mag-1.0.0.tar.gz" } ] }