「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>は、次のいずれかで定期的に 呼び出す必要があります。 | + | |LVGLのタスクを処理するに<code style="color: #bb0000;">lv_timer_handler()</code>は、次のいずれかで定期的に 呼び出す必要があります。 |
* <font class="goog-text-highlight">LVGLのタスクを処理するに</font>''main()''関数の''while(1)'' | * <font class="goog-text-highlight">LVGLのタスクを処理するに</font>''main()''関数の''while(1)'' | ||
− | * タイマー割り込みを定期的に(より低い優先度<code>lv_tick_inc()</code>) | + | * タイマー割り込みを定期的に(より低い優先度<code style="color: #bb0000;">lv_tick_inc()</code>) |
* 定期的にOSタスク | * 定期的にOSタスク | ||
2022年6月29日 (水) 14:40時点における版
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 );
}
タイマーの詳細については、タイマーのセクションをご覧ください。 |