en-us_commands:callback_timer
Differences
This shows you the differences between two versions of the page.
| en-us_commands:callback_timer [2026/09/07 21:52] – 만듦 - 바깥 편집 127.0.0.1 | en-us_commands:callback_timer [2026/09/12 23:27] (current) – 바깥 편집 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== | + | ====== Callback |
| - | ^ Command ^ Description ^ | + | Configure |
| - | | '' | + | |
| - | | '' | + | |
| - | | '' | + | |
| - | | '' | + | |
| - | | '' | + | |
| - | | '' | + | |
| - | <code cpp> | + | * [[: |
| - | volatile bool task = false; | + | * [[: |
| - | void onTimer() { task = true; } | + | * [[: |
| - | void setup() { ItimerSet(100, onTimer); ItimerStart(); } | + | * [[: |
| - | void loop() { if (task) { task = false; /* Actual work */ } } | + | * [[: |
| - | </ | + | |
| - | ===== Command Prototypes ===== | + | [[: |
| - | + | ||
| - | ^ Return Type ^ Command Prototype ^ | + | |
| - | | '' | + | |
| - | | '' | + | |
| - | | '' | + | |
| - | | '' | + | |
| - | | '' | + | |
| - | | '' | + | |
| - | | '' | + | |
| - | | '' | + | |
| - | | '' | + | |
| - | + | ||
| - | Callbacks run in interrupts. Change only flags in callbacks; do not use '' | + | |
| - | + | ||
| - | [[: | + | |
en-us_commands/callback_timer.1788785564.txt.gz · Last modified: by 127.0.0.1
