Skip to content

Commit 69f1802

Browse files
committed
add bledis to hid_keyscan exmaple
windows insist to have bledis to work with
1 parent 3de7530 commit 69f1802

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

libraries/Bluefruit52Lib/examples/Peripheral/hid_keyscan/hid_keyscan.ino

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
#include <bluefruit.h>
2121

22+
BLEDis bledis;
2223
BLEHidAdafruit blehid;
2324

2425
// Array of pins and its keycode
@@ -56,6 +57,11 @@ void setup()
5657
Bluefruit.setTxPower(4);
5758
Bluefruit.setName("Bluefruit52");
5859

60+
// Configure and Start Device Information Service
61+
bledis.setManufacturer("Adafruit Industries");
62+
bledis.setModel("Bluefruit Feather 52");
63+
bledis.begin();
64+
5965
// set up pin as input
6066
for (uint8_t i=0; i<pincount; i++)
6167
{

0 commit comments

Comments
 (0)