mirror of
https://gitlab.dit.htwk-leipzig.de/phillip.kuehne/dezibot.git
synced 2025-05-19 02:51:47 +02:00
Add 'USB_Mode to Hardware CDC and JTAG' hint and remove frills from examples
This commit is contained in:
parent
a4f9f69f1e
commit
cdf216910d
@ -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>
|
||||
|
||||
Dezibot dezibot = Dezibot();
|
||||
@ -13,3 +18,4 @@ void loop() {
|
||||
Serial.println(dezibot.lightDetection.getValue(DL_FRONT));
|
||||
delay(1000);
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -1,10 +1,8 @@
|
||||
#include <Dezibot.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user