Incorrect image alignement

34 views
Skip to first unread message

David Lewin

unread,
Oct 27, 2021, 12:15:20 PM10/27/21
to Fadecandy
I'd like to display colour onto 4 strips. 
However , this simple script works only for 3 as the 4th strip is blinking in white (and the display is so small as well)

OPC opc;

PImage im;

float zoom = 1;
final static float inc = .05;

void setup()
{
  size(80 ,80);

   im = loadImage("test.png");

  opc = new OPC(this, "127.0.0.1", 7890);

  opc.ledGrid(0, 64, 4, width/2, height/2, width / 80.0, height/80.0, 0, false);
  
}

void draw()
  
  image(im, width/10,height/2);//, width, imHeight);
 
}

Any clue ?
test.png

David Lewin

unread,
Oct 27, 2021, 12:22:29 PM10/27/21
to Fadecandy
by " works only for 3 " I mean 1 is red, 1 is blue, 1 is green
Reply all
Reply to author
Forward
0 new messages