diff options
author | Sandeep Mistry <s.mistry@arduino.cc> | 2015-08-25 10:24:24 -0400 |
---|---|---|
committer | Sandeep Mistry <s.mistry@arduino.cc> | 2015-08-25 10:24:24 -0400 |
commit | eab6601ebc4ff975086fe9a69a816f550b22b8f0 (patch) | |
tree | e0c4b603ae0d062dd575df48f2e7e03ba2e28665 /libraries/Wire/Wire.cpp | |
parent | c25e80e27c013f5cb1a98b246f69d35b7e969b5a (diff) |
implement Wire.end() for AVR core
Diffstat (limited to 'libraries/Wire/Wire.cpp')
-rw-r--r-- | libraries/Wire/Wire.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libraries/Wire/Wire.cpp b/libraries/Wire/Wire.cpp index 835b794..2bd48ed 100644 --- a/libraries/Wire/Wire.cpp +++ b/libraries/Wire/Wire.cpp @@ -75,6 +75,11 @@ void TwoWire::begin(int address) begin((uint8_t)address); } +void TwoWire::end(void) +{ + twi_disable(); +} + void TwoWire::setClock(uint32_t frequency) { TWBR = ((F_CPU / frequency) - 16) / 2; |