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 3caeb03 commit 025eaceCopy full SHA for 025eace
Arduino_VCNL4200_simpletest/Arduino_VCNL4200_simpletest.ino
@@ -33,13 +33,15 @@ void setup() {
33
}
34
35
void loop() {
36
+ // Read the proximity sensor data
37
uint16_t proxData = vcnl4200.readProxData();
38
Serial.print("Prox Data: ");
39
Serial.println(proxData);
40
// Read the ambient light sensor (ALS) data
41
uint16_t alsData = vcnl4200.readALSdata();
42
Serial.print("ALS Data: ");
43
Serial.print(alsData);
44
+ // Read the raw white sensor data
45
uint16_t whiteData = vcnl4200.readWhiteData();
46
Serial.print(", White Data: ");
47
Serial.println(whiteData);
0 commit comments