rpi_wordclock icon indicating copy to clipboard operation
rpi_wordclock copied to clipboard

Bernds wiring variation

Open JeroenBerkers opened this issue 1 year ago • 1 comments

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 avatar Jan 14 '24 21:01 JeroenBerkers

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

JeroenBerkers avatar Jan 15 '24 19:01 JeroenBerkers