Browse Source

Don't use 10kHz, but 9765Hz for white channel PWM.

pull/1/head
Maurice Makaay 3 years ago
parent
commit
635a0e155e
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      yeelight_bs2_light_output.h

+ 5
- 1
yeelight_bs2_light_output.h View File

@ -34,7 +34,11 @@ namespace rgbww {
// The PWM frequencies as used by the original device // The PWM frequencies as used by the original device
// for driving the LED circuitry. // for driving the LED circuitry.
const float RGB_PWM_FREQUENCY = 3000.0f; const float RGB_PWM_FREQUENCY = 3000.0f;
const float WHITE_PWM_FREQUENCY = 3000.0f;
// I measured 10kHz for this channel, but making this 10000.0f results
// in the blue channel failing. So possibly this is the actual
// frequency to use (it's the frequency that provides a 13 bit
// bith depth to the PWM channel).
const float WHITE_PWM_FREQUENCY = 9765.0f;
class YeelightBS2LightOutput : public Component, public light::LightOutput class YeelightBS2LightOutput : public Component, public light::LightOutput
{ {


Loading…
Cancel
Save