diff --git a/examples/Example3_BulbReadings/Example3_BulbReadings.ino b/examples/Example3_BulbReadings/Example3_BulbReadings.ino index aa79ecb..4228753 100644 --- a/examples/Example3_BulbReadings/Example3_BulbReadings.ino +++ b/examples/Example3_BulbReadings/Example3_BulbReadings.ino @@ -27,13 +27,13 @@ byte GAIN = 2; byte MEASUREMENT_MODE = 0; void setup() { + Wire.begin(); + Serial.begin(115200); + sensor.begin(Wire, GAIN, MEASUREMENT_MODE); } void loop() { - Wire.begin(); - Serial.begin(115200); - sensor.takeMeasurementsWithBulb(); if (sensor.getVersion() == SENSORTYPE_AS7262) @@ -72,4 +72,6 @@ void loop() { Serial.print("] tempF["); Serial.print(sensor.getTemperatureF(), 1); Serial.print("]"); + + Serial.println(); }
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: