Skip to content

Commit

Permalink
Changed fire timing
Browse files Browse the repository at this point in the history
  • Loading branch information
ArminJo committed Dec 11, 2020
1 parent 8025014 commit 51770cf
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
4 changes: 1 addition & 3 deletions examples/MatrixDemo/MatrixDemo.ino
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
#define PIN_NEOPIXEL_MATRIX 8
#define MATRIX_NUMBER_OF_COLUMNS 8
#define MATRIX_NUMBER_OF_ROWS 8
#define NEOPIXEL_MATRIX_NUM_PIXELS (MATRIX_NUMBER_OF_COLUMNS * MATRIX_NUMBER_OF_ROWS)

/*
* Specify your matrix geometry as 4th parameter.
Expand Down Expand Up @@ -79,8 +78,7 @@ void loop() {
if (NeoPixelMatrix.ActivePattern == PATTERN_TICKER) {
// change color of ticker after each update
NeoPixelMatrix.Color1 = NeoPatterns::Wheel(sWheelPosition);
sWheelPosition += 256 / NEOPIXEL_MATRIX_NUM_PIXELS
;
sWheelPosition += 4;
}
}
}
2 changes: 1 addition & 1 deletion examples/MatrixFire/MatrixFire.ino
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ void setup() {
NeoPixelMatrix.clear();

Serial.println(F("Fire"));
NeoPixelMatrix.Fire(400, 30);
NeoPixelMatrix.Fire(42, 30);
}

void loop() {
Expand Down
2 changes: 1 addition & 1 deletion src/MatrixNeoPatterns.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -794,7 +794,7 @@ void MatrixPatternsDemo(NeoPatterns *aLedsPtr) {
aLedsPtr->Delay(1500);
break;
case 8:
tLedsPtr->Fire(100, 50);
tLedsPtr->Fire(150, 30);
break;
case 9:
aLedsPtr->clear(); // Clear matrix
Expand Down
4 changes: 2 additions & 2 deletions src/MatrixSnake.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -979,9 +979,9 @@ void MatrixAndSnakePatternsDemoHandler(NeoPatterns *aLedsPtr) {
if (sTickerDirection == DIRECTION_LEFT) {
// after 4 minutes show more fire :-)
if (millis() < (4 * 60 * 1000L)) {
tLedsPtr->Fire(100, 50);
tLedsPtr->Fire(100, 30);
} else {
tLedsPtr->Fire(100, 500);
tLedsPtr->Fire(500, 30);
}
} else {
initSnakeAutorun(tLedsPtr, 200, COLOR32_BLUE, 2);
Expand Down

0 comments on commit 51770cf

Please sign in to comment.