Getting the hardware SPI module on the 14M2 chip working and getting the code to control which LED string using AllyCat's suggested approach working are issues that can be investigated separately.
To get you started here is some code that I have tested on my 14M2 chip to get you started using the hardware SPI module.
The first program POST_PE_APA102_Example_6.bas is the PE sample program APA102_Example_6 modified to use the hardware SPI module.
Replace the code in the Main loop with your own code to write patterns to the string using the macros head(), tail() and send().
The second program POST_Example_Flashing_Random_Colours.bas demonstrates using storage variables to store pre-calculated patterns that can be quickly written to the string using bptr. This was so fast that I've put a "PAUSE 8000" after each string update so that you can clearly see each of the 4 different sets of random colours.
To get you started here is some code that I have tested on my 14M2 chip to get you started using the hardware SPI module.
The first program POST_PE_APA102_Example_6.bas is the PE sample program APA102_Example_6 modified to use the hardware SPI module.
Replace the code in the Main loop with your own code to write patterns to the string using the macros head(), tail() and send().
The second program POST_Example_Flashing_Random_Colours.bas demonstrates using storage variables to store pre-calculated patterns that can be quickly written to the string using bptr. This was so fast that I've put a "PAUSE 8000" after each string update so that you can clearly see each of the 4 different sets of random colours.