Skip to content

Commit 5bf0178

Browse files
committed
Add ble_shining_kb doc and keylayouts.h source.
1 parent 134aafb commit 5bf0178

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

README.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ void setup() {
3131

3232
void loop() {
3333
// Retrieve the HID service handle.
34-
auto hid = pad.hid();
34+
auto *hid = pad.hid();
3535

3636
// Update internal values.
3737
float theta = PI * (random(255) / 255.0);
@@ -99,6 +99,12 @@ By default the sample is set to *demo mode* and will output random motions for a
9999
100100
To disable *demo mode* you can set the macro definition **DEMO_ENABLE_RANDOM_INPUT** to 0.
101101
102+
### ble_shining_kb
103+
104+
Simulate a ghost writer by repeating a sentence over and over again.
105+
106+
By default the keyboard layout is set to **LAYOUT_US_INTERNATIONAL**, you can change it by uncommenting the desired layout in [*src/services/keylayouts.h*](https://github.com/tcoppex/mbed-ble-hid/blob/master/src/services/keylayouts.h).
107+
102108
## Known limitations
103109
104110
*Boot protocol*, which allows for mouses and keyboards to be used on a boot level, are laid out but not implemented.
@@ -111,9 +117,11 @@ This project has benefited from the following resources :
111117
* [Nordic semiconductor SDK 16](http://developer.nordicsemi.com/nRF5_SDK/nRF5_SDK_v16.x.x/)
112118
* [BLEKeyboard](https://github.com/bitbank2/BLE_Keyboard) by bitbank2
113119
* [BLE_HID](https://github.com/jpbrucker/BLE_HID) by jpbrucker
120+
* The `keyboards layout` is a slightly modified version from @PaulStoffregen [teensy](https://github.com/PaulStoffregen/cores/blob/master/teensy/keylayouts.h).
114121
115122
You might want to look at jpbrucker's implementation for a well documented but deprecated alternative.
116123
124+
117125
## References
118126
119127
* *Bluetooth HUMAN INTERFACE DEVICE PROFILE 1.1*

0 commit comments

Comments
 (0)