implemented basic ligthdetection

This commit is contained in:
hhaupt
2024-04-27 23:05:03 +02:00
parent 1d074f26d1
commit 96a7efdb6b
5 changed files with 147 additions and 35 deletions

View File

@ -1,18 +1,15 @@
#include <Adafruit_NeoPixel.h>
#include <Dezibot.h>
#define GPIO_LED 48
Dezibot dezibot = Dezibot();
void setup() {
dezibot.begin();
Serial.begin(9600);
Serial.begin(115200);
Serial.println("Started");
dezibot.begin();
Serial.println("Inited");
}
void loop() {
Serial.println("FooBarBaz");
Serial.println(dezibot.lightDetection.getValue(DL_FRONT));
delay(1000);
}