You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • You could try:

    function SPIreadOneRegister(regAddress, spi){
        var d = spi.send([0x0B,regAddress,0x00], D31);
        return d[2];
    }
    

    You're sending 3 bytes so you'll get 3 bytes back - but it's the last one (index 2) that'll contain the data you need.

About

Avatar for Gordon @Gordon started