Skip to content
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

HID extensions doesn't work as expected. #312

Open
suraj022 opened this issue Apr 24, 2020 · 0 comments
Open

HID extensions doesn't work as expected. #312

suraj022 opened this issue Apr 24, 2020 · 0 comments

Comments

@suraj022
Copy link

suraj022 commented Apr 24, 2020

Describe the bug
Code with HID based extensions i.e. keyboard, mouse, gamepad doesn't work unless I add a pause in on start block.

To Reproduce
Steps to reproduce the behavior:

  1. Goto maker.makecode.com and create a new project.
  2. select any board with usb host supported like feather M0 express.
  3. add any of the HID extensions i.e. keyboard, mouse, gamepad.
  4. add a block from the extension to the on start or forever block.
  5. pair and upload the code to the board.

Expected behavior
OS should recognize the respective device and should function as expected.

Actual behaviour
OS doesn't recognize any device.

workaround
just add a pause of atlease 100ms on the on start block

potential fix
the board should wait for HID to initialize before starting the code.

Desktop (please complete the following information):

  • OS: Ubuntu 18.04 LTS
  • Browser Chrome
  • Version 81.0.4044.122 (Official Build) (64-bit)

Additional context
test code:
not working
working

@suraj022 suraj022 reopened this Apr 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant