en-us_commands:reference:wdt
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| en-us_commands:reference:wdt [2026/09/07 21:52] – 만듦 - 바깥 편집 127.0.0.1 | en-us_commands:reference:wdt [2026/09/08 00:53] (current) – 바깥 편집 127.0.0.1 | ||
|---|---|---|---|
| Line 16: | Line 16: | ||
| <code cpp> | <code cpp> | ||
| + | void setup() { | ||
| + | #if defined(__AVR_ATmega128__) | ||
| + | WDT_ENABLE(WDT_900MS); | ||
| + | #elif defined(__AVR_ATmega2560__) | ||
| + | WDT_ENABLE(WDT_1S); | ||
| + | #endif | ||
| + | } | ||
| + | |||
| void loop() { | void loop() { | ||
| - | | + | WDT(); |
| - | | + | |
| } | } | ||
| </ | </ | ||
| Line 27: | Line 34: | ||
| * Do not set a timeout shorter than the longest normal processing time. | * Do not set a timeout shorter than the longest normal processing time. | ||
| * Do not hide program faults by placing '' | * Do not hide program faults by placing '' | ||
| + | |||
| + | ===== Built-in Commands in the Same Category ===== | ||
| + | |||
| + | * [[: | ||
| + | * [[: | ||
| [[: | [[: | ||
en-us_commands/reference/wdt.1788785569.txt.gz · Last modified: by 127.0.0.1
