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

Issue in Example 8 #37

Open
williamesp2015 opened this issue Oct 6, 2021 · 0 comments
Open

Issue in Example 8 #37

williamesp2015 opened this issue Oct 6, 2021 · 0 comments

Comments

@williamesp2015
Copy link

I also got better results by using FIFO reading.
for (byte i = 75; i < 100; i++)
{
while (particleSensor.available() == false) //do we have new data?
particleSensor.check(); //Check the sensor for new data
irBuffer[i] = particleSensor.getFIFOIR();
// greenBuffer[i] = particleSensor.getGreen();
particleSensor.nextSample(); //We're finished with this sample so move to next sample
}

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

1 participant