Skip to content

Commit 2e36f2c

Browse files
authored
Update README.md
1 parent a13e014 commit 2e36f2c

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
blehid=github:bsiever/microbit-pxt-blehid
55
```
66

7-
This extension allows the micro:bit V2 to act like a [Human Interface Devices](https://en.wikipedia.org/wiki/Human_interface_device) (HID) over Bluetooth. It currently supports services for [Keyboard](#keyboard), [Mouse](#mouse), [Media Keys](#media-keys) (play, pause, volume up, etc.), a [Gamepad](#gamepad), and an [Absolute Mouse](absolute-mouse) (puts the mouse at a specific position on the screen).
7+
This extension allows the micro:bit V2 to act like a [Human Interface Devices](https://en.wikipedia.org/wiki/Human_interface_device) (HID) over Bluetooth. It currently supports services for [Keyboard](#keyboard), [Mouse](#mouse), [Media Keys](#media-keys) (play, pause, volume up, etc.), a [Gamepad](#gamepad), and an [Absolute Mouse](#absolute-mouse) (puts the mouse at a specific position on the screen).
88

99
See [Cool Ideas and Challenges](#cool-ideas-and-challenges) for some examples of how this extension can be used.
1010

@@ -67,10 +67,11 @@ Here are examples of all three steps on each operating system:
6767

6868
### iOS Pairing
6969

70+
<iframe>
7071
<video width="320" height="240" controls>
7172
<source src="https://user-images.githubusercontent.com/1421446/149055788-594206e2-3ec7-477f-8c7f-28380c855a23.mp4" type="video/mp4">
7273
</video>
73-
74+
</iframe>
7475
https://user-images.githubusercontent.com/1421446/149055788-594206e2-3ec7-477f-8c7f-28380c855a23.mp4
7576

7677
In the video the micro:bit's bluetooth name is "BBC micro:bit". Yours will be named something like "uBit [XXXXX]", where "XXXXX" will be the unique name of your micro:bit.
@@ -203,6 +204,7 @@ Modifiers are keys like Control, or Alt, the Windows key on a PC, or the Command
203204
Some commands require multiple modifiers, which can also be joined. All the modifiers in a series add to the first non-modifier. For example, simultaneously pressing Control and Alt and the ``delete`` key can be done via: ``[keyboard.sendString("" + keyboard.modifiers(keyboard._Modifier.control) + keyboard.modifiers(keyboard._Modifier.alt) + keyboard.keys(keyboard._Key.delete))]``
204205

205206
It's also possible to send a sequence of modified keys. For example, on Macs Command with "c" copies items and Command with "v" pastes a copied items. A copy/paste/paste could be done by:
207+
206208
``[keyboard.sendString("" + keyboard.modifiers(keyboard._Modifier.apple) + "c" + keyboard.modifiers(keyboard._Modifier.apple) + "v" + keyboard.modifiers(keyboard._Modifier.apple) + "v")
207209
]``
208210

@@ -250,7 +252,7 @@ keyboard.isEnabled()
250252

251253
`true` indicates that the device is currently subscribed to the service. `false` indicates the device is _not_ currently subscribed to the service. This may mean that the other device is off or out of range.
252254

253-
# Media Service #media
255+
# Media Service #media #media-keys
254256

255257
## Starting the Media Service #media-startMediaService
256258

@@ -260,7 +262,7 @@ media.startMediaService()
260262

261263
Starts the media service. This must execute in the `start` block. All other media blocks require the service be started.
262264

263-
## Specific Media Keys #media-keys
265+
## Specific Media Keys
264266

265267
```sig
266268
media.keys(media._MediaKey.next)
@@ -362,9 +364,9 @@ mouse.isEnabled()
362364
`true` indicates that the device is currently subscribed to the service. `false` indicates the device is _not_ currently subscribed to the service. This may mean that the other device is off or out of range.
363365

364366
### ~hint
365-
#### iOS AssistiveTouch
367+
#### iOS AssistiveTouch #assistivetouch
366368

367-
A mouse can be used in iOS when [AssistiveTouch](https://support.apple.com/en-us/HT210546) features are enabled, See [here](https://www.macworld.com/article/232969/how-to-use-a-mouse-with-your-ipad-or-iphone.html) for more detail.
369+
A mouse can be used in iOS when [AssistiveTouch](https://support.apple.com/en-us/HT210546) features are enabled, See [(https://www.macworld.com/article/232969/how-to-use-a-mouse-with-your-ipad-or-iphone.html](https://www.macworld.com/article/232969/how-to-use-a-mouse-with-your-ipad-or-iphone.html) for more detail.
368370
### ~
369371

370372

@@ -448,7 +450,7 @@ absmouse.isEnabled()
448450

449451
`true` indicates that the device is currently subscribed to the service. `false` indicates the device is _not_ currently subscribed to the service. This may mean that the other device is off or out of range.
450452

451-
# Gamepad Service #gamepad-service
453+
# Gamepad Service #gamepad
452454

453455
## Starting the Gamepad Service #gamepad-startGamepadService
454456

0 commit comments

Comments
 (0)