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

noInterrupts() and delayMicroseconds(200) hangs the processor on a RP2040 #26

Open
Tiny-Spider opened this issue Dec 3, 2024 · 0 comments

Comments

@Tiny-Spider
Copy link

It seems that delayMicroseconds(200); requires interrupts on a RP2040. When using the code as is, the RP2040 hangs when it reaches this function, rendering the RP2040 non-responsive. Removing the delay seems to fix all issues, but should probably be replaced for something else.

delayMicroseconds(200);

Example code that hangs (it will never print "set brightness"):

#include <Adafruit_TLC59711.h>

Adafruit_TLC59711 tlc(1, D25, D24);

void setup() {
  Serial.begin(115200);
  while(!Serial) delay(10);

  Serial.println("setup()");

  tlc.begin();
  tlc.simpleSetBrightness(100);
  tlc.write();

  Serial.println("set brightness");
}

void loop() { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant