{ "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-fxos8700/badge/?version=latest\n :target: https://circuitpython.readthedocs.io/projects/fxos8700/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_FXOS8700.svg?branch=master\n :target: https://travis-ci.com/adafruit/Adafruit_CircuitPython_FXOS8700\n :alt: Build Status\n\nCircuitPython module for the NXP FXOS8700 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\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-fxos8700\n\nTo install system-wide (this may be required in some cases):\n\n.. code-block:: shell\n\n sudo pip3 install adafruit-circuitpython-fxos8700\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-fxos8700\n\nUsage Example\n=============\n\n.. code-block:: python\n\n import time\n import board\n import busio\n import adafruit_fxos8700\n\n i2c = busio.I2C(board.SCL, board.SDA)\n sensor = adafruit_fxos8700.FXOS8700(i2c)\n\n while True:\n accel_x, accel_y, accel_z = sensor.accelerometer\n mag_x, mag_y, mag_z = sensor.magnetometer\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 (uTesla): ({0:0.3f}, {1:0.3f}, {2:0.3f})'.format(mag_x, mag_y, mag_z))\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-fxos8700 --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_FXOS8700", "keywords": "adafruit nxp fxos8700 accelerometer magnetometer breakout hardware micropython circuitpython", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "adafruit-circuitpython-fxos8700", "package_url": "https://pypi.org/project/adafruit-circuitpython-fxos8700/", "platform": "", "project_url": "https://pypi.org/project/adafruit-circuitpython-fxos8700/", "project_urls": { "Homepage": "https://github.com/adafruit/Adafruit_CircuitPython_FXOS8700" }, "release_url": "https://pypi.org/project/adafruit-circuitpython-fxos8700/2.0.1/", "requires_dist": null, "requires_python": "", "summary": "CircuitPython library for NXP FXOS8700 accelerometer and magnetometer.", "version": "2.0.1" }, "last_serial": 5881295, "releases": { "1.1.0": [ { "comment_text": "", "digests": { "md5": "a95ebe2ccf003fc1598aabd609d8c11a", "sha256": "9a1e1ec89c599c0b15b82e613dafacae589283ca7e6d83d7bc41fc8f6be3d1ff" }, "downloads": -1, "filename": "adafruit-circuitpython-fxos8700-1.1.0.tar.gz", "has_sig": false, "md5_digest": "a95ebe2ccf003fc1598aabd609d8c11a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20808, "upload_time": "2018-08-05T17:00:20", "url": "https://files.pythonhosted.org/packages/9f/75/e9ec5d6777b0102b333ebbde8ad7e4184c6916889d4f1972c901af286325/adafruit-circuitpython-fxos8700-1.1.0.tar.gz" } ], "1.2.0": [ { "comment_text": "", "digests": { "md5": "af7d6be8ea08ec74112c3412edcaa8b2", "sha256": "9b061542c87ee75ad348d2a7be7a559cfa6082fa774580f07365a83d0f8af279" }, "downloads": -1, "filename": "adafruit-circuitpython-fxos8700-1.2.0.tar.gz", "has_sig": false, "md5_digest": "af7d6be8ea08ec74112c3412edcaa8b2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20823, "upload_time": "2018-08-19T20:57:41", "url": "https://files.pythonhosted.org/packages/59/02/db48a9179f244addf28f736f3bf606af2673dd5876da94e056bdcf46e6bb/adafruit-circuitpython-fxos8700-1.2.0.tar.gz" } ], "1.2.1": [ { "comment_text": "", "digests": { "md5": "7a539512d9dab8f8272a6308a54ed1d8", "sha256": "7c5ae173b1123c5186a21c2b58dd2ad073365c18e27cc9ec5d4a2347e5dc75e4" }, "downloads": -1, "filename": "adafruit-circuitpython-fxos8700-1.2.1.tar.gz", "has_sig": false, "md5_digest": "7a539512d9dab8f8272a6308a54ed1d8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20831, "upload_time": "2018-11-12T20:14:57", "url": "https://files.pythonhosted.org/packages/a8/f4/1f17d36e95735f8583cd3c0cfcc43d452b73f9cc6e7ef07a2a2cf06e4937/adafruit-circuitpython-fxos8700-1.2.1.tar.gz" } ], "1.2.2": [ { "comment_text": "", "digests": { "md5": "87c8e40faca3289abb4169eb272f6e9a", "sha256": "87f74ee71ad9a2dc7b1aec94219492567d978ad4d4c409e233133179df2c279d" }, "downloads": -1, "filename": "adafruit-circuitpython-fxos8700-1.2.2.tar.gz", "has_sig": false, "md5_digest": "87c8e40faca3289abb4169eb272f6e9a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20207, "upload_time": "2019-01-15T03:16:57", "url": "https://files.pythonhosted.org/packages/de/d0/822b13cb73050532be4e4fda8ebc11ba0332e1cb68aa70d6c14c2df3ec7a/adafruit-circuitpython-fxos8700-1.2.2.tar.gz" } ], "2.0.0": [ { "comment_text": "", "digests": { "md5": "e2b9b6c1416546f7ed28ebd9736f745d", "sha256": "ff16823ede2f02d65733e22199b880e4dc846a5c5399b26009ecc64d976a0688" }, "downloads": -1, "filename": "adafruit-circuitpython-fxos8700-2.0.0.tar.gz", "has_sig": false, "md5_digest": "e2b9b6c1416546f7ed28ebd9736f745d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20194, "upload_time": "2019-08-23T18:25:39", "url": "https://files.pythonhosted.org/packages/53/b5/6f4be5dfbcde78f96a481fa34553b77989207406b776521aa79f985f733b/adafruit-circuitpython-fxos8700-2.0.0.tar.gz" } ], "2.0.1": [ { "comment_text": "", "digests": { "md5": "afc6be97ffa9b495b7640f3e34d40b08", "sha256": "1c88e93666a83d4e918cd2ffcd2b0db3fdbdc449e8ac8be0d412137d98a6e69f" }, "downloads": -1, "filename": "adafruit-circuitpython-fxos8700-2.0.1.tar.gz", "has_sig": false, "md5_digest": "afc6be97ffa9b495b7640f3e34d40b08", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20575, "upload_time": "2019-09-24T18:27:37", "url": "https://files.pythonhosted.org/packages/5b/b6/b1ae820d5b09be781f5f6d353926662d28c9a8ed6da01066966afcf10bff/adafruit-circuitpython-fxos8700-2.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "afc6be97ffa9b495b7640f3e34d40b08", "sha256": "1c88e93666a83d4e918cd2ffcd2b0db3fdbdc449e8ac8be0d412137d98a6e69f" }, "downloads": -1, "filename": "adafruit-circuitpython-fxos8700-2.0.1.tar.gz", "has_sig": false, "md5_digest": "afc6be97ffa9b495b7640f3e34d40b08", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20575, "upload_time": "2019-09-24T18:27:37", "url": "https://files.pythonhosted.org/packages/5b/b6/b1ae820d5b09be781f5f6d353926662d28c9a8ed6da01066966afcf10bff/adafruit-circuitpython-fxos8700-2.0.1.tar.gz" } ] }