wip: add reference to motionDetection to motion
This commit is contained in:
@@ -12,15 +12,14 @@
|
||||
|
||||
#include "Dezibot.h"
|
||||
|
||||
Dezibot::Dezibot():multiColorLight(),motionDetection(),display(128, 64, &Wire, -1){
|
||||
MotionDetection motionDetection;
|
||||
static MotionDetection* motionDetectionPTR = &motionDetection;
|
||||
Dezibot::Dezibot():multiColorLight(){
|
||||
|
||||
};
|
||||
void Dezibot::begin(void) {
|
||||
motion.begin();
|
||||
//motion.begin();
|
||||
multiColorLight.begin();
|
||||
motionDetection.begin();
|
||||
//motionDetection.begin();
|
||||
Wire.begin(1,2);
|
||||
display.begin(SSD1306_SWITCHCAPVCC,0x3C);
|
||||
display.clearDisplay();
|
||||
display.display();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user