Add feature to set PWM values

This commit is contained in:
2022-07-29 00:22:23 +02:00
parent 6763dd9e3c
commit d6f0d9650c
3 changed files with 42 additions and 2 deletions

View File

@@ -3,6 +3,7 @@
#include <string>
#include <unordered_map>
#include <vector>
typedef struct {
std::string control;
@@ -18,6 +19,8 @@ public:
PWM();
void dumpValues();
std::vector<PWM_CONTROL> getControls();
void setEnable(PWM_CONTROL control, PWM_ENABLE value);
void setMode(PWM_CONTROL control, PWM_MODE mode);
void setValuePwm(PWM_CONTROL control, int pwm);