Skip to content

Commit

Permalink
updated USB/BLE for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
jpconstantineau committed Apr 22, 2022
1 parent 61ff5a0 commit 514207f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions src/bluetooth.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
void setupBLE(const char* manufacturer, const char* model, int8_t power)
{
Bluefruit.begin();
Bluefruit.setTxPower(power); // Check bluefruit.h for supported values
bledis.setManufacturer(manufacturer);
Bluefruit.setName(model);
bledis.setModel(model);
// Bluefruit.setTxPower(power); // Check bluefruit.h for supported values
// bledis.setManufacturer(manufacturer);
// Bluefruit.setName(model);
// bledis.setModel(model);
bledis.begin();
blehid.begin();
blehid.setKeyboardLedCallback(set_keyboard_led);
// blehid.setKeyboardLedCallback(set_keyboard_led);
startAdv();
}

Expand Down
4 changes: 2 additions & 2 deletions src/usb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
Adafruit_USBD_HID usb_hid(desc_hid_report, sizeof(desc_hid_report), HID_ITF_PROTOCOL_NONE, 2, false);
void setupUSB(uint8_t interval_ms, const char *descriptor)
{
//usb_hid.setPollInterval(interval_ms);
//usb_hid.setStringDescriptor(descriptor);
usb_hid.setPollInterval(interval_ms);
usb_hid.setStringDescriptor(descriptor);
usb_hid.begin();
}
#endif

0 comments on commit 514207f

Please sign in to comment.