Skip to content

Commit 7cddcb1

Browse files
committed
Finally works, use #define to switch between Teensy >= 3.0 / LC and arduino
1 parent 99b3aec commit 7cddcb1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/SparkFun_SCD30_Arduino_Library.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@
2828
#ifndef __SparkFun_SCD30_ARDUINO_LIBARARY_H__
2929
#define __SparkFun_SCD30_ARDUINO_LIBARARY_H__
3030

31-
#define USE_TEENSY3_I2C_LIB
31+
// Uncomment the next #define if using an Teensy >= 3 or Teensy LC and want to use the dedicated I2C-Library for it
32+
// Then you also have to include <i2c_t3.h> on your application instead of <Wire.h>
33+
34+
// #define USE_TEENSY3_I2C_LIB
3235

3336
#include "Arduino.h"
3437
#ifdef USE_TEENSY3_I2C_LIB

0 commit comments

Comments
 (0)