Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 6284

SDK • Re: getchar_timeout_ms() can not get the correct character

$
0
0
And after I change the type of "key" from char to int, I found all values return from the function getchar_timeout_us() is -1, which means the timeout error, but how? The getchar function will only be called if I pressed a key on the keyboard

Statistics: Posted by crisps — Fri Feb 23, 2024 1:14 pm



Viewing all articles
Browse latest Browse all 6284

Trending Articles