aboutsummaryrefslogtreecommitdiff
path: root/libraries/Wire/Wire.h
diff options
context:
space:
mode:
authorSandeep Mistry <s.mistry@arduino.cc>2015-08-25 10:24:24 -0400
committerSandeep Mistry <s.mistry@arduino.cc>2015-08-25 10:24:24 -0400
commiteab6601ebc4ff975086fe9a69a816f550b22b8f0 (patch)
treee0c4b603ae0d062dd575df48f2e7e03ba2e28665 /libraries/Wire/Wire.h
parentc25e80e27c013f5cb1a98b246f69d35b7e969b5a (diff)
implement Wire.end() for AVR core
Diffstat (limited to 'libraries/Wire/Wire.h')
-rw-r--r--libraries/Wire/Wire.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libraries/Wire/Wire.h b/libraries/Wire/Wire.h
index 7d00959..702f37d 100644
--- a/libraries/Wire/Wire.h
+++ b/libraries/Wire/Wire.h
@@ -27,6 +27,9 @@
#define BUFFER_LENGTH 32
+// WIRE_HAS_END means Wire has end()
+#define WIRE_HAS_END 1
+
class TwoWire : public Stream
{
private:
@@ -49,6 +52,7 @@ class TwoWire : public Stream
void begin();
void begin(uint8_t);
void begin(int);
+ void end();
void setClock(uint32_t);
void beginTransmission(uint8_t);
void beginTransmission(int);