Introduction
============
.. image:: https://readthedocs.org/projects/adafruit-circuitpython-max31856/badge/?version=latest
:target: https://docs.circuitpython.org/projects/max31856/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_MAX31856/workflows/Build%20CI/badge.svg
:target: https://github.com/adafruit/Adafruit_CircuitPython_MAX31856/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
A CircuitPython driver for the MAX31856 Universal Thermocouple Amplifier
Dependencies
=============
This driver depends on:
* `Adafruit CircuitPython <https://github.com/adafruit/circuitpython>`_
* `Bus Device <https://github.com/adafruit/Adafruit_CircuitPython_BusDevice>`_
Please ensure all dependencies are available on the CircuitPython filesystem.
This is easily achieved by downloading
`the Adafruit library and driver bundle <https://github.com/adafruit/Adafruit_CircuitPython_Bundle>`_.
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-max31856/>`_. To install for current user:
.. code-block:: shell
pip3 install adafruit-circuitpython-max31856
To install system-wide (this may be required in some cases):
.. code-block:: shell
sudo pip3 install adafruit-circuitpython-max31856
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-max31856
Usage Example
=============
.. code:: python3
import board
import digitalio
import adafruit_max31856
# Create sensor object, communicating over the board's default SPI bus
spi = board.SPI()
# allocate a CS pin and set the direction
cs = digitalio.DigitalInOut(board.D5)
cs.direction = digitalio.Direction.OUTPUT
# create a thermocouple object with the above
thermocouple = adafruit_max31856.MAX31856(spi, cs)
# measure the temperature! (takes approx 160ms)
print(thermocouple.temperature)
# alternative (non-blocking) way to get temperature
thermocouple.initiate_one_shot_measurement()
# <perform other tasks>
# now wait for measurement to complete
while thermocouple.oneshot_pending:
pass
print(thermocouple.unpack_temperature())
Documentation
=============
API documentation for this library can be found on `Read the Docs <https://docs.circuitpython.org/projects/max31856/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/siddacious/Adafruit_CircuitPython_MAX31856/blob/main/CODE_OF_CONDUCT.md>`_
before contributing to help this project stay welcoming.
Raw data
{
"_id": null,
"home_page": "",
"name": "adafruit-circuitpython-max31856",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "adafruit,max31856,universal,thermocouple,amplifierhardware,micropython,circuitpython",
"author": "",
"author_email": "Adafruit Industries <circuitpython@adafruit.com>",
"download_url": "https://files.pythonhosted.org/packages/60/00/c0c31fd379fef663f52bec385a7c11c6bcd1b519b22d16c53669e7773a6a/adafruit-circuitpython-max31856-0.11.6.tar.gz",
"platform": null,
"description": "Introduction\n============\n\n.. image:: https://readthedocs.org/projects/adafruit-circuitpython-max31856/badge/?version=latest\n :target: https://docs.circuitpython.org/projects/max31856/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_MAX31856/workflows/Build%20CI/badge.svg\n :target: https://github.com/adafruit/Adafruit_CircuitPython_MAX31856/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\nA CircuitPython driver for the MAX31856 Universal Thermocouple Amplifier\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\nPlease ensure all dependencies are available on the CircuitPython filesystem.\nThis is easily achieved by downloading\n`the Adafruit library and driver bundle <https://github.com/adafruit/Adafruit_CircuitPython_Bundle>`_.\n\nInstalling from PyPI\n====================\n\nOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from\nPyPI <https://pypi.org/project/adafruit-circuitpython-max31856/>`_. To install for current user:\n\n.. code-block:: shell\n\n pip3 install adafruit-circuitpython-max31856\n\nTo install system-wide (this may be required in some cases):\n\n.. code-block:: shell\n\n sudo pip3 install adafruit-circuitpython-max31856\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-max31856\n\nUsage Example\n=============\n\n.. code:: python3\n\n import board\n import digitalio\n import adafruit_max31856\n\n # Create sensor object, communicating over the board's default SPI bus\n spi = board.SPI()\n\n # allocate a CS pin and set the direction\n cs = digitalio.DigitalInOut(board.D5)\n cs.direction = digitalio.Direction.OUTPUT\n\n # create a thermocouple object with the above\n thermocouple = adafruit_max31856.MAX31856(spi, cs)\n\n # measure the temperature! (takes approx 160ms)\n print(thermocouple.temperature)\n\n # alternative (non-blocking) way to get temperature\n thermocouple.initiate_one_shot_measurement()\n # <perform other tasks>\n # now wait for measurement to complete\n while thermocouple.oneshot_pending:\n pass\n print(thermocouple.unpack_temperature())\n\nDocumentation\n=============\n\nAPI documentation for this library can be found on `Read the Docs <https://docs.circuitpython.org/projects/max31856/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/siddacious/Adafruit_CircuitPython_MAX31856/blob/main/CODE_OF_CONDUCT.md>`_\nbefore contributing to help this project stay welcoming.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "CircuitPython library for the MAX31856 Universal Thermocouple Amplifier.",
"version": "0.11.6",
"project_urls": {
"Homepage": "https://github.com/adafruit/Adafruit_CircuitPython_MAX31856"
},
"split_keywords": [
"adafruit",
"max31856",
"universal",
"thermocouple",
"amplifierhardware",
"micropython",
"circuitpython"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "b8977640ffadd55aaec6feaeea2513286ea014b489e80cfd5ad655347b672f32",
"md5": "3ba90132825bf33460a6db341fc8dd53",
"sha256": "71eaa3ac81e90b5bf329bde97cd013dae4eb8748a189cb4f7fb91ec956860b22"
},
"downloads": -1,
"filename": "adafruit_circuitpython_max31856-0.11.6-py3-none-any.whl",
"has_sig": false,
"md5_digest": "3ba90132825bf33460a6db341fc8dd53",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 7932,
"upload_time": "2023-05-26T16:11:24",
"upload_time_iso_8601": "2023-05-26T16:11:24.053184Z",
"url": "https://files.pythonhosted.org/packages/b8/97/7640ffadd55aaec6feaeea2513286ea014b489e80cfd5ad655347b672f32/adafruit_circuitpython_max31856-0.11.6-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "6000c0c31fd379fef663f52bec385a7c11c6bcd1b519b22d16c53669e7773a6a",
"md5": "6cfd4e459b62a9f8da7e2dbad6afee79",
"sha256": "2fd5ff9e1ce42e0f1cac7655ed18aaedc5f2d1752af93b337ab8c90ad985eb32"
},
"downloads": -1,
"filename": "adafruit-circuitpython-max31856-0.11.6.tar.gz",
"has_sig": false,
"md5_digest": "6cfd4e459b62a9f8da7e2dbad6afee79",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 29380,
"upload_time": "2023-05-26T16:11:28",
"upload_time_iso_8601": "2023-05-26T16:11:28.651421Z",
"url": "https://files.pythonhosted.org/packages/60/00/c0c31fd379fef663f52bec385a7c11c6bcd1b519b22d16c53669e7773a6a/adafruit-circuitpython-max31856-0.11.6.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-05-26 16:11:28",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "adafruit",
"github_project": "Adafruit_CircuitPython_MAX31856",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [
{
"name": "Adafruit-Blinka",
"specs": []
},
{
"name": "adafruit-circuitpython-busdevice",
"specs": []
},
{
"name": "typing-extensions",
"specs": [
[
"~=",
"4.0"
]
]
}
],
"lcname": "adafruit-circuitpython-max31856"
}