e-Paper icon indicating copy to clipboard operation
e-Paper copied to clipboard

4inch Spectra 6 (E6) 600×400 Pixels, ask to parse matrix of pixels

Open JeremieRousseau opened this issue 4 months ago • 0 comments

Hello,

I try to play with Spectra 6 Waveshare 600x400 on a Raspberry Pi.

My ask is where is the x,y =>0,0 and so the matrix go from 0 to 599 or from 0 to 600

other ask, can i do something as that:

// pseudo code below
for(x=0; x <= 600; x++ )
{
  for(y=0; y <= 400; y++ )
  {
  i = x+y*600; //
  array[i] = color1;
  array[i+1] = color2;
  picture += "x"+array[i]+array[i+1]+","
  }
}

That i understand, it's that work as:

for(x=0; x <= 400; x++ )
{
  for(y=0; y <= 600; y++ )
  {
   // but what i write for i 
    i = ???
    array[i] = color1;
    array[i+1] = color2;
    picture += "x"+array[i]+array[i+1]+","
  }
}

Thank, if someone help!

JeremieRousseau avatar Nov 28 '25 13:11 JeremieRousseau