Part Number: MSP430FR6047
Tool/software: Code Composer Studio
Hi!
I would like to efficiently show all segments on a 7 (4-mux) LCD using the LCD_C module with as little code as possible. There is a nice blanking feature (AND gate) that puts all segments off with one line of code, but I could not find anything for the opposite.
Right now I use this code:
int i, segments =0;
for(i=0; i<10; i++){
segments = 0;
while (segments<0x80){
segments <<= 1;
segments +=1;
HWREG8(LCD_C_BASE + LCDMemoryWriteSelection + i) = segments;
}
}
Thanks in advance!