Diferencia entre revisiones de «VL6180X»
Página creada con «<syntaxhighlight lang="c++"> #include "Wire.h" #include "VL6180X.h" // Pin 13 is connected to the SHUT pin on the left VL6180X module, sensor_l. const int shutdown_l_low_pin = 13; const int reset_low_l = 16; const int reset_low_r = 17; VL6180X sensor_l; VL6180X sensor_r; void setup() { Serial.begin(9600); Wire.begin(); pinMode(2, OUTPUT); pinMode(shutdown_l_low_pin, OUTPUT); pinMode(reset_low_l, OUTPUT); pinMode(reset_low_r, OUTPUT); // Disable sen…» |
Sin resumen de edición |
||
| Línea 13: | Línea 13: | ||
void setup() { | void setup() { | ||
Wire.begin(); | Wire.begin(); | ||
pinMode(shutdown_l_low_pin, OUTPUT); | pinMode(shutdown_l_low_pin, OUTPUT); | ||
pinMode(reset_low_l, OUTPUT); | pinMode(reset_low_l, OUTPUT); | ||
| Línea 40: | Línea 38: | ||
digitalWrite(reset_low_l, HIGH); | digitalWrite(reset_low_l, HIGH); | ||
digitalWrite(reset_low_r, HIGH); | digitalWrite(reset_low_r, HIGH); | ||
} | } | ||