File tree Expand file tree Collapse file tree 2 files changed +1
-17
lines changed Expand file tree Collapse file tree 2 files changed +1
-17
lines changed Original file line number Diff line number Diff line change @@ -40,20 +40,6 @@ SFEVL53L1X::SFEVL53L1X()
4040 _interruptPin = -1 ;
4141 _device = new VL53L1X (&Wire, -1 , -1 );
4242}
43- SFEVL53L1X::SFEVL53L1X (TwoWire &i2cPort)
44- {
45- _i2cPort = &i2cPort;
46- _shutdownPin = -1 ;
47- _interruptPin = -1 ;
48- _device = new VL53L1X (&i2cPort, -1 , -1 );
49- }
50- SFEVL53L1X::SFEVL53L1X (TwoWire &i2cPort, int shutdownPin)
51- {
52- _i2cPort = &i2cPort;
53- _shutdownPin = shutdownPin;
54- _interruptPin = -1 ;
55- _device = new VL53L1X (&i2cPort, shutdownPin, -1 );
56- }
5743SFEVL53L1X::SFEVL53L1X (TwoWire &i2cPort, int shutdownPin, int interruptPin)
5844{
5945 _i2cPort = &i2cPort;
Original file line number Diff line number Diff line change @@ -61,9 +61,7 @@ class SFEVL53L1X
6161 public:
6262 // Constructs our Distance sensor
6363 SFEVL53L1X (); // Default to Wire. Set both pins to -1 (undefined).
64- SFEVL53L1X (TwoWire &i2cPort); // Set both pins to -1 (undefined).
65- SFEVL53L1X (TwoWire &i2cPort, int shutdownPin); // Set interrupt pin to -1 (undefined).
66- SFEVL53L1X (TwoWire &i2cPort, int shutdownPin, int interruptPin);
64+ SFEVL53L1X (TwoWire &i2cPort, int shutdownPin = -1 , int interruptPin = -1 );
6765 bool init (); // Deprecated version of begin
6866 bool begin (); // Initialization of sensor
6967 bool begin (TwoWire &i2cPort); // Initialization of sensor
You can’t perform that action at this time.
0 commit comments