P6 rgb 32x32 matrix

So i have tried Adafruit original library, edited Adafruit library from that link (both 32x16 and 32x32 examples). The nearest i have come to get it work is with original Adafruit library for 32x16 but pixels are duplicated on both half. Other thing i tried to get to know how the display works is from this link 32x16 RGB LED display scan question .

I found out that display is divided in 4 parts of 8x32 pixels (from top to bottom). A B C bits are controlling which row in those 4 parts (row 1-8) is lit. That means that in the same time 4 rows together can be lit (2 in the upper half and 2 in the lower half or in each of those 4 parts one line). I dont know the calculations but does this mean that display has 1/8 scan? or 1/4?.

So i took code from upper link and changed my way just to get idea how display works.

temp = 0x0000000000000001;
row1 =  0xFFFF000000000000;

}

void loop() {
for(row=0; row<8; row++){
   for (i = 0; i < 64; i++)  {
      digitalWrite(B1P, !!(row1 & (temp << (63-i))));
      digitalWrite(R1P, 0);
      digitalWrite(G1P, 0);
      digitalWrite(ClkP, HIGH);
      digitalWrite(ClkP, LOW);
      }  
   digitalWrite(OEP, HIGH);
   digitalWrite(LP, HIGH);  
   digitalWrite(AP, !!(row & B00000001));
   digitalWrite(BP, !!(row & B00000010));
   digitalWrite(CP, !!(row & B00000100));
   digitalWrite(OEP, LOW);
   digitalWrite(LP, LOW);  
   }
}

I got idea how this thing work but dont know how to change color intensity? Sending 0xFFFF000000000000 to R1 pin does only bring up first 16 x 8 led's in full red color.

I would love to get it work with Adafruit library but really dont know where to start :slight_smile: