sparkfun/SparkFun_MAX3010x_Sensor_Library

Issue in Example 8

williamesp2015 opened this issue · 0 comments

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
}