mirror of
https://gitlab.dit.htwk-leipzig.de/phillip.kuehne/dezibot.git
synced 2025-08-24 10:48:37 +02:00
first working example of IMU Based Motioncorrection
This commit is contained in:
@@ -12,11 +12,15 @@
|
||||
|
||||
#include "Dezibot.h"
|
||||
|
||||
Dezibot::Dezibot():multiColorLight(),motionDetection(){
|
||||
Dezibot::Dezibot():multiColorLight(),motionDetection(),display(128, 64, &Wire, -1){
|
||||
|
||||
};
|
||||
void Dezibot::begin(void) {
|
||||
motion.begin();
|
||||
multiColorLight.begin();
|
||||
motionDetection.begin();
|
||||
Wire.begin(1,2);
|
||||
display.begin(SSD1306_SWITCHCAPVCC,0x3C);
|
||||
display.clearDisplay();
|
||||
display.display();
|
||||
};
|
||||
|
@@ -16,6 +16,9 @@
|
||||
#include "colorDetection/ColorDetection.h"
|
||||
#include "multiColorLight/MultiColorLight.h"
|
||||
#include "motionDetection/MotionDetection.h"
|
||||
#include "Arduino.h"
|
||||
#include "Wire.h"
|
||||
#include "Adafruit_SSD1306.h"
|
||||
|
||||
class Dezibot {
|
||||
protected:
|
||||
@@ -27,7 +30,9 @@ public:
|
||||
ColorDetection colorDetection;
|
||||
MultiColorLight multiColorLight;
|
||||
MotionDetection motionDetection;
|
||||
|
||||
//temporary, display component is not implemented yet
|
||||
Adafruit_SSD1306 display;
|
||||
|
||||
void begin(void);
|
||||
/*
|
||||
Display display
|
||||
|
Reference in New Issue
Block a user