added example sketches

This commit is contained in:
Hans Haupt
2024-06-14 08:27:34 +02:00
parent dbec7278f3
commit a0e6661b16
18 changed files with 186 additions and 65 deletions

View File

@ -0,0 +1,23 @@
#include "Dezibot.h"
Dezibot dezibot = Dezibot();
void setup() {
// put your setup code here, to run once:
dezibot.begin();
dezibot.multiColorLight.turnOffLed();
}
void loop() {
// put your main code here, to run repeatedly:
dezibot.display.clear();
int light = dezibot.lightDetection.getValue(DL_FRONT);
dezibot.display.print(light);
if(light > 2000) {
dezibot.motion.move();
} else {
dezibot.motion.rotateClockwise();
}
delay(100);
}