It seems that nobody uses is function ????????? It could be usefull when using SPI devices which doesn't use 8bits dialog !!!!!!!!!!!
For me, i'm using an MCP3008 ( 10 bits ADC SPI ), and this device could use only 17bits instead of 24 to dialog with it's MCU and using this method could ...
Hello, This code: uint16_t readSPI(uint8_t first, uint16_t last) { CS_LOW_inline(); uint32_t ret = 0; uint32_t *out = &ret; uint32_t data = first << 16; data |= last; SPI.transferBits( data, out, 17); // here is the problem CS_HIGH_inline(); return ret & 0x0FFF; } does not return bits from ...