rpi_wordclock
rpi_wordclock copied to clipboard
Bernds wiring variation
I have a layout, based on Bernds wiring, but with 4 leds in FRONT of the letter matrix. What should I use for GETSTRIPINDEXFROM2D in the wiring.py file? I tried a lot of formulas, but it keeps messing up...
Jeroen
Found the solution. By trail-n-error.
if x % 2 == 0:
return (self.WCA_WIDTH - x - 1) * self.WCA_HEIGHT + y + 4
else:
return (self.WCA_WIDTH - x) * self.WCA_HEIGHT - y + 3