From d087310e6a3414d75656665e627cd0f1643ace74 Mon Sep 17 00:00:00 2001 From: driverblock Date: Fri, 15 May 2015 13:38:13 -0400 Subject: [PATCH] Include ATTiny85 support conditional compilation to use TinyWireM --- Adafruit_TSL2561_U.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Adafruit_TSL2561_U.h b/Adafruit_TSL2561_U.h index 48990e4..dd97473 100644 --- a/Adafruit_TSL2561_U.h +++ b/Adafruit_TSL2561_U.h @@ -42,7 +42,14 @@ #include #endif #include -#include + +#ifdef __AVR_ATtiny85__ + #include "TinyWireM.h" + #define Wire TinyWireM +#else + #include +#endif + #define TSL2561_VISIBLE 2 // channel 0 - channel 1 #define TSL2561_INFRARED 1 // channel 1