OpenFilmLightController/FilmLightController/lightmux.h

54 lines
1.5 KiB
C
Raw Normal View History

#ifndef LIGHTMUX_H
#define LIGHTMUX_H
2019-02-09 15:11:46 +01:00
#include <QDebug>
class LightMux
{
2019-02-09 15:11:46 +01:00
private:
int brightness; // total power of the LED Panels (both colors) in percent
int temperatur; // muxed color temperature of the LED Panels, from coldest to warmest in Kelvin
int coldest_temperature = 6500; // coldest possible temperature in Kelvin --> the cold LEDs
int warmest_temperature = 2700; // warmest possible temperature in Kelvin --> the warm LEDs
int steps_temperature = 100; // steps to change the temperature in Kelvin
2019-02-09 21:21:26 +01:00
int power_cold; // power of the cold LEDs of Panels in percent
int power_warm; // power of the warm LEDs of Panels in percent
2019-02-09 23:06:14 +01:00
int power_combined; //combined power of both LEDs in percent
bool adaptive_brightness; // true indecates adaptive brightness is enabled
public:
LightMux();
void incBrightness();
void decBrightness();
2019-02-09 15:11:46 +01:00
void setBrightness(int val); // set total power of the LED Panels (both colors) in percent
void cold_Temperature();
void warm_Temperature();
2019-02-09 15:11:46 +01:00
void setTemperature(int requested_val); // set muxed color temperature of the LED Panels, from coldest to warmest in Kelvin. Fitted to the nearest value that the steps allow
int getBrightness();
int getTemperature();
2019-02-09 15:11:46 +01:00
int getColdest_temperature();
int getWarmest_temperature();
2019-02-09 21:21:26 +01:00
void mux();
int getPowerCold();
int getPowerWarm();
2019-02-09 23:06:14 +01:00
int getPowerCombined();
void toogleAdaptiveBrightness();
};
#endif // LIGHTMUX_H