Power management progress
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
#include <freertos/task.h>
|
||||
#include "driver/ledc.h"
|
||||
#include "motionDetection/MotionDetection.h"
|
||||
#include "power/Power.h"
|
||||
#define LEDC_MODE LEDC_LOW_SPEED_MODE
|
||||
#define TIMER LEDC_TIMER_2
|
||||
#define CHANNEL_LEFT LEDC_CHANNEL_3
|
||||
@@ -52,7 +53,7 @@ class Motor{
|
||||
uint8_t pin;
|
||||
ledc_timer_t timer;
|
||||
ledc_channel_t channel;
|
||||
|
||||
Power powerManager;
|
||||
uint16_t duty;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user