Skip to content

Commit bd61f6b

Browse files
committed
Again
1 parent eb7de10 commit bd61f6b

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ if (NOT PICO_PROGRAM_MAIN_ENTRY)
1616
set(OUTPUT_SPI_INTERFACE spi0)
1717

1818
# Use multi-segment, starting index of second led strip or OFF to disable
19-
set(SECOND_SEGMENT_INDEX OFF)
19+
set(SECOND_SEGMENT_INDEX 1)
2020

2121
# If multi-segment is used and it's reversed, set this option to ON to enable reversing
2222
set(SECOND_SEGMENT_REVERSED OFF)

include/base.h

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,16 @@ class Base
131131
statistics.increaseShow();
132132
readyToRender = false;
133133

134-
// if (getLedStripCount() > 1) {
134+
#if defined(SECOND_SEGMENT_START_INDEX)
135135
firstLedStrip->renderAllLanes();
136-
// } else {
137-
// // render only the first strip
138-
// firstLedStrip->renderSingleLane();
139-
// }
136+
#else
137+
if (getLedStripCount() > 1) {
138+
firstLedStrip->renderAllLanes();
139+
} else {
140+
// // render only the first strip
141+
firstLedStrip->renderSingleLane();
142+
}
143+
#endif
140144
}
141145
}
142146

0 commit comments

Comments
 (0)