RGB Pixel seems to work
This commit is contained in:
1 parent
55d78cfb9b
commit
7770836fbe
3 files changed
+37
-4
No files matched your search
@@ -11,11 +11,11 @@
|
||||
All text above, and the splash screen below must be included in
|
||||
any redistribution
|
||||
*********************************************************************/
|
||||
#include <bluefruit.h>
|
||||
#include <Adafruit_CircuitPlayground.h>
|
||||
#include <Adafruit_LittleFS.h>
|
||||
#include <InternalFileSystem.h>
|
||||
#include <bluefruit.h>
|
||||
#include <BLEAdafruitService.h>
|
||||
#include <Adafruit_CircuitPlayground.h>
|
||||
|
||||
// BLE Service
|
||||
BLEDfu bledfu; // OTA DFU service
|
||||
@@ -32,6 +32,8 @@ BLEAdafruitTone bleTone;
|
||||
|
||||
BLEAdafruitRgbPixel blePixel;
|
||||
|
||||
Adafruit_NeoPixel strip = Adafruit_NeoPixel(10, CPLAY_NEOPIXELPIN, NEO_GRB + NEO_KHZ800);
|
||||
|
||||
uint16_t measure_button(uint8_t* buf, uint16_t bufsize)
|
||||
{
|
||||
uint32_t button = 0;
|
||||
@@ -127,7 +129,8 @@ void setup()
|
||||
|
||||
bleTone.begin(CPLAY_BUZZER);
|
||||
|
||||
blePixel.begin();
|
||||
strip.begin();
|
||||
blePixel.begin(&strip);
|
||||
|
||||
// Set up and start advertising
|
||||
startAdv();
|
||||
|
||||
Reference in new issue
Block a user