You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
}
The text was updated successfully, but these errors were encountered:
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
}
The text was updated successfully, but these errors were encountered: