You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: