We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
On the MSP-EXP430FR4133, I get strange return values from opt3001::readRegister, if I do not mask the msb and lsb after reading through wire.read.
My workaround:
msb = Wire.read(); lsb = Wire.read(); result = ((msb&0xFF) << 8) | (lsb&0xFF);
The text was updated successfully, but these errors were encountered:
How msb and lsb have been declared? They should be uint8_t.
msb
lsb
uint8_t
Sorry, something went wrong.
msb and lsb are int8_t
int8_t
They were not declared by me. OPT3001.cpp as a library is part of Energia.
No branches or pull requests
On the MSP-EXP430FR4133, I get strange return values from opt3001::readRegister, if I do not mask the msb and lsb after reading through wire.read.
My workaround:
The text was updated successfully, but these errors were encountered: