From cdf216910d0b8691fc6d50ca3122a2ccfdcdc0da Mon Sep 17 00:00:00 2001 From: "Prof.J.Wagner" Date: Tue, 14 May 2024 10:25:33 +0200 Subject: [PATCH] Add 'USB_Mode to Hardware CDC and JTAG' hint and remove frills from examples --- example/lightdetection_serial/lightdetection_serial.ino | 6 ++++++ example/motion_indicating/motion_indicating.ino | 4 +--- example/motion_minimum/motion_minimum.ino | 5 ++--- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/example/lightdetection_serial/lightdetection_serial.ino b/example/lightdetection_serial/lightdetection_serial.ino index 65b379f..d9c8b75 100644 --- a/example/lightdetection_serial/lightdetection_serial.ino +++ b/example/lightdetection_serial/lightdetection_serial.ino @@ -1,3 +1,8 @@ +/**************************************************** +* If you have selected ESP32-S3-USB_OTG as the board, +* change Tools->USB_Mode to "Hardware CDC and JTAG". +*****************************************************/ + #include Dezibot dezibot = Dezibot(); @@ -13,3 +18,4 @@ void loop() { Serial.println(dezibot.lightDetection.getValue(DL_FRONT)); delay(1000); } + diff --git a/example/motion_indicating/motion_indicating.ino b/example/motion_indicating/motion_indicating.ino index 007c93c..9b6022d 100644 --- a/example/motion_indicating/motion_indicating.ino +++ b/example/motion_indicating/motion_indicating.ino @@ -2,10 +2,8 @@ Dezibot dezibot = Dezibot(); void setup() { dezibot.begin(); - Serial.begin(9600); } void loop() { - Serial.println("bla"); dezibot.motion.move(1000); dezibot.multiColorLight.setLed(BOTTOM, RED); delay(2000); @@ -17,4 +15,4 @@ void loop() { delay(2000); dezibot.multiColorLight.turnOffLed(); delay(2000); -} \ No newline at end of file +} diff --git a/example/motion_minimum/motion_minimum.ino b/example/motion_minimum/motion_minimum.ino index e376753..96955e4 100644 --- a/example/motion_minimum/motion_minimum.ino +++ b/example/motion_minimum/motion_minimum.ino @@ -1,10 +1,8 @@ #include Dezibot dezibot = Dezibot(); -const uint8_t MYFOO = 10; void setup() { - dezibot.begin(); - + dezibot.begin(); } void loop() { @@ -17,3 +15,4 @@ delay(1000); dezibot.motion.stop(); delay(1000); } +