bsiever / microbit-pxt-blehid

Micro:bit MakeCode support to act as a Human Interface Devices (keyboard, mouse, etc.) over Bluetooth
https://bsiever.github.io/microbit-pxt-blehid/
MIT License
30 stars 10 forks source link

It does not work #29

Closed amol234545 closed 5 months ago

amol234545 commented 5 months ago

When I connect the micro:bit to the computer, it recognizes it as a mouse and keyboard but I made the code click and i does not click the mouse.

bsiever commented 5 months ago

@amol234545 Can you share a link to the program you were using?

amol234545 commented 5 months ago

https://makecode.microbit.org/_45MPML5DEhyy

Screenshot 2024-04-06 092657
amol234545 commented 5 months ago

Nevermind, this code works.

bsiever commented 5 months ago

@amol234545 Thanks for the update --- I'm glad you got it to work.

bsiever commented 5 months ago

@amol234545 Here's a slightly different variation of your code: https://makecode.microbit.org/S39845-80667-84227-07407 . The only important change: The bluetooth mouse service block should only be included once and in the on start block.