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:
Lars Norpchen
2014-03-30 21:47:24 -07:00
parent 8088f6cd32
commit f7b050003c
2 changed files with 8 additions and 6 deletions
+2
View File
@@ -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__