用于控制max31855热电偶传感器芯片的circuitpython库。

adafruit-circuitpython-max31855的Python项目详细描述


简介图片::https://readthedocs.org/projects/adafruit-circipython-max31855/badge/?version=latest
:目标:https://circuitpython.readthedocs.io/projects/max31855/en/latest/
:alt:文档状态

…图片::https://img.shields.io/discord/327254708534116352.svg
:目标:https://discord.gg/nbqh6qu
:alt:discord

图片::https://travis-ci.com/adafruit/adafruit_circuitpython_max31855.svg?branch=master
:target:https://travis ci.com/adafruit/adafruit_circuitpython_max31855
:alt:build status


circuitpython驱动程序,用于“max31855热电偶放大器分线<;https://www.adafruit.com/product/269>;`

依赖项
===
此驱动程序依赖于:

*`adafruit circuitpython<;https://github.com/adafruit/circuitpython>;``u
*`bus device<;https://github.com/adafruit/adafruit circuitpython&u busdevice>;`

请确保circuitpython文件系统上的所有依赖项都可用。
这可以通过下载
` adafruit库和驱动程序包<;https://github.com/adafruit/adafruit_circuitpython_bundle>;``来轻松实现。

必须导入库才能使用它:

…代码::python

import adafruit_max31855


您可以为CS使用任何管脚,但我们在这里使用D5:



…代码::python

from busio import spi
from digitalio import digitalinout

cs=digitalinout(board.d5)

代码::python

sensor=adafruit\u max31855.max31855(spi,cs)


,您可以开始测量:

……代码::python

print(sensor.temperature)

如果需要,您必须自己将其转换为
其他单位。




请阅读我们的“行为准则”
<;https://github.com/adafruit/adafruit_circuitpython_max21855/blob/master/code_conduct.md>;`
在帮助该项目保持受欢迎之前。

https://github.com/adafruit/circuitpython build tools>;``包。

…代码块::shell

python3-m venv.env
source.env/bin/activate
pip install circuitpython编译工具

代码块::shell

source.env/bin/activate


,然后运行生成:

。代码块::shell

circuitpython build bundles——文件名前缀adafruit-circuitpython-max31855——库位置。


sphinx documentation
----

安装依赖项(请随意重用上面的虚拟环境):

…代码块::shell

source.env/bin/activate
pip安装sphinx sphinx rtd主题

代码块:shell

cd docs
sphinx build-e-w-b html。_ build/html

这将把文档输出到“docs/u build/html”。在浏览器中打开index.html以查看它们。它还将(由于-w)错误的任何警告,像特拉维斯将。这是
本地验证它是否通过的好方法。

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java Android测试运行失败:没有测试结果   java设置JMenuItems与Nimbus LaF的边界   java是使用springboot、Crudepository和MySQL检查重复值的好方法吗   谷歌电子表格的Java时代日期   java向xml文件添加EditText不起作用   java ORA00933:SQL命令未正确结束WHERE子句   如何在java中防止JTextField上使用CTRL+C?   java绑定到TypeLiteral在google guice中是好的还是坏的做法   java找到了原始类型,缺少泛型类的返回参数   Kafka Streams API中ArrayList Serde的java问题   java在hibernate中,哪种持久化上下文的性能更好?   java通过本机查询获取数据库url、名称和模式版本   如何为Java枚举编写通用for循环?   在Java应用程序中播放MP3   如何使用VisualVM度量短时间运行的Java应用程序的性能?   java从当前日期获取datetime(秒)   简单JMH基准中的javagrpcoome和NPE   java如何加载Maven项目库中Spring jar的应用程序上下文   JavaCC XPath解析器   用于Scala和Java的类型安全生成器库