mirror of
https://gitlab.dit.htwk-leipzig.de/phillip.kuehne/dezibot.git
synced 2025-07-04 17:51:41 +02:00
Release
This commit is contained in:
21
example/lightdetection_serial/lightdetection_serial.ino
Normal file
21
example/lightdetection_serial/lightdetection_serial.ino
Normal file
@ -0,0 +1,21 @@
|
||||
/****************************************************
|
||||
* 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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user