From 4ce50221d3148872fa659e760225657cba3bb83c Mon Sep 17 00:00:00 2001 From: Georges Kesseler Date: Wed, 31 Jul 2013 20:41:09 +0200 Subject: [PATCH] ifixed off by one x/y incrementer --- PoC/cheap_random/patternplayer/patternplayer.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PoC/cheap_random/patternplayer/patternplayer.ino b/PoC/cheap_random/patternplayer/patternplayer.ino index 5ecd729..cdf0772 100644 --- a/PoC/cheap_random/patternplayer/patternplayer.ino +++ b/PoC/cheap_random/patternplayer/patternplayer.ino @@ -34,9 +34,9 @@ while ( true ) { case 2: { // scan through line by line from top to bottom myWindows(xyToWindow(x,y), brightness, red, green, blue); - if(x++>3) { + if(x++>2) { x=0; - if(y++>4) { + if(y++>3) { y=0; patternSwitcher++; }