writeRegister method
Implementation
int writeRegister(String registerName, int byteValue, logIt) {
// byte arguments
if (logIt) {
printWithTimestamp("Writing $byteValue to $registerName");
}
wrapper.writeByteReg(max30101DeviceAddress, _registerMap[registerName]!.address, byteValue);
return byteValue;
}