ユーザ用ツール

サイト用ツール


ja-jp_commands:reference:irtcgettemperature

文書の過去の版を表示しています。


IrtcGetTemperature()

IrtcGetTemperature()はRTCの内部温度を返します。

IrtcGetTemperature コマンドの動作フロー

bool IrtcGetTemperature(float& temperature)

コマンド

コマンド 引数 戻り値 動作
IrtcGetTemperature(temperature) float& temperature bool RTCの内部温度を返します。

使用例

float temperature;
if (IrtcGetTemperature(temperature)) {
  Serial.println(temperature, 2);
}

注意事項

各装置は該当するBeginコマンドを先に実行してください。I²Cアドレスとピンの共有有無を確認し、bool戻り値がfalseの場合は配線と電源を点検してください。

← 内蔵コマンド一覧

ja-jp_commands/reference/irtcgettemperature.1788785590.txt.gz · 最終更新: by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki