void mcp23s17::writeWord(byte addr, uint16_t data){ startSend(0); SPI.transfer(addr); SPI.transfer(word2lowByte(data)); SPI.transfer(word2highByte(data)); endSend(); }
void max7318::writeWord(byte addr, uint16_t data){ if (!_error){ Wire.beginTransmission(_adrs); Wire.write(addr);//witch register? Wire.write(word2lowByte(data)); Wire.write(word2highByte(data)); Wire.endTransmission(); } }
void mcp23016::writeWord(byte addr, uint16_t data){ if (!_error){ Wire.beginTransmission(_adrs); Wire.write(addr); Wire.write(word2lowByte(data)); Wire.write(word2highByte(data)); Wire.endTransmission(); } }
void max7301::writeWord(byte addr, uint16_t data){ startSend(0); SPI.transfer(addr); #if !defined(__SAM3X8E__) && ((ARDUINO >= 160) || (TEENSYDUINO > 121)) SPI.transfer16(data); #else SPI.transfer(word2lowByte(data)); SPI.transfer(word2highByte(data)); #endif endSend(); }