Skip to content

Commit

Permalink
Finally works, use #define to switch between Teensy >= 3.0 / LC and a…
Browse files Browse the repository at this point in the history
…rduino
  • Loading branch information
jogi-k committed Jan 9, 2021
1 parent 99b3aec commit 7cddcb1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/SparkFun_SCD30_Arduino_Library.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 <i2c_t3.h> on your application instead of <Wire.h>

// #define USE_TEENSY3_I2C_LIB

#include "Arduino.h"
#ifdef USE_TEENSY3_I2C_LIB
Expand Down

0 comments on commit 7cddcb1

Please sign in to comment.