From 50e77bd94c0f7c885244ad449172172048fbdeef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Frakn=C3=B3i=20Tam=C3=A1s?= <fraknoitamas@gmail.com> Date: Fri, 21 Oct 2022 22:15:18 +0200 Subject: [PATCH] Fix y coord --- test_anim/spiframe.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_anim/spiframe.cpp b/test_anim/spiframe.cpp index 76250e1..f0e2493 100644 --- a/test_anim/spiframe.cpp +++ b/test_anim/spiframe.cpp @@ -3,7 +3,7 @@ bool SpiFrame::LedCoordToPixel(const MxFrame &mxframe, int bitpos, int colorbit, enum eColor color, int column) { - int y = 2*bitpos; + int y = 2*(12 - bitpos); int x = column; if (column >= 32) { -- GitLab