Dezibot 4
Loading...
Searching...
No Matches
lightdetection_serial.ino
Go to the documentation of this file.
1/****************************************************
2* If you have selected ESP32-S3-USB_OTG as the board,
3* change Tools->USB_Mode to "Hardware CDC and JTAG".
4*****************************************************/
5
6#include <Dezibot.h>
7
8Dezibot dezibot = Dezibot();
9
10void setup() {
11 Serial.begin(115200);
12 Serial.println("Started");
13 dezibot.begin();
14 Serial.println("Inited");
15}
16
17void loop() {
18 Serial.println(dezibot.lightDetection.getValue(DL_FRONT));
19 delay(1000);
20}
21