Skip to content

Commit bd7c8db

Browse files
committed
add bledis for neopixel example
1 parent 5fd39b1 commit bd7c8db

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

libraries/Bluefruit52Lib/examples/Peripheral/bleuart/bleuart.ino

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@
1313
*********************************************************************/
1414
#include <bluefruit.h>
1515

16-
BLEDis bledis;
16+
// BLE Service
17+
BLEDis bledis;
1718
BLEUart bleuart;
18-
BLEBas blebas;
19+
BLEBas blebas;
1920

2021
#define STATUS_LED (17)
2122
#define BLINKY_MS (2000)

libraries/Bluefruit52Lib/examples/Peripheral/neopixel/neopixel.ino

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ uint8_t stride;
3030

3131
Adafruit_NeoPixel pixels = Adafruit_NeoPixel();
3232

33+
// BLE Service
34+
BLEDis bledis;
3335
BLEUart bleuart;
3436

3537
void setup()
@@ -41,9 +43,15 @@ void setup()
4143
// Config Neopixels
4244
pixels.begin();
4345

46+
// Init Bluefruit
4447
Bluefruit.begin();
4548
Bluefruit.setName("Bluefruit52");
4649

50+
// Configure and Start Device Information Service
51+
bledis.setManufacturer("Adafruit Industries");
52+
bledis.setModel("Bluefruit Feather52");
53+
bledis.begin();
54+
4755
// Configure and start BLE UART service
4856
bleuart.begin();
4957

0 commit comments

Comments
 (0)