[APL] Voir au travers d'une souris

Hi martijn
I looked quickly on the 2610 datasheet and it seems that they share the same kind of memory usage with the 2083. The registers adresses are different though.
You can definitely add my little modifications to the lib, yeah ^^
I tried to add a pixelData method returning an 18x18 array but I'm bad with C. I can return something but it's definitely not an array. Would you help me? I have a sketch working for reading the pixeldata register, I just don't understand how I can turn this into a library ^^.

void EnvoiImage()
{
  byte val;
  EcritureRegistre (0x40, 0x01);
  EcritureRegistre (0x48, 0x00);
  for (int i=0; i<325; i++)
  {
    val = LectureRegistre(0x48);
    if (i!=0) {                            // First read will return 0, we don't want it
      Serial.print(i);
      Serial.print("\t");
      Serial.print(val&63, DEC); // Cleans the value, so that you don't have the Start_of_Frame & Valid_data bits
      Serial.println();
    }
  } 
  Serial.println ();
  EcritureRegistre (0x40, 0x00);
}

I added some datasheets to the zip archive.

http://melka.one.free.fr/temp/OptiMouse.rar

Thanks ^^

PS : Thanks again ^^