{ "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-msa301/badge/?version=latest\n :target: https://circuitpython.readthedocs.io/projects/msa301/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_MSA301.svg?branch=master\n :target: https://travis-ci.com/adafruit/Adafruit_CircuitPython_MSA301\n :alt: Build Status\n\nCircuitPython library for the MSA301 Accelerometer\n\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\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-msa301\n\nTo install system-wide (this may be required in some cases):\n\n.. code-block:: shell\n\n sudo pip3 install adafruit-circuitpython-msa301\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-msa301\n\nUsage Example\n=============\n\n.. code-block: python3\n import time\n import board\n import adafruit_msa301\n import busio\n\n i2c = busio.I2C(board.SCL, board.SDA)\n\n msa = adafruit_msa301.MSA301(i2c)\n while True:\n print(\"%f %f %f\"%msa.acceleration)\n time.sleep(0.125)\n\nContributing\n============\n\nContributions are welcome! Please read our `Code of Conduct\n`_\nbefore contributing to help this project stay welcoming.\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_MSA301", "keywords": "adafruit blinka circuitpython micropython msa301 accelerometer msa", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "adafruit-circuitpython-msa301", "package_url": "https://pypi.org/project/adafruit-circuitpython-msa301/", "platform": "", "project_url": "https://pypi.org/project/adafruit-circuitpython-msa301/", "project_urls": { "Homepage": "https://github.com/adafruit/Adafruit_CircuitPython_MSA301" }, "release_url": "https://pypi.org/project/adafruit-circuitpython-msa301/1.1.0/", "requires_dist": null, "requires_python": "", "summary": "CircuitPython library for the MSA301 Accelerometer", "version": "1.1.0" }, "last_serial": 5838213, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "5965fc0e7e386d7601c9cffbb5f0e061", "sha256": "dddbf7c1453575d99e9f7d1c6ac7f08017962f8127ef82a0bf706df01428f0ae" }, "downloads": -1, "filename": "adafruit-circuitpython-msa301-1.0.0.tar.gz", "has_sig": false, "md5_digest": "5965fc0e7e386d7601c9cffbb5f0e061", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19632, "upload_time": "2019-08-20T20:27:09", "url": "https://files.pythonhosted.org/packages/c0/6b/8ee40bcddadfd273f21be67baaa6559a306cefdf4ba9c89decd7221aa835/adafruit-circuitpython-msa301-1.0.0.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "dcbf9ebf654deb7a86de77b915afc263", "sha256": "1f3559c4c0bf71f1c1a60924dc913b965f52d93a95998f746a554af06865c7d7" }, "downloads": -1, "filename": "adafruit-circuitpython-msa301-1.1.0.tar.gz", "has_sig": false, "md5_digest": "dcbf9ebf654deb7a86de77b915afc263", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20776, "upload_time": "2019-09-16T20:57:28", "url": "https://files.pythonhosted.org/packages/9c/72/995762bd804e0df6cd4ea55245740fc7c10322d06fb02115c7e5d187133a/adafruit-circuitpython-msa301-1.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "dcbf9ebf654deb7a86de77b915afc263", "sha256": "1f3559c4c0bf71f1c1a60924dc913b965f52d93a95998f746a554af06865c7d7" }, "downloads": -1, "filename": "adafruit-circuitpython-msa301-1.1.0.tar.gz", "has_sig": false, "md5_digest": "dcbf9ebf654deb7a86de77b915afc263", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20776, "upload_time": "2019-09-16T20:57:28", "url": "https://files.pythonhosted.org/packages/9c/72/995762bd804e0df6cd4ea55245740fc7c10322d06fb02115c7e5d187133a/adafruit-circuitpython-msa301-1.1.0.tar.gz" } ] }