Skip to content

Commit 764be7a

Browse files
committed
added end function to TwoWire
1 parent 5da139c commit 764be7a

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Diff for: libraries/Wire/src/Wire.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -363,5 +363,10 @@ void TwoWire::dumpI2C()
363363
i2cDumpI2c(i2c);
364364
}
365365

366+
void TwoWire::end()
367+
{
368+
i2cRelease(i2c);
369+
}
370+
366371
TwoWire Wire = TwoWire(0);
367372
TwoWire Wire1 = TwoWire(1);

Diff for: libraries/Wire/src/Wire.h

+1
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ class TwoWire: public Stream
131131

132132
void dumpInts();
133133
void dumpI2C();
134+
void end();
134135
};
135136

136137
extern TwoWire Wire;

0 commit comments

Comments
 (0)