「App:Library:LVGL:docs:Porting:Tick interface」の版間の差分
56行目: | 56行目: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|} | |} | ||
− | :[[App:Library:LVGL:docs:Porting|戻る : Previous]] | + | :[[App:Library:LVGL:docs:Porting#Tick interface|戻る : Previous]] |
99行目: | 99行目: | ||
:: 'prev_tick'からの経過ミリ秒 | :: 'prev_tick'からの経過ミリ秒 | ||
|} | |} | ||
− | :[[App:Library:LVGL:docs:Porting|戻る : Previous]] | + | :[[App:Library:LVGL:docs:Porting#Tick interface|戻る : Previous]] |
2022年8月18日 (木) 22:40時点における最新版
https://docs.lvgl.io/8.2/porting/tick.html
Tick interface
英文 | 自動翻訳 |
---|---|
LVGL needs a system tick to know elapsed time for animations and other tasks. You need to call the For example,
On Linux based operating systems (e.g. on Raspberry Pi) void * tick_thread (void *args)
{
while(1) {
usleep(5*1000); /*Sleep for 5 millisecond*/
lv_tick_inc(5); /*Tell LVGL that 5 milliseconds were elapsed*/
}
}
|
関数 たとえば、1ミリ秒ごとに呼び出す場合
Linuxベースのオペレーティングシステム(Raspberry Piなど)では、 void * tick_thread (void * args )
{
while (1 ) {
usleep (5 * 1000 ); /*5ミリ秒スリープ*/
lv_tick_inc (5 ); /*5ミリ秒が経過したことをLVGLに通知します*/
}
}
|
API
英文 | 自動翻訳 |
---|---|
Provide access to the system tick with 1 millisecond resolution Functions
|
Functions
|