mirror of
https://github.com/adafruit/Adafruit_SSD1306.git
synced 2026-07-27 20:05:50 +00:00
Macro for Wire.write to Wire.send in TWI
Current library does not compile in <1.0 because it references Wire.write(), which was called Wire.send() in <1.0 -- added a macro to wrap the change.
This commit is contained in:
@@ -18,8 +18,10 @@ All text above, and the splash screen must be included in any redistribution
|
||||
|
||||
#if ARDUINO >= 100
|
||||
#include "Arduino.h"
|
||||
#define WIRE_WRITE Wire.write
|
||||
#else
|
||||
#include "WProgram.h"
|
||||
#define WIRE_WRITE Wire.send
|
||||
#endif
|
||||
|
||||
#ifdef __SAM3X8E__
|
||||
|
||||
Reference in New Issue
Block a user