We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b81356b commit ae8bb1cCopy full SHA for ae8bb1c
examples/Continuous/Continuous.ino
@@ -7,16 +7,12 @@ The range readings are in units of mm. */
7
#include <Wire.h>
8
#include <VL53L0X.h>
9
10
-VL53L0X sensor(&Wire1);
+VL53L0X sensor;
11
12
void setup()
13
{
14
Serial.begin(9600);
15
- Wire1.begin();
16
- pinMode(0, OUTPUT); digitalWrite(0, HIGH); // use the first one
17
- pinMode(2, OUTPUT); digitalWrite(2, LOW); // reset
18
- pinMode(4, OUTPUT); digitalWrite(4, LOW); // reset
19
- pinMode(6, OUTPUT); digitalWrite(6, LOW); // reset
+ Wire.begin();
20
sensor.setTimeout(500);
21
if (!sensor.init())
22
0 commit comments