And you're bit banging the control lines
#define data 4
#define clock 5
#define latch 6
instead of using SPI at 8 MHz to send data out. That makes ton of difference there.
And you're bit banging the control lines
#define data 4
#define clock 5
#define latch 6
instead of using SPI at 8 MHz to send data out. That makes ton of difference there.