Integrate Motors into Power Management

This commit is contained in:
2025-02-12 21:50:29 +01:00
parent dfa778024b
commit a26acf4a92
2 changed files with 14 additions and 1 deletions

View File

@@ -17,7 +17,7 @@
#include <freertos/task.h>
#include "driver/ledc.h"
#include "motionDetection/MotionDetection.h"
#include "power/Power.h"
#include "../power/Power.h"
#define LEDC_MODE LEDC_LOW_SPEED_MODE
#define TIMER LEDC_TIMER_2
#define CHANNEL_LEFT LEDC_CHANNEL_3
@@ -25,6 +25,9 @@
#define DUTY_RES LEDC_TIMER_13_BIT // Set duty resolution to 13 bits
#define FREQUENCY (5000) // Frequency in Hertz. Set frequency at 5 kHz
#define DEFAULT_BASE_VALUE 3900
#define MOTOR_MAX_EXECUTION_DELAY_MS 100
class Motor{
public:
Motor(uint8_t pin, ledc_timer_t timer, ledc_channel_t channel);