「App:Library:LVGL:docs:Porting:Task Handler」の版間の差分
提供: robot-jp wiki
ナビゲーションに移動検索に移動26行目: | 26行目: | ||
Example: | Example: | ||
− | <syntaxhighlight lang="C++"> | + | <syntaxhighlight lang="C++" style="border: 1px dashed gray;"> |
while(1) { | while(1) { | ||
lv_timer_handler(); | lv_timer_handler(); | ||
42行目: | 42行目: | ||
例: | 例: | ||
+ | <syntaxhighlight lang="C++" style="border: 1px dashed gray;"> | ||
while (1 ) { | while (1 ) { | ||
lv_timer_handler (); | lv_timer_handler (); | ||
my_delay_ms (5 ); | my_delay_ms (5 ); | ||
} | } | ||
+ | </syntaxhighlight> | ||
+ | |||
'''タイマーの詳細については、タイマー'''のセクションをご覧ください。 | '''タイマーの詳細については、タイマー'''のセクションをご覧ください。 | ||
|} | |} | ||
:[[App:Library:LVGL:docs:Porting|戻る : Previous]] | :[[App:Library:LVGL:docs:Porting|戻る : Previous]] |
2022年6月22日 (水) 23:58時点における版
https://docs.lvgl.io/8.2/porting/task-handler.html
英文 | 自動翻訳 |
---|---|
Task Handler
英文 | 自動翻訳 |
---|---|
To handle the tasks of LVGL you need to call
The timing is not critical but it should be about 5 milliseconds to keep the system responsive. Example: while(1) {
lv_timer_handler();
my_delay_ms(5);
}
To learn more about timers visit the Timer section. |
LVGLのタスクを処理するにlv_timer_handler() は、次のいずれかで定期的に 呼び出す必要があります。
タイミングは重要ではありませんが、システムの応答性を維持するには約5ミリ秒である必要があります。 例: while (1 ) {
lv_timer_handler ();
my_delay_ms (5 );
}
タイマーの詳細については、タイマーのセクションをご覧ください。 |