Skip to content
New issue

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

set_envdata210 from HDC1080 data format wrong #1

Open
cyberbsd opened this issue May 24, 2019 · 1 comment
Open

set_envdata210 from HDC1080 data format wrong #1

cyberbsd opened this issue May 24, 2019 · 1 comment

Comments

@cyberbsd
Copy link

// Pass environmental data from ENS210 to CCS811
ccs811.set_envdata210(float(hdc1080.readTemperature()), float(hdc1080.readHumidity()));

Need to refer CCS811 env data datasheet U16 format.

@bfaliszek
Copy link
Owner

So the code should be:
ccs811.set_envdata((hdc1080.readTemperature() + 25) * 512, hdc1080.readHumidity() * 512 );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants