mirror of
https://gitlab.dit.htwk-leipzig.de/phillip.kuehne/dezibot.git
synced 2025-05-19 11:01:46 +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>
|
#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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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);
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user