Browse Source

Configure analogWrite for LED strips

fastled
Xose Pérez 7 years ago
parent
commit
83883cb21a
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      code/espurna/light.ino

+ 2
- 0
code/espurna/light.ino View File

@ -187,6 +187,8 @@ void lightSetup() {
#endif #endif
#if (LIGHT_PROVIDER == LIGHT_PROVIDER_RGB) || (LIGHT_PROVIDER == LIGHT_PROVIDER_RGBW) #if (LIGHT_PROVIDER == LIGHT_PROVIDER_RGB) || (LIGHT_PROVIDER == LIGHT_PROVIDER_RGBW)
analogWriteRange(255);
analogWriteFreq(1000);
pinMode(RGBW_RED_PIN, OUTPUT); pinMode(RGBW_RED_PIN, OUTPUT);
pinMode(RGBW_GREEN_PIN, OUTPUT); pinMode(RGBW_GREEN_PIN, OUTPUT);
pinMode(RGBW_BLUE_PIN, OUTPUT); pinMode(RGBW_BLUE_PIN, OUTPUT);


Loading…
Cancel
Save