• Well, you have 2 options:

    • Use hardware SPI (in which case you must use specific pins - like B3 and B5)
    • Use software SPI (in which case you can use any pins you want to)

    For software, the code looks like I pasted above. For hardware, it looks like this:

    SPI3.setup({mosi: B5, sck: B3 });
    SPI3.write(my_data, MY_ST_CP_PIN);
    
About

Avatar for Gordon @Gordon started