Skip to content

Commit

Permalink
fix for CircuitPlayground
Browse files Browse the repository at this point in the history
  • Loading branch information
ladyada committed Nov 7, 2016
1 parent 913a045 commit faff109
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion Adafruit_CircuitPlayground.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ boolean Adafruit_CircuitPlayground::begin(uint8_t brightness) {
pinMode(CPLAY_BUZZER, OUTPUT);
pinMode(CPLAY_CAPSENSE_SHARED, OUTPUT);

strip = Adafruit_CPlay_NeoPixel(10, CPLAY_NEOPIXELPIN, NEO_GRB + NEO_KHZ800);
strip = Adafruit_CPlay_NeoPixel();
strip.updateType(NEO_GRB + NEO_KHZ800);
strip.updateLength(10);
strip.setPin(CPLAY_NEOPIXELPIN);

lis = Adafruit_CPlay_LIS3DH(CPLAY_LIS3DH_CS);
mic = Adafruit_CPlay_Mic();

Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=Adafruit Circuit Playground
version=1.6.3
version=1.6.4
author=Adafruit
maintainer=Adafruit <[email protected]>
sentence=All in one library to control Adafruit's Circuit Playground board.
Expand Down
1 change: 1 addition & 0 deletions utility/Adafruit_CPlay_NeoPixel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ Adafruit_CPlay_NeoPixel::Adafruit_CPlay_NeoPixel() :
Adafruit_CPlay_NeoPixel::~Adafruit_CPlay_NeoPixel() {
if(pixels) free(pixels);
if(pin >= 0) pinMode(pin, INPUT);
pixels = NULL;
}

void Adafruit_CPlay_NeoPixel::begin(void) {
Expand Down

0 comments on commit faff109

Please sign in to comment.