• Could you try replacing:

    SPI1.setup({sck:D28, miso:D30, mosi:D31, baud:integer=1000000, mode:integer=1, order:'lsb' });
    

    with:

    SPI1.setup({sck:D28, miso:D30, mosi:D31, baud:1000000, mode:1, order:'lsb' });
    

    Not sure if that'll help but it wasn't really proper JS before. I'll update the example on the Espruino site.

    You could also try using software SPI:

    var spi = new SPI();
    spi.setup({sck:D28, miso:D30, mosi:D31, baud:1000000, mode:1, order:'lsb' });
    var TLE = require("TLE94112").connect(spi, D27, D29);
    

    I'm not 100% sure if Espruino on nRF52 ever supported lsb byte ordering on hardware?

About

Avatar for Gordon @Gordon started