/**
 * @file actuators.hpp
 * @author Radim Buráň (xburan03@stud.fit.vutbr.cz)
 */

#ifndef ACTUATORS_HPP
#define ACTUATORS_HPP

#include "driver/i2c.h"
#include "pca9685.h"

#include "freertos/event_groups.h"
#include "driver/gpio.h"

#include "utility.hpp"

//2.32V cluster (power from PWM driver)
#define PWM_LED_YELLOW 0
#define PWM_LED_RED 1
#define PWM_LED_FAR_RED 2
#define PWM_LED_IR 3

//3.55V cluster (power from 2nd DC-DC stepdown)
#define PWM_LED_UV 4
#define PWM_LED_BLUE 5
#define PWM_LED_GREEN 6


void activateActuators(sensorsData_t* sensorData, bool onlineMode);

void pumpWater(long millis);

#endif