Skip to content

Commit 025eace

Browse files
committed
Update Arduino_VCNL4200_simpletest.ino
1 parent 3caeb03 commit 025eace

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Arduino_VCNL4200_simpletest/Arduino_VCNL4200_simpletest.ino

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,15 @@ void setup() {
3333
}
3434

3535
void loop() {
36+
// Read the proximity sensor data
3637
uint16_t proxData = vcnl4200.readProxData();
3738
Serial.print("Prox Data: ");
3839
Serial.println(proxData);
3940
// Read the ambient light sensor (ALS) data
4041
uint16_t alsData = vcnl4200.readALSdata();
4142
Serial.print("ALS Data: ");
4243
Serial.print(alsData);
44+
// Read the raw white sensor data
4345
uint16_t whiteData = vcnl4200.readWhiteData();
4446
Serial.print(", White Data: ");
4547
Serial.println(whiteData);

0 commit comments

Comments
 (0)