CMakeLists.txt for Pimoroni Plasma 2040 (GPIO14-15) with Multi-Segment #19
-
Hi, i would like to compile the firmware for the Pimoroni Plasma 2040 for use in a new (reversed) multi-segment setup with 600 LEDs and i have a few questions on changing the CMakeLists.txt
does this mean, that for multi-segment the data pin needs to be set to 14 so that the second one is 14+1=15 and does this mean, the first LED section needs to be connected to 14 and the second segment to 15?
Long story short, would you change anything on my attempt to change the CMakeLists.txt for Pimoroni Plasma 2040?
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi
First LED has 0 index. so first 300 segment is 0-299 and the second segment is 300-599. Total 600LEDs configured in HyperHDR.
Yes, this rule about the second segment (pin +1) always applies, so the first segment is OUTPUT_DATA_PIN = 14 (the second will be 15)
set(SECOND_SEGMENT_INDEX 301) -> set(SECOND_SEGMENT_INDEX 300) ? You didnt need to change SPI settings, it is simply ignored for Neopixel LEDs: OUTPUT_SPI_INTERFACE, OUTPUT_SPI_DATA_PIN, OUTPUT_SPI_CLOCK_PIN. |
Beta Was this translation helpful? Give feedback.
Hi
First LED has 0 index. so first 300 segment is 0-299 and the second segment is 300-599. Total 600LEDs configured in HyperHDR.
Yes, this rule about the secon…