Skip to content

LEDs start flickering when using analogWrite() on ESP8266 #1083

Closed

Description

@Derkades

Take this code as an example:

void loop() {
  FastLED.show()
  analogWrite(PIN, 0);
  delay(1000);
  FastLED.show()
  analogWrite(PIN, 300);
  delay(1000);
}

Leds will stay black for one second, flicker random colors for one second, repeat.

There are a lot of documented issues and solutions for WiFi, servo libraries, serial, etc. which I am not using. Is there any way to get analogWrite() to work?

Activity

  1. zackees commented on Apr 16, 2026

    @zackees
    Member

    Closing this issue — it was opened over 4 years ago with no activity. If this is still relevant with a current FastLED version, please reopen with a minimal reproduction sketch and version details. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions