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

Timing Problem for Max7219 #50

Open
Geri0815 opened this issue Apr 19, 2023 · 0 comments
Open

Timing Problem for Max7219 #50

Geri0815 opened this issue Apr 19, 2023 · 0 comments

Comments

@Geri0815
Copy link

I have an timing Problem with Max7219, sending data to Matrix not always works, sometimes it hangs only reset will leave this state.
In the datasheet there is a Data-to-Segment Delay from max. 2.25ms

My Solution:
i changed spiTransfer function before leaving the function

void LedControl::spiTransfer(int addr, volatile byte opcode, volatile byte data) {
:
:
digitalWrite(SPI_CS,HIGH);
delayMicroseconds(3000); //Datasheet MAX7219 min 2,2ms <====
}
with this change it works perfect

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