Add 'USB_Mode to Hardware CDC and JTAG' hint and remove frills from examples

This commit is contained in:
Prof.J.Wagner 2024-05-14 10:25:33 +02:00
parent a4f9f69f1e
commit cdf216910d
3 changed files with 9 additions and 6 deletions

View File

@ -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.h> #include <Dezibot.h>
Dezibot dezibot = Dezibot(); Dezibot dezibot = Dezibot();
@ -13,3 +18,4 @@ void loop() {
Serial.println(dezibot.lightDetection.getValue(DL_FRONT)); Serial.println(dezibot.lightDetection.getValue(DL_FRONT));
delay(1000); delay(1000);
} }

View File

@ -2,10 +2,8 @@
Dezibot dezibot = Dezibot(); Dezibot dezibot = Dezibot();
void setup() { void setup() {
dezibot.begin(); dezibot.begin();
Serial.begin(9600);
} }
void loop() { void loop() {
Serial.println("bla");
dezibot.motion.move(1000); dezibot.motion.move(1000);
dezibot.multiColorLight.setLed(BOTTOM, RED); dezibot.multiColorLight.setLed(BOTTOM, RED);
delay(2000); delay(2000);
@ -17,4 +15,4 @@ void loop() {
delay(2000); delay(2000);
dezibot.multiColorLight.turnOffLed(); dezibot.multiColorLight.turnOffLed();
delay(2000); delay(2000);
} }

View File

@ -1,10 +1,8 @@
#include <Dezibot.h> #include <Dezibot.h>
Dezibot dezibot = Dezibot(); Dezibot dezibot = Dezibot();
const uint8_t MYFOO = 10;
void setup() { void setup() {
dezibot.begin(); dezibot.begin();
} }
void loop() { void loop() {
@ -17,3 +15,4 @@ delay(1000);
dezibot.motion.stop(); dezibot.motion.stop();
delay(1000); delay(1000);
} }