Hello,
I'd like to control 7 10-led-bargrah to display some visual effects. I chose to use MAX6955 to drive them, it works by the serial interface I2C. I also use the stm32 discovery board.
I followed the datasheet of the MAX6955 to make the wiring :
- I connected the cathodes of each bargraph together i followed the "Connection Scheme for Sixteen 7-Segment Digits" from the datasheet.
- I took my I2C routines from another project that is working properly just made a few changes to fit to this projet. (address of slave "1100000" 2 pins AD0/AD1 both to GND)
I tried to light up an LED but it doesnt work i receive well the ACKs in debug mod so i don't what is going on.
Here my routine to init the IC :
int write_max6955(char slave_address,char register ,char data);
write_max6955(0xC0,0x01,0x00); //decode mode - no decode
write_max6955(0xC0,0x02,0x00); //global intensity - min
write_max6955(0xC0,0x03,0x07); //scan limit - 0->7 digits
write_max6955(0xC0,0x04,0x00); //control register enable...
write_max6955(0xC0,0x0C,0x00); //digit type all 7 seg
write_max6955(0xC0,0x07,0x00); //display test normal operation
write_max6955(0xC0,0x05,0x0F); //decode mode no decode
then i tried to light up something write_max6955(0xC0,0x20,0xFF);
Any help would be appreciated
I'd like to control 7 10-led-bargrah to display some visual effects. I chose to use MAX6955 to drive them, it works by the serial interface I2C. I also use the stm32 discovery board.
I followed the datasheet of the MAX6955 to make the wiring :
- I connected the cathodes of each bargraph together i followed the "Connection Scheme for Sixteen 7-Segment Digits" from the datasheet.
- I took my I2C routines from another project that is working properly just made a few changes to fit to this projet. (address of slave "1100000" 2 pins AD0/AD1 both to GND)
I tried to light up an LED but it doesnt work i receive well the ACKs in debug mod so i don't what is going on.
Here my routine to init the IC :
int write_max6955(char slave_address,char register ,char data);
write_max6955(0xC0,0x01,0x00); //decode mode - no decode
write_max6955(0xC0,0x02,0x00); //global intensity - min
write_max6955(0xC0,0x03,0x07); //scan limit - 0->7 digits
write_max6955(0xC0,0x04,0x00); //control register enable...
write_max6955(0xC0,0x0C,0x00); //digit type all 7 seg
write_max6955(0xC0,0x07,0x00); //display test normal operation
write_max6955(0xC0,0x05,0x0F); //decode mode no decode
then i tried to light up something write_max6955(0xC0,0x20,0xFF);
Any help would be appreciated