File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,13 @@ TwoWire::TwoWire(uint8_t sda, uint8_t scl)
59
59
60
60
// Public Methods //////////////////////////////////////////////////////////////
61
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
+
62
69
void TwoWire::begin (bool generalCall)
63
70
{
64
71
begin (MASTER_ADDRESS, generalCall);
Original file line number Diff line number Diff line change @@ -85,6 +85,7 @@ class TwoWire : public Stream {
85
85
_i2c.sda = sda;
86
86
};
87
87
void begin (bool generalCall = false );
88
+ void begin (uint8_t , uint8_t );
88
89
void begin (uint8_t , bool generalCall = false );
89
90
void begin (int , bool generalCall = false );
90
91
void end ();
You can’t perform that action at this time.
0 commit comments