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)
5959
6060// Public Methods //////////////////////////////////////////////////////////////
6161
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+
6269void TwoWire::begin (bool generalCall)
6370{
6471 begin (MASTER_ADDRESS, generalCall);
Original file line number Diff line number Diff line change @@ -85,6 +85,7 @@ class TwoWire : public Stream {
8585 _i2c.sda = sda;
8686 };
8787 void begin (bool generalCall = false );
88+ void begin (uint8_t , uint8_t );
8889 void begin (uint8_t , bool generalCall = false );
8990 void begin (int , bool generalCall = false );
9091 void end ();
You can’t perform that action at this time.
0 commit comments