We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d34eff commit 48fcb38Copy full SHA for 48fcb38
libraries/Wire/src/Wire.cpp
@@ -59,6 +59,13 @@ TwoWire::TwoWire(uint8_t sda, uint8_t scl)
59
60
// Public Methods //////////////////////////////////////////////////////////////
61
62
+void TwoWire::begin(uint8_t sda, uint8_t scl)
63
+{
64
+ _i2c.sda = digitalPinToPinName(sda);
65
+ _i2c.scl = digitalPinToPinName(scl);
66
+ begin();
67
+}
68
+
69
void TwoWire::begin(bool generalCall)
70
{
71
begin(MASTER_ADDRESS, generalCall);
libraries/Wire/src/Wire.h
@@ -85,6 +85,7 @@ class TwoWire : public Stream {
85
_i2c.sda = sda;
86
};
87
void begin(bool generalCall = false);
88
+ void begin(uint8_t, uint8_t);
89
void begin(uint8_t, bool generalCall = false);
90
void begin(int, bool generalCall = false);
91
void end();
0 commit comments