日本語は下にあります。
This module provides methods for measuring temperature using LM60.
If LM60Pi does not have MCP3008Pi module please run the following script on LM60Pi/ directory.
git clone MCP3008Pi
Then you can use LM60Pi.
- LM60(bus, device, channel)
-
bus : The number of SPI port (SPI0 or SPI1)
-
device : CS pin number
-
channel : using MCP3008 port
- read()
Temperature value read.
#!/usr/bin/env python
from LM60Pi import lm60
temp = lm60.LM60(0,0,0)
print(temp.read())
This source code is provided under MIT Licence. The detail is on LICENCE file.
If you finde some bugs of this Module, please create issue on following page.
https://github.com/KASHIHARAAkira/LM60Pi/issues
日本語
このモジュールはLM60から得た値を気温に変換するモジュールです。
このコードをライブラリは、MCP3008Piが必要です。もしもLM60Piの下に、このモジュールがない場合は以下のscriptをterminalで実行してください。
git clone https://github.com/KASHIHARAAkira/MCP3008Pi
- LM60(bus, device, channel)
-
bus : SPIポートの番号です (SPI0 or SPI1)
-
device : CSピン(チップセレクタピン)の番号です。
-
channel : MCP3008の使用するチャンネルです。
- read()
気温を取得します。
#!/usr/bin/env python
from LM60Pi import lm60
temp = lm60.LM60(0,0,0)
print(temp.read())
このソースコードは、MIT Licenceによって提供されています。詳しくはLICENCEファイルを御覧ください。
このモジュールのバグを見つけた方は、以下のリンク先でissueの発行をお願いします。