Skip to content

PID-26 環境センサー ​

インスタンスの宣言 ​

PID-26 環境センサー(PID26) ブロックを作業領域に追加すると、Python コードには次のようなインスタンスの宣言が自動的に挿入されます:

python
cheesestick = CheeseStick(0)
pid26 = cheesestick.PID26()

パラメーター ​

名前区分説明範囲・種類デフォルト値
indexドロップダウンオプションインスタンス番号(0 から始まる)0 以上の整数0

開始 ​

PID-26 環境センサーを使います。

start

パラメーター ​

(なし)

Python ​

python
cheesestick = CheeseStick(0)
pid26 = cheesestick.PID26()

pid26.start()

温度 ​

PID26 環境センサーで測定した温度の値を返します。

temperature

パラメーター ​

(なし)

Python ​

python
cheesestick = CheeseStick(0)
pid26 = cheesestick.PID26()

pid26.temperature()

湿度 ​

PID26 環境センサーで測定した湿度の値を返します。

humidity

パラメーター ​

(なし)

Python ​

python
cheesestick = CheeseStick(0)
pid26 = cheesestick.PID26()

pid26.humidity()

気圧 ​

PID26 環境センサーで測定した気圧の値を返します。

pressure

パラメーター ​

(なし)

Python ​

python
cheesestick = CheeseStick(0)
pid26 = cheesestick.PID26()

pid26.pressure()