adafruit-circuitpython-mlx90640


Nameadafruit-circuitpython-mlx90640 JSON
Version 1.2.16 PyPI version JSON
download
home_page
SummaryDriver for the MLX90640 thermal camera
upload_time2023-05-26 16:11:44
maintainer
docs_urlNone
author
requires_python
licenseMIT
keywords adafruit blinka circuitpython micropython mlx90640 thermal camera ir flir
VCS
bugtrack_url
requirements Adafruit-Blinka adafruit-circuitpython-register adafruit-circuitpython-busdevice
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": "",
    "name": "adafruit-circuitpython-mlx90640",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "adafruit,blinka,circuitpython,micropython,mlx90640,thermal,camera,ir,flir",
    "author": "",
    "author_email": "Adafruit Industries <circuitpython@adafruit.com>",
    "download_url": "https://files.pythonhosted.org/packages/62/58/8564aa66af6492407dddd6f9458d5031abd63fa0a357de1afe8891985cc6/adafruit-circuitpython-mlx90640-1.2.16.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.2.16",
    "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": "0a46613cbe8bff5ba9487298990eedf6422c8a7ac86c96088a0db8ca62105a61",
                "md5": "f6e3eaa888bb9b786d069375eff9b4ca",
                "sha256": "45ac81fd045bca88fd0bb79b6929a42b554138fc01b5c3dfa08487ca228a63c5"
            },
            "downloads": -1,
            "filename": "adafruit_circuitpython_mlx90640-1.2.16-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "f6e3eaa888bb9b786d069375eff9b4ca",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 10237,
            "upload_time": "2023-05-26T16:11:42",
            "upload_time_iso_8601": "2023-05-26T16:11:42.815882Z",
            "url": "https://files.pythonhosted.org/packages/0a/46/613cbe8bff5ba9487298990eedf6422c8a7ac86c96088a0db8ca62105a61/adafruit_circuitpython_mlx90640-1.2.16-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "62588564aa66af6492407dddd6f9458d5031abd63fa0a357de1afe8891985cc6",
                "md5": "6f9f938fcad6183aa3b8f76a0a6c9c1a",
                "sha256": "5d9ffbd6983f1fa078216f25ae7db63641f494042cc799041bdf71e3c8d609f5"
            },
            "downloads": -1,
            "filename": "adafruit-circuitpython-mlx90640-1.2.16.tar.gz",
            "has_sig": false,
            "md5_digest": "6f9f938fcad6183aa3b8f76a0a6c9c1a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 34973,
            "upload_time": "2023-05-26T16:11:44",
            "upload_time_iso_8601": "2023-05-26T16:11:44.245904Z",
            "url": "https://files.pythonhosted.org/packages/62/58/8564aa66af6492407dddd6f9458d5031abd63fa0a357de1afe8891985cc6/adafruit-circuitpython-mlx90640-1.2.16.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-05-26 16:11:44",
    "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": [
        {
            "name": "Adafruit-Blinka",
            "specs": []
        },
        {
            "name": "adafruit-circuitpython-register",
            "specs": []
        },
        {
            "name": "adafruit-circuitpython-busdevice",
            "specs": []
        }
    ],
    "lcname": "adafruit-circuitpython-mlx90640"
}
        
Elapsed time: 0.07093s