We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b80688 commit 777a110Copy full SHA for 777a110
libraries/Wire/Wire.cpp
@@ -49,6 +49,10 @@ void TwoWire::begin(uint8_t address) {
49
sercom->enableWIRE();
50
}
51
52
+void TwoWire::end() {
53
+ sercom->disableWIRE();
54
+}
55
+
56
void TwoWire::setClock(uint32_t frequency) {
57
// dummy funtion
58
libraries/Wire/Wire.h
@@ -28,12 +28,16 @@
28
29
#define BUFFER_LENGTH 32
30
31
+ // WIRE_HAS_END means Wire has end()
32
+#define WIRE_HAS_END 1
33
34
class TwoWire : public Stream
35
{
36
public:
37
TwoWire(SERCOM *s, uint8_t pinSDA, uint8_t pinSCL);
38
void begin();
39
void begin(uint8_t);
40
+ void end();
41
void setClock(uint32_t); // dummy function
42
43
void beginTransmission(uint8_t);
0 commit comments