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()
40
40
_interruptPin = -1 ;
41
41
_device = new VL53L1X (&Wire, -1 , -1 );
42
42
}
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
- }
57
43
SFEVL53L1X::SFEVL53L1X (TwoWire &i2cPort, int shutdownPin, int interruptPin)
58
44
{
59
45
_i2cPort = &i2cPort;
Original file line number Diff line number Diff line change @@ -61,9 +61,7 @@ class SFEVL53L1X
61
61
public:
62
62
// Constructs our Distance sensor
63
63
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 );
67
65
bool init (); // Deprecated version of begin
68
66
bool begin (); // Initialization of sensor
69
67
bool begin (TwoWire &i2cPort); // Initialization of sensor
You can’t perform that action at this time.
0 commit comments