Hello Louis.
I have modify source code, but there is no data clock in the 5th pin I have add to scan Led panels 1/32 Scan. I have check with my oscilloscope and no pulses in this pin.
My E pin is assigned to port PTC10, pin 37 in Teensy. E is the 5th pin I add to have 5 pins, A, B, C, D, E, to scan 64 rows (2 x 32 rows).
Some suggestion ??, I check source code and really do not know where assign the new IO Port to output data signals.
.
I have add/modify this code to MatrixHardware_RGB_DMD.h
#define ADDX_PIN_0 3
#define ADDX_PIN_1 0
#define ADDX_PIN_2 1
#define ADDX_PIN_3 2
#define ADDX_PIN_4 4 // E para barrer paneles con 5 pines por linea
#define ADDX_PIN_MASK ((1 << ADDX_PIN_0) | (1 << ADDX_PIN_1) | (1 << ADDX_PIN_2) | (1 << ADDX_PIN_3) | (1 << ADDX_PIN_4))
// Pines A, B, C, D, E, seleccion linea panel, codigo binario 5 pines para paneles 1/32 Scan
// Pin9 = PTC3 (A0), Pin15 = PTC0 (A1), Pin22 = PTC1(A2), Pin23 = PTC2(A3), Pin37 = PTC10 (A4)
#define ADDX_TEENSY_PIN_0 9 // PTC3
#define ADDX_TEENSY_PIN_1 15 // PTC0
#define ADDX_TEENSY_PIN_2 22 // PTC1
#define ADDX_TEENSY_PIN_3 23 // PTC2
#define ADDX_TEENSY_PIN_4 37 // PTC10. pin E para barrer paneles con 5 pines por linea
.
And add/modify this code to SmartMatrix_Impl.h
for (i = 0; i < matrixRowsPerFrame; i++)
{
// set all bits that are 1 in address
addressLUT[i].bits_to_set = 0x00;
if (i & 0x01)
addressLUT[i].bits_to_set |= (1 << ADDX_PIN_0);
if (i & 0x02)
addressLUT[i].bits_to_set |= (1 << ADDX_PIN_1);
if (i & 0x04)
addressLUT[i].bits_to_set |= (1 << ADDX_PIN_2);
#ifdef ADDX_PIN_3
if (i & 0x08) addressLUT[i].bits_to_set |= (1 << ADDX_PIN_3);
#endif
#ifdef ADDX_PIN_4
if (i & 0x16) addressLUT[i].bits_to_set |= (1 << ADDX_PIN_4);
#endif
// set all bits that are clear in address
addressLUT[i].bits_to_clear = (~addressLUT[i].bits_to_set) & ADDX_PIN_MASK;
}
// configure the address pins
pinMode(ADDX_TEENSY_PIN_0, OUTPUT);
pinMode(ADDX_TEENSY_PIN_1, OUTPUT);
pinMode(ADDX_TEENSY_PIN_2, OUTPUT);
#ifdef ADDX_TEENSY_PIN_3
pinMode(ADDX_TEENSY_PIN_3, OUTPUT);
#endif
#ifdef ADDX_TEENSY_PIN_4
pinMode(ADDX_TEENSY_PIN_4, OUTPUT);
#endif