adafruit-circuitpython-mlx90640


Nameadafruit-circuitpython-mlx90640 JSON
Version 1.3.3 PyPI version JSON
download
home_pageNone
SummaryDriver for the MLX90640 thermal camera
upload_time2024-10-07 22:13:32
maintainerNone
docs_urlNone
authorNone
requires_pythonNone
licenseMIT
keywords adafruit blinka circuitpython micropython mlx90640 thermal camera ir flir
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Introduction
============

.. image:: https://readthedocs.org/projects/adafruit-circuitpython-mlx90640/badge/?version=latest
    :target: https://docs.circuitpython.org/projects/mlx90640/en/latest/
    :alt: Documentation Status

.. image:: https://raw.githubusercontent.com/adafruit/Adafruit_CircuitPython_Bundle/main/badges/adafruit_discord.svg
    :target: https://adafru.it/discord
    :alt: Discord

.. image:: https://github.com/adafruit/Adafruit_CircuitPython_MLX90640/workflows/Build%20CI/badge.svg
    :target: https://github.com/adafruit/Adafruit_CircuitPython_MLX90640/actions
    :alt: Build Status

.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
    :target: https://github.com/psf/black
    :alt: Code Style: Black

Driver for the MLX90640 thermal camera


Dependencies
=============
This driver depends on:

* `Adafruit CircuitPython <https://github.com/adafruit/circuitpython>`_
* `Bus Device <https://github.com/adafruit/Adafruit_CircuitPython_BusDevice>`_
* `Register <https://github.com/adafruit/Adafruit_CircuitPython_Register>`_

Please ensure all dependencies are available on the CircuitPython filesystem.
This is easily achieved by downloading
`the Adafruit library and driver bundle <https://circuitpython.org/libraries>`_.

Installing from PyPI
=====================
On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from
PyPI <https://pypi.org/project/adafruit-circuitpython-mlx90640/>`_. To install for current user:

.. code-block:: shell

    pip3 install adafruit-circuitpython-mlx90640

To install system-wide (this may be required in some cases):

.. code-block:: shell

    sudo pip3 install adafruit-circuitpython-mlx90640

To install in a virtual environment in your current project:

.. code-block:: shell

    mkdir project-name && cd project-name
    python3 -m venv .venv
    source .venv/bin/activate
    pip3 install adafruit-circuitpython-mlx90640

Usage Example
=============

.. code-block:: python

	import time
	import board
	import busio
	import adafruit_mlx90640

	i2c = busio.I2C(board.SCL, board.SDA, frequency=800000)

	mlx = adafruit_mlx90640.MLX90640(i2c)
	print("MLX addr detected on I2C", [hex(i) for i in mlx.serial_number])

        # if using higher refresh rates yields a 'too many retries' exception,
        # try decreasing this value to work with certain pi/camera combinations
	mlx.refresh_rate = adafruit_mlx90640.RefreshRate.REFRESH_2_HZ

	frame = [0] * 768
	while True:
	    try:
		mlx.getFrame(frame)
	    except ValueError:
		# these happen, no biggie - retry
		continue

	    for h in range(24):
		for w in range(32):
		    t = frame[h*32 + w]
		    print("%0.1f, " % t, end="")
                print()
            print()

Documentation
=============

API documentation for this library can be found on `Read the Docs <https://docs.circuitpython.org/projects/mlx90640/en/latest/>`_.

For information on building library documentation, please check out `this guide <https://learn.adafruit.com/creating-and-sharing-a-circuitpython-library/sharing-our-docs-on-readthedocs#sphinx-5-1>`_.

Contributing
============

