Skip to content

Commit

Permalink
Update Continuous.ino
Browse files Browse the repository at this point in the history
undo changes
  • Loading branch information
KurtE committed Aug 1, 2020
1 parent b81356b commit ae8bb1c
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions examples/Continuous/Continuous.ino
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,12 @@ The range readings are in units of mm. */
#include <Wire.h>
#include <VL53L0X.h>

VL53L0X sensor(&Wire1);
VL53L0X sensor;

void setup()
{
Serial.begin(9600);
Wire1.begin();
pinMode(0, OUTPUT); digitalWrite(0, HIGH); // use the first one
pinMode(2, OUTPUT); digitalWrite(2, LOW); // reset
pinMode(4, OUTPUT); digitalWrite(4, LOW); // reset
pinMode(6, OUTPUT); digitalWrite(6, LOW); // reset
Wire.begin();
sensor.setTimeout(500);
if (!sensor.init())
{
Expand Down

0 comments on commit ae8bb1c

Please sign in to comment.