Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WS2812B fails with multiple calls to show() #241

Closed
1 task done
lewispg228 opened this issue Jul 11, 2024 · 2 comments
Closed
1 task done

WS2812B fails with multiple calls to show() #241

lewispg228 opened this issue Jul 11, 2024 · 2 comments
Labels
bug Something isn't working no-issue-activity

Comments

@lewispg228
Copy link
Contributor

Boards

SparkFun Thing Plus NORAW306

External Hardware

No.

Hardware Configuration

The WS2812B LED is on the PCB (as part of the design). Other than the USB-C for power/programming, no other external hardware is attached.

Version

latest dev (checkout manually)

IDE Name

Arduino IDE 2.3.2

Operating System

Windows 11

Auto Flash Mode

Enable

Erase All Flash Memory (4MB)

Disable

Standard Lib

Disable

Upload Speed

921600

Description

Fails when multiple calls to show() are used.

Note, Utilizing SPI1_PICO pin (PA_12, aka Arduino pin "14")

Sketch

#include "WS2812B.h"
#define NUM_OF_LEDS 1
WS2812B led(SPI1_PICO, NUM_OF_LEDS);

void setup() {
    led.begin();
}

void loop() {
  led.setPixelColor(0, 50, 0, 0);
  led.show();
  delay(500);
  led.setPixelColor(0, 0, 50, 0);
  led.show();
  delay(500);
}

Error/Debug Message

No debug messages. 

The error is experienced by watching the LED fail to blink multiple colors. It get's "stuck" on the first color (red) that is set by the first time show() is called in the main loop, but then never changes after that.

Reproduce remarks

No response

I have checked online documentation, FAQ, GitHub Wiki and existing/closed issues.

  • I confirm I have checked online documentation, FAQ, GitHub Wiki and existing/closed issues.
@lewispg228 lewispg228 added the pending It is a feature/bug-fix request, currently on hold label Jul 11, 2024
@M-ichae-l M-ichae-l added bug Something isn't working and removed pending It is a feature/bug-fix request, currently on hold labels Jul 15, 2024
@M-ichae-l
Copy link
Contributor

M-ichae-l commented Jul 15, 2024

Thanks for the bug report and fix!
Let us discusses further if needed.

Copy link

This issue is stale because it has been open for 14 days with no activity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working no-issue-activity
Projects
None yet
Development

No branches or pull requests

2 participants