From 7cddcb1e0cea2a7033dcbe7b93cfd75d1fe4f7f6 Mon Sep 17 00:00:00 2001 From: Jogi Date: Sat, 9 Jan 2021 01:21:21 +0100 Subject: [PATCH] Finally works, use #define to switch between Teensy >= 3.0 / LC and arduino --- src/SparkFun_SCD30_Arduino_Library.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/SparkFun_SCD30_Arduino_Library.h b/src/SparkFun_SCD30_Arduino_Library.h index 71187bd..68b530f 100644 --- a/src/SparkFun_SCD30_Arduino_Library.h +++ b/src/SparkFun_SCD30_Arduino_Library.h @@ -28,7 +28,10 @@ #ifndef __SparkFun_SCD30_ARDUINO_LIBARARY_H__ #define __SparkFun_SCD30_ARDUINO_LIBARARY_H__ -#define USE_TEENSY3_I2C_LIB +// Uncomment the next #define if using an Teensy >= 3 or Teensy LC and want to use the dedicated I2C-Library for it +// Then you also have to include on your application instead of + +// #define USE_TEENSY3_I2C_LIB #include "Arduino.h" #ifdef USE_TEENSY3_I2C_LIB