-
-
Notifications
You must be signed in to change notification settings - Fork 7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
USBhost: additional functions for keyboard appreciated #3630
Comments
FYI, I already tried this following, but it does not work:
|
currently I see no way for using the USB keyboard inside a custom function:
Both is not possible:
and shockingly USB.task also hinders different additional Scheduler multitasking threads |
the easiest way of course would be to have USB as stdin and then just read from stream by ANSI C stdio.h functions, just like it simply works on a RaspPi when a keyboard is attached to the USB port. Anyway, currently the implementation of the USB.task is weird, |
When can we expect an improvement in the Keyboard functions, like e.g. ? |
bump! |
@VogonJ @cmaglie
I submitted an issue and PR in the USBHost repo to remove the 5 second usb.Task() delay. This fix makes it much easier to add USB keyboard/mouse support to an existing project. There is another issue/PR to add control key support for the keyboard. |
for USBhost it would be fine to have additional functions to read the USB keyboard:
kbhit()
getch()
getche()
getchar()
gets()
scanf()
The text was updated successfully, but these errors were encountered: