Power management progress

This commit is contained in:
2024-12-12 17:09:13 +01:00
parent 8eeb829a91
commit 51a3d9e8f6
8 changed files with 184 additions and 23 deletions

View File

@@ -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;
};