Skip to content

Commit

Permalink
Update AS7341_Spectrometer_JSON_CCT.ino
Browse files Browse the repository at this point in the history
  • Loading branch information
tigoe committed Feb 14, 2025
1 parent 9675518 commit 364bf6f
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,11 @@ void setup() {
if (!Serial) delay(3000);

// check for the sensor:
while (!as7341.begin()) {
// initialize the sensor:
if (!as7341.begin()) {
Serial.println("Sensor not found, check wiring");
delay(1000);
while (true)
;
}

// set integration time:
Expand Down

0 comments on commit 364bf6f

Please sign in to comment.