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

Not working. #5

Open
ant7511 opened this issue Aug 2, 2022 · 1 comment
Open

Not working. #5

ant7511 opened this issue Aug 2, 2022 · 1 comment

Comments

@ant7511
Copy link

ant7511 commented Aug 2, 2022

The ESP8266 fast shift register is awesome, so i wanted to try out this library as well..
It behaves "strange" and i cant figure out why.

I created a simple routine
uint8_t i = 0;
void loop() {
if (runEvery(200)) { // runs 200 millis without delay
shiftRegister.set(0, i);
Serial.println (i);
i = ((i+1) % 254);
}
shiftRegister.Run();
}

So what i realized..
At the the beginnging pin at 0 value doesnt turn off.

If the cycle reaches the maximum then 0 the pin turns off and at value around 80 turn on.
at the second cycle 0 turns off, around 176 turns on.
that the third cycle keeps off, and
fourth cycle 0 value turns on till it reaches the the fifth cycles.. and its going over and over.

Of course the pwm is not working, two modes are, full on full off.

@nilsauf
Copy link
Owner

nilsauf commented Aug 9, 2022

Hi, thanks for sharing your issue and sorry I reach back to you just now! I will look into it the next days when i find time.

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

2 participants