App:Library:LVGL:docs:Porting:Task Handler

提供: robot-jp wiki
2022年6月22日 (水) 14:28時点におけるTakashi (トーク | 投稿記録)による版
ナビゲーションに移動検索に移動

https://docs.lvgl.io/8.2/porting/task-handler.html

英文 自動翻訳


Task Handler

英文 自動翻訳

To handle the tasks of LVGL you need to call lv_timer_handler() periodically in one of the following:

  • while(1) of main() function
  • timer interrupt periodically (lower priority than lv_tick_inc())
  • an OS task periodically

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()は、次のいずれかで定期的に 呼び出す必要があります。
  • LVGLのタスクを処理するにmain()関数のwhile(1)
  • タイマー割り込みを定期的に(より低い優先度lv_tick_inc()
  • 定期的にOSタスク

タイミングは重要ではありませんが、システムの応答性を維持するには約5ミリ秒である必要があります。

例:

 while (1 ) { 
   lv_timer_handler (); 
   my_delay_ms (5 ); 
 } 

タイマーの詳細については、タイマーのセクションをご覧ください。

戻る : Previous