diff --git a/.DS_Store b/.DS_Store index 9a874b5..119a283 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/src/.DS_Store b/src/.DS_Store index 9265ca9..bd87f60 100644 Binary files a/src/.DS_Store and b/src/.DS_Store differ diff --git a/src/extras/PwmPin.cpp b/src/extras/PwmPin.cpp index f1021e2..c6c7265 100644 --- a/src/extras/PwmPin.cpp +++ b/src/extras/PwmPin.cpp @@ -47,7 +47,7 @@ LedC::LedC(uint8_t pin, uint16_t freq){ /////////////////// -LedPin::LedPin(uint8_t pin, uint8_t level, uint16_t freq) : LedC(pin, freq){ +LedPin::LedPin(uint8_t pin, float level, uint16_t freq) : LedC(pin, freq){ if(!channel) Serial.printf("\n*** ERROR: Can't create LedPin(%d) - no open PWM channels and/or Timers ***\n\n",pin); diff --git a/src/extras/PwmPin.h b/src/extras/PwmPin.h index 28a280f..b66fcb5 100644 --- a/src/extras/PwmPin.h +++ b/src/extras/PwmPin.h @@ -51,7 +51,7 @@ class LedC { class LedPin : public LedC { public: - LedPin(uint8_t pin, uint8_t level=0, uint16_t freq=DEFAULT_PWM_FREQ); // assigns pin to be output of one of 16 PWM channels initial level and frequency + LedPin(uint8_t pin, float level=0, uint16_t freq=DEFAULT_PWM_FREQ); // assigns pin to be output of one of 16 PWM channels initial level and frequency void set(float level); // sets the PWM duty to level (0-100) static void HSVtoRGB(float h, float s, float v, float *r, float *g, float *b ); // converts Hue/Saturation/Brightness to R/G/B