File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
libraries/Bluefruit52Lib/examples/Peripheral Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 13
13
*********************************************************************/
14
14
#include < bluefruit.h>
15
15
16
- BLEDis bledis;
16
+ // BLE Service
17
+ BLEDis bledis;
17
18
BLEUart bleuart;
18
- BLEBas blebas;
19
+ BLEBas blebas;
19
20
20
21
#define STATUS_LED (17 )
21
22
#define BLINKY_MS (2000 )
Original file line number Diff line number Diff line change @@ -30,6 +30,8 @@ uint8_t stride;
30
30
31
31
Adafruit_NeoPixel pixels = Adafruit_NeoPixel();
32
32
33
+ // BLE Service
34
+ BLEDis bledis;
33
35
BLEUart bleuart;
34
36
35
37
void setup ()
@@ -41,9 +43,15 @@ void setup()
41
43
// Config Neopixels
42
44
pixels.begin ();
43
45
46
+ // Init Bluefruit
44
47
Bluefruit.begin ();
45
48
Bluefruit.setName (" Bluefruit52" );
46
49
50
+ // Configure and Start Device Information Service
51
+ bledis.setManufacturer (" Adafruit Industries" );
52
+ bledis.setModel (" Bluefruit Feather52" );
53
+ bledis.begin ();
54
+
47
55
// Configure and start BLE UART service
48
56
bleuart.begin ();
49
57
You can’t perform that action at this time.
0 commit comments