mirror of
https://gitlab.dit.htwk-leipzig.de/phillip.kuehne/dezibot.git
synced 2025-05-19 02:51:47 +02:00
22 lines
481 B
C++
22 lines
481 B
C++
/****************************************************
|
|
* If you have selected ESP32-S3-USB_OTG as the board,
|
|
* change Tools->USB_Mode to "Hardware CDC and JTAG".
|
|
*****************************************************/
|
|
|
|
#include <Dezibot.h>
|
|
|
|
Dezibot dezibot = Dezibot();
|
|
|
|
void setup() {
|
|
Serial.begin(115200);
|
|
Serial.println("Started");
|
|
dezibot.begin();
|
|
Serial.println("Inited");
|
|
}
|
|
|
|
void loop() {
|
|
Serial.println(dezibot.lightDetection.getValue(DL_FRONT));
|
|
delay(1000);
|
|
}
|
|
|