When compiling with updated code line, receive Compilation error: 'min' in namespace 'std' does not name a template type. and same error:
Compilation error: no matching function for call to 'I2Cdev::writeBit(uint8_t&, int, int, uint8_t&, void*&)'