Skip to content

Commit

Permalink
added support for 8x8 CJMCU 64 Matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
xarnze committed Mar 25, 2021
1 parent 775d3c8 commit f631435
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/PixelIt.ino
Original file line number Diff line number Diff line change
Expand Up @@ -1851,10 +1851,15 @@ void setup()
matrix = new FastLED_NeoMatrix(leds, 32, 8, NEO_MATRIX_TOP + NEO_MATRIX_LEFT + NEO_MATRIX_COLUMNS + NEO_MATRIX_ZIGZAG);
}
// Matix Type 2
else
else if (matrixType == 2)
{
matrix = new FastLED_NeoMatrix(leds, 32, 8, NEO_MATRIX_TOP + NEO_MATRIX_LEFT + NEO_MATRIX_ROWS + NEO_MATRIX_ZIGZAG);
}
// Matix Type 3
else if (matrixType == 3)
{
matrix = new FastLED_NeoMatrix(leds, 32, 8, NEO_MATRIX_BOTTOM + NEO_MATRIX_LEFT + NEO_MATRIX_COLUMNS + NEO_MATRIX_PROGRESSIVE);
}

// Init LightSensor
photocell.setPhotocellPositionOnGround(false);
Expand Down
1 change: 1 addition & 0 deletions src/Webinterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ const char configPage[] PROGMEM = R"=====(
<select type="select" class="form-control" id="matrixType">
<option value="1">Type 1</option>
<option value="2">Type 2</option>
<option value="3">Type 3</option>
</select>
</div>
<div class="form-group">
Expand Down

0 comments on commit f631435

Please sign in to comment.