Skip to content

Commit 5d14b09

Browse files
More adjustments to address line delays
1 parent 260ab8d commit 5d14b09

File tree

2 files changed

+5
-13
lines changed

2 files changed

+5
-13
lines changed

RGBmatrixPanel.cpp

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -745,25 +745,17 @@ void RGBmatrixPanel::updateDisplay(void) {
745745
if(row & 0x1) *addraport |= addramask;
746746
else *addraport &= ~addramask;
747747
// MYSTERY: certain matrices REQUIRE these delays ???
748-
// And only in these two spots...other address lines don't need them!
749-
// This is true whether AVR or ARM; only the period is different.
750-
#if defined(ARDUINO_ARCH_SAMD)
751-
delayMicroseconds(2);
752-
#else
753-
delayMicroseconds(4);
754-
#endif
748+
delayMicroseconds(10);
755749
if(row & 0x2) *addrbport |= addrbmask;
756750
else *addrbport &= ~addrbmask;
757-
#if defined(ARDUINO_ARCH_SAMD)
758-
delayMicroseconds(2);
759-
#else
760-
delayMicroseconds(4);
761-
#endif
751+
delayMicroseconds(10);
762752
if(row & 0x4) *addrcport |= addrcmask;
763753
else *addrcport &= ~addrcmask;
754+
delayMicroseconds(10);
764755
if(nRows > 8) {
765756
if(row & 0x8) *addrdport |= addrdmask;
766757
else *addrdport &= ~addrdmask;
758+
delayMicroseconds(10);
767759
}
768760
}
769761

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=RGB matrix Panel
2-
version=1.1.2
2+
version=1.1.3
33
author=Adafruit
44
maintainer=Adafruit <[email protected]>
55
sentence=Arduino library and example code for the 16x32 RGB matrix panels in the shop

0 commit comments

Comments
 (0)