bk1285 / rpi_wordclock

Software to create a Raspberry Pi based wordclock
GNU General Public License v3.0
214 stars 107 forks source link

Bernds wiring variation #255

Open JeroenBerkers opened 8 months ago

JeroenBerkers commented 8 months ago

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

JeroenBerkers commented 8 months ago

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