title: Arduino error: 'I2C_MODE' was not declared in this scope
body: <p>I'm making a program where a buzzer activates if the accelerometer is tilted a certain number of degrees. I'm getting an error that says &quot;'I2C_MODE' was not declared in this scope.&quot; I'm using a Grove Beginner Kit, so all of the parts are automatically connected to each other. I downloaded Seeed_Arduino_LIS3DHTR library from the following link:  <a href="https://github.com/Seeed-Studio/Seeed_Arduino_LIS3DHTR" rel="nofollow noreferrer">https://github.com/Seeed-Studio/Seeed_Arduino_LIS3DHTR</a> and used sample code from the Grove Beginner Kit for Arduino Guide that came with the board, so everything should work properly. I'm getting this error and don't want to move further with the project until I figure out what's causing this error.</p>
  <pre><code>#include &lt;LIS3DHTR.h&gt;
  
  //Gravity Acceleration
  #include &quot;LIS3DHTR.h&quot;
  #ifdef SOFTWAREWIRE
  #include &lt;SoftwareWire.h&gt;
  SoftwareWire myWire(3, 2);
  LIS3DHTR&lt;SoftwareWire&gt; LIS(I2C_MODE); //IIC    This is what the error 
  #define WIRE myWire
  #else
  #include &lt;Wire.h&gt;
  LIS3DHTR&lt;TwoWire&gt; LIS(I2C_MODE);//IIC          THIS IS WHERE THE ERROR OCCURS
  #define WIRE Wire
  #endif
  void setup() {
  Serial.begin(9600);
  while (!Serial) {};
  LIS.begin(WIRE); //IIC init
  delay(100);
  LIS.setOutputDataRate(LIS3DHTR_DATARATE_50HZ);
  }
  void loop() {
  if (!LIS) {
  Serial.println(&quot;LIS3DHTR didn't connect.&quot;);
  while (1);
  return;
  }
  //3 axis
  Serial.print(&quot;x:&quot;); Serial.print(LIS.getAccelerationX()); Serial.prin
  t(&quot; &quot;);
  Serial.print(&quot;y:&quot;); Serial.print(LIS.getAccelerationY()); Serial.prin
  t(&quot; &quot;);
  Serial.print(&quot;z:&quot;); Serial.println(LIS.getAccelerationZ());
  delay(500);
  }
  </code></pre>