Include ATTiny85 support

conditional compilation to use TinyWireM
This commit is contained in:
driverblock
2015-05-15 13:38:13 -04:00
parent d3fcdeb5c0
commit d087310e6a

View File

@ -42,7 +42,14 @@
#include <WProgram.h>
#endif
#include <Adafruit_Sensor.h>
#include <Wire.h>
#ifdef __AVR_ATtiny85__
#include "TinyWireM.h"
#define Wire TinyWireM
#else
#include <Wire.h>
#endif
#define TSL2561_VISIBLE 2 // channel 0 - channel 1
#define TSL2561_INFRARED 1 // channel 1