ユーザ用ツール

サイト用ツール


ja-jp_commands:debug_watchdog

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

ja-jp_commands:debug_watchdog [2026/09/07 21:53] – 만듦 - 바깥 편집 127.0.0.1ja-jp_commands:debug_watchdog [2026/09/12 23:27] (現在) – 바깥 편집 127.0.0.1
行 1: 行 1:
-====== DebugとWatchdog ======+====== デバッグ・Watchdog ======
  
-^ コマンド ^ 説明 ^ +実行状態を確認しWatchdogを設定します。
-| ''debugStart()'', ''debugStart(baud)'', ''debugStart(serial, baud)'' | デバッグ出力とポートを開始します。 | +
-| ''debug()'', ''debugln()'' | デバッグが有効な場合だけ値を出力します。 | +
-| ''debugStop()'', ''debugState()'' | 出力を停止または状態を確認します。 | +
-| ''WDT_ENABLE(time)''Watchdogの制限時間を設定して有効にします。 | +
-| ''WDT()'' | 制限時間が切れる前にWatchdogを更新します。 | +
-| ''WDT_DISABLE()'' | Watchdogを無効にします。 |+
  
-<code cpp> +===== デバッグ =====
-void setup() { +
-  debugStart(115200); +
-  WDT_ENABLE(WDT_2S); +
-+
-void loop() { +
-  debugln("running"); +
-  WDT(); +
-+
-</code>+
  
-===== コマンドのプロタイプ =====+  * [[:ja-jp_commands:reference:debugstart|debugStart()]] — デバッグ出力に使用するポーとボーレートを設定します。 
 +  * [[:ja-jp_commands:reference:debugstop|debugStop()]] — デバッグ出力を停止します。 
 +  * [[:ja-jp_commands:reference:debugstate|debugState()]] — デバッグ出力の有効状態を返します。 
 +  * [[:ja-jp_commands:reference:debug|debug()]] — デバッグが有効な場合だけ値を出力します。 
 +  * [[:ja-jp_commands:reference:debugln|debugln()]] — デバッグ値を出力して改行します。
  
-^ 戻り型 ^ コマンドのプロトタイプ ^ +===== Watchdog =====
-| ''void'' | ''debugStart()''+
-| ''void'' | ''debugStart(unsigned long baudrate)''+
-| ''void'' | ''debugStart(HardwareSerial& serialPort)''+
-| ''void'' | ''debugStart(HardwareSerial& serialPort, unsigned long baudrate, uint8_t config SERIAL_8N1)''+
-| ''void'' | ''debugStop()''+
-| ''bool'' | ''debugState()''+
-| ''void'' | ''debug(const __FlashStringHelper* value)''+
-| ''void'' | ''debug(const String& value)''+
-| ''void'' | ''debug(const char value[])''+
-| ''void'' | ''debug(char value)''+
-| ''void'' | ''debug(unsigned char value, int base DEC)''+
-| ''void'' | ''debug(int value, int base DEC)''+
-| ''void'' | ''debug(unsigned int value, int base DEC)''+
-| ''void'' | ''debug(long value, int base DEC)''+
-| ''void'' | ''debug(unsigned long value, int base DEC)''+
-| ''void'' | ''debug(double value, int digits 2)''+
-| ''void'' | ''debugln()''+
-| ''void'' | ''debugln(const __FlashStringHelper* value)''+
-| ''void'' | ''debugln(const String& value)''+
-| ''void'' | ''debugln(const char value[])''+
-| ''void'' | ''debugln(char value)''+
-| ''void'' | ''debugln(unsigned char value, int base DEC)''+
-| ''void'' | ''debugln(int value, int base DEC)''+
-| ''void'' | ''debugln(unsigned int value, int base DEC)''+
-| ''void'' | ''debugln(long value, int base = DEC)''+
-| ''void'' | ''debugln(unsigned long value, int base = DEC)''+
-| ''void'' | ''debugln(double value, int digits = 2)''+
-| ''void'' | ''WDT_ENABLE(uint8_t ms)''+
-| ''void'' | ''WDT_DISABLE()''+
-| ''void'' | ''WDT()'' |+
  
-Watchdogの時間定数はCPUによっ異なります。通信待ちとループ最悪実行時間より十分長い値選択てください+  * [[:ja-jp_commands:reference:wdt_enable|WDT_ENABLE()]] — Watchdogの制限時間を設動作を開始します。 
 +  * [[:ja-jp_commands:reference:wdt_disable|WDT_DISABLE()]] — Watchdog動作を停止します。 
 +  * [[:ja-jp_commands:reference:wdt|WDT()]] — 制限時間が切れる前にWatchdog更新ます
  
-[[:ja-jp_commands:builtin|← 内蔵コマンド一覧]]+[[:ja-jp_commands:builtin|← 内蔵関数一覧]]
  
ja-jp_commands/debug_watchdog.1788785587.txt.gz · 最終更新: by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki