add bledis for neopixel example

This commit is contained in:
hathach committed 2017-03-15 13:31:34 +07:00
1 parent 5fd39b1e28
commit bd7c8dbcb5
2 files changed
+11 -2

No files matched your search

@@ -13,9 +13,10 @@
*********************************************************************/
#include <bluefruit.h>
BLEDis bledis;
// BLE Service
BLEDis bledis;
BLEUart bleuart;
BLEBas blebas;
BLEBas blebas;
#define STATUS_LED (17)
#define BLINKY_MS (2000)
@@ -30,6 +30,8 @@ uint8_t stride;
Adafruit_NeoPixel pixels = Adafruit_NeoPixel();
// BLE Service
BLEDis bledis;
BLEUart bleuart;
void setup()
@@ -41,9 +43,15 @@ void setup()
// Config Neopixels
pixels.begin();
// Init Bluefruit
Bluefruit.begin();
Bluefruit.setName("Bluefruit52");
// Configure and Start Device Information Service
bledis.setManufacturer("Adafruit Industries");
bledis.setModel("Bluefruit Feather52");
bledis.begin();
// Configure and start BLE UART service
bleuart.begin();