SPI1_CE1 / Hardware-mapping modification

Thanks for viewing my question!

TL;DR: SPI chip select pins messes with current library pins.

The problem:

While designing a board that includes a large RGB Led matrix which uses this library, i found a possible problem.

My board uses SPI1, where SPI1 uses SPI1_CE1 and SPI1_CE2 as extra pins.
SPI_CE1 is on GPIO_17 which is the clock signal for the matrix display as mapped by this library.

Possible solutions:

Is it possible to use SPI1 and disabling the CE pins all together without issues?
Alternatively, is it possible to just move the clock pin to another pin in rpi-rgb-led-matrix/hardware-mapping.c at master · hzeller/rpi-rgb-led-matrix · GitHub ?

One of those could be a solution, but its hard to confirm it at this moment. Any different solution is welcome aswell!

Thanks for reading and hope anyone can help :slight_smile:

I haven’t done this, but I think the library uses I/O pin banging and that you can use other pins if you redefine the mapping in the library.