Contributions are welcome! Please read our `Code of Conduct
<https://github.com/adafruit/Adafruit_CircuitPython_MLX90640/blob/main/CODE_OF_CONDUCT.md>`_
before contributing to help this project stay welcoming.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "adafruit-circuitpython-mlx90640",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "adafruit, blinka, circuitpython, micropython, mlx90640, thermal, camera, ir, flir",
    "author": null,
    "author_email": "Adafruit Industries <circuitpython@adafruit.com>",
    "download_url": "https://files.pythonhosted.org/packages/77/f4/16dbfa27c7d3510a4cca576b9076b26f3f938a7cabeb821265704c4af313/adafruit_circuitpython_mlx90640-1.3.3.tar.gz",
    "platform": null,
    "description": "Introduction\n============\n\n.. image:: https://readthedocs.org/projects/adafruit-circuitpython-mlx90640/badge/?version=latest\n    :target: https://docs.circuitpython.org/projects/mlx90640/en/latest/\n    :alt: Documentation Status\n\n.. image:: https://raw.githubusercontent.com/adafruit/Adafruit_CircuitPython_Bundle/main/badges/adafruit_discord.svg\n    :target: https://adafru.it/discord\n    :alt: Discord\n\n.. image:: https://github.com/adafruit/Adafruit_CircuitPython_MLX90640/workflows/Build%20CI/badge.svg\n    :target: https://github.com/adafruit/Adafruit_CircuitPython_MLX90640/actions\n    :alt: Build Status\n\n.. image:: https://img.shields.io/badge/code%20style-black-000000.svg\n    :target: https://github.com/psf/black\n    :alt: Code Style: Black\n\nDriver for the MLX90640 thermal camera\n\n\nDependencies\n=============\nThis driver depends on:\n\n* `Adafruit CircuitPython <https://github.com/adafruit/circuitpython>`_\n* `Bus Device <https://github.com/adafruit/Adafruit_CircuitPython_BusDevice>`_\n* `Register <https://github.com/adafruit/Adafruit_CircuitPython_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 <https://circuitpython.org/libraries>`_.\n\nInstalling from PyPI\n=====================\nOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from\nPyPI <https://pypi.org/project/adafruit-circuitpython-mlx90640/>`_. To install for current user:\n\n.. code-block:: shell\n\n    pip3 install adafruit-circuitpython-mlx90640\n\nTo install system-wide (this may be required in some cases):\n\n.. code-block:: shell\n\n    sudo pip3 install adafruit-circuitpython-mlx90640\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 .venv\n    source .venv/bin/activate\n    pip3 install adafruit-circuitpython-mlx90640\n\nUsage Example\n=============\n\n.. code-block:: python\n\n\timport time\n\timport board\n\timport busio\n\timport adafruit_mlx90640\n\n\ti2c = busio.I2C(board.SCL, board.SDA, frequency=800000)\n\n\tmlx = adafruit_mlx90640.MLX90640(i2c)\n\tprint(\"MLX addr detected on I2C\", [hex(i) for i in mlx.serial_number])\n\n        # if using higher refresh rates yields a 'too many retries' exception,\n        # try decreasing this value to work with certain pi/camera combinations\n\tmlx.refresh_rate = adafruit_mlx90640.RefreshRate.REFRESH_2_HZ\n\n\tframe = [0] * 768\n\twhile True:\n\t    try:\n\t\tmlx.getFrame(frame)\n\t    except ValueError:\n\t\t# these happen, no biggie - retry\n\t\tcontinue\n\n\t    for h in range(24):\n\t\tfor w in range(32):\n\t\t    t = frame[h*32 + w]\n\t\t    print(\"%0.1f, \" % t, end=\"\")\n                print()\n            print()\n\nDocumentation\n=============\n\nAPI documentation for this library can be found on `Read the Docs <https://docs.circuitpython.org/projects/mlx90640/en/latest/>`_.\n\nFor information on building library documentation, please check out `this guide <https://learn.adafruit.com/creating-and-sharing-a-circuitpython-library/sharing-our-docs-on-readthedocs#sphinx-5-1>`_.\n\nContributing\n============\n\nContributions are welcome! Please read our `Code of Conduct\n<https://github.com/adafruit/Adafruit_CircuitPython_MLX90640/blob/main/CODE_OF_CONDUCT.md>`_\nbefore contributing to help this project stay welcoming.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Driver for the MLX90640 thermal camera",
    "version": "1.3.3",
    "project_urls": {
        "Homepage": "https://github.com/adafruit/Adafruit_CircuitPython_MLX90640"
    },
    "split_keywords": [
        "adafruit",
        " blinka",
        " circuitpython",
        " micropython",
        " mlx90640",
        " thermal",
        " camera",
        " ir",
        " flir"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "93152b549bcbc4f1934b2df7f03e1496978a2f612d77c2c43fb61cf609057c00",
                "md5": "7cd64709dc9b1340e9096cfe15d62251",
                "sha256": "fc6df9a0513843e05ef3823db6964fb77ef729e4305f717bc46c1685e97d0ed0"
            },
            "downloads": -1,
            "filename": "adafruit_circuitpython_mlx90640-1.3.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "7cd64709dc9b1340e9096cfe15d62251",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 10226,
            "upload_time": "2024-10-07T22:13:31",
            "upload_time_iso_8601": "2024-10-07T22:13:31.704491Z",
            "url": "https://files.pythonhosted.org/packages/93/15/2b549bcbc4f1934b2df7f03e1496978a2f612d77c2c43fb61cf609057c00/adafruit_circuitpython_mlx90640-1.3.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "77f416dbfa27c7d3510a4cca576b9076b26f3f938a7cabeb821265704c4af313",
                "md5": "260d6a78eb0ed47653b7803223dc4595",
                "sha256": "a2703f06ff1c584d06387207f53ef77ea2dfc25e2c34ab5f0c28a157f617e3e4"
            },
            "downloads": -1,
            "filename": "adafruit_circuitpython_mlx90640-1.3.3.tar.gz",
            "has_sig": false,
            "md5_digest": "260d6a78eb0ed47653b7803223dc4595",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 34974,
            "upload_time": "2024-10-07T22:13:32",
            "upload_time_iso_8601": "2024-10-07T22:13:32.721354Z",
            "url": "https://files.pythonhosted.org/packages/77/f4/16dbfa27c7d3510a4cca576b9076b26f3f938a7cabeb821265704c4af313/adafruit_circuitpython_mlx90640-1.3.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-07 22:13:32",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "adafruit",
    "github_project": "Adafruit_CircuitPython_MLX90640",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "adafruit-circuitpython-mlx90640"
}
        
Elapsed time: 0.45098s