mirror of
https://github.com/adafruit/Adafruit_TSL2561.git
synced 2025-07-30 00:47:16 +02:00
Include ATTiny85 support
conditional compilation to use TinyWireM
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user