Other Parts Discussed in Thread: SK-AM64B,
Hi,
I want to control LEDs just using DOT correction mode. Is there any example code that I can follow.
I'm using SK-AM64B board and tlc5946 connected to RPI header using SPI0. SPI mode is Clock polarity (CPOL) and clock phase (CPHA) are 0.
Here is my test code where I'm writing 96 bits for 100% current. int led_test(void) {
char spi_data[12] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,0xff, 0xff, 0xff, 0xff};
int status;
/*turn on leds*/
status = spi_write(global_spi_devs->shift_reg_spi, spi_data, 12);
printk("status:%d\n", status);
return 0;
}
Below is the schematic, I also have changed IREF resistor to 4.7K.
: