From eab6601ebc4ff975086fe9a69a816f550b22b8f0 Mon Sep 17 00:00:00 2001 From: Sandeep Mistry Date: Tue, 25 Aug 2015 10:24:24 -0400 Subject: implement Wire.end() for AVR core --- libraries/Wire/Wire.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libraries/Wire/Wire.cpp') 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; -- cgit v1.2.3-18-g5258