「App:Library:LVGL:docs:Porting:Task Handler」の版間の差分
提供: robot-jp wiki
ナビゲーションに移動検索に移動33行目: | 33行目: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
To learn more about timers visit the [https://docs.lvgl.io/8.2/overview/timer.html '''Timer'''] section. | To learn more about timers visit the [https://docs.lvgl.io/8.2/overview/timer.html '''Timer'''] section. | ||
− | | | + | |LVGLのタスクを処理するに<code>lv_timer_handler()</code>は、次のいずれかで定期的に 呼び出す必要があります。 |
+ | |||
+ | * <font class="goog-text-highlight">LVGLのタスクを処理するに</font>''main()''関数の''while(1)'' | ||
+ | * タイマー割り込みを定期的に(より低い優先度<code>lv_tick_inc()</code>) | ||
+ | * 定期的にOSタスク | ||
+ | |||
+ | タイミングは重要ではありませんが、システムの応答性を維持するには約5ミリ秒である必要があります。 | ||
+ | |||
+ | 例: | ||
+ | while (1 ) { | ||
+ | lv_timer_handler (); | ||
+ | my_delay_ms (5 ); | ||
+ | } | ||
+ | '''タイマーの詳細については、タイマー'''のセクションをご覧ください。 | ||
|} | |} | ||
:[[App:Library:LVGL:docs:Porting|戻る : Previous]] | :[[App:Library:LVGL:docs:Porting|戻る : Previous]] |
2022年6月22日 (水) 14:28時点における版
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 ); } タイマーの詳細については、タイマーのセクションをご覧ください。 |