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?
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Could you try replacing:
with:
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:
I'm not 100% sure if Espruino on nRF52 ever supported
lsb
byte ordering on hardware?