• Aha! Got the inversion back after trying your technique with hardware SPI.

    I reset the board and tried with the following isolated test case:

    var spi = SPI1;
    spi.setup({miso:D15, mosi:D14, sck:LED1, baud: 1000000});
    function testMosi(){
     var finalClk = 0b10000000;
      var c = 0b10101010;
      var d = this.spi.send([c,c,c,c,c,c,finalClk]);

    Gordon, can you try the above and take a look at D14 on your scope? Do you also see a normally high MOSI line? Please tell me I'm not crazy. Or, at least, show me what I'm doing wrong here...


Avatar for jijidad @jijidad started