int TSL2561_I2C::setLowInterruptThreshold( const int threshold ){ char threshold_bytes[2]; threshold_bytes[0] = threshold; // take lowest 8 bits of threshold threshold_bytes[1] = threshold >> 8; // take highest 8 bits of threshold int ack = writeMultipleRegisters( TSL_THRESHLOWLOW, threshold_bytes, 2 ); return ack; }
int TSL2561_I2C::setHighInterruptThreshold( const int threshold ){ char threshold_bytes[2]; threshold_bytes[0] = threshold; threshold_bytes[1] = threshold >> 8; int ack = writeMultipleRegisters( TSL_THRESHHIGHLOW, threshold_bytes, 2 ); return ack; }
void Rover::sendRoverData(){ writeMultipleRegisters(32,2); }