Giga Blinking Red

Hi,

With the sketch below, after a few seconds of running the Arduino Giga starts flashing red. Linked is the webpage for the sensor. Any guidance would be greatly appreciated. Thank you.

#include <Wire.h>
#include "SparkFun_STTS22H.h"

SparkFun_STTS22H mySTTS; 

float temp; 

void setup() {
  delay(5000);
  
  Serial.begin(115200);

  if( !mySTTS.begin() )
	{
		Serial.println("Did not begin.");
		while(1);
	}

  mySTTS.setDataRate(STTS22H_POWER_DOWN);
	delay(10);
	mySTTS.setDataRate(STTS22H_1Hz);

	mySTTS.enableAutoIncrement();
}

void loop() {
  mySTTS.getTemperatureF(&temp);

    Serial.print("Temp: "); 
		Serial.print(temp);
		Serial.println("F"); 

}

The line below was missing and that was the error:

Wire.begin();

1 Like