This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software: Code Composer Studio
Hi Forum,
The reference example for the MSP430FR4133 LaunchPad provides the following for digit select;
#define pos1 4 /* Digit A1 - L4 */
#define pos2 6 /* Digit A2 - L6 */
#define pos3 8 /* Digit A3 - L8 */
#define pos4 10 /* Digit A4 - L10 */
#define pos5 2 /* Digit A5 - L2 */
#define pos6 18 /* Digit A6 - L18 */
My question is what the variable (pos(x)) values (2,4,6,8...) are referring to. The comment at the end of the line appears to be referring to segment pins, but these are 16 segment digits on this LaunchPad which requires 4 segment pins to run.
Are the variable values referring to the first LCDM(x) variable used? With the second LCDM(x) inferred by the compiler?
I have 17 seven segment digits to run in my project, and I would like a more explicit statement to define them with. Any help would be appreciated! Thank you.
They are LCDMEM indexes:
$ grep pos1 * StopWatchMode.c: showChar((*Minutes) / 10 + '0',pos1); StopWatchMode.c: showChar((*Hours) / 10 + '0',pos1); TempSensorMode.c: LCDMEM[pos1+1] |= 0x04; hal_LCD.c: showChar(buffer[0], pos1); hal_LCD.c: LCDMEMW[pos1/2] = 0; hal_LCD.h:#define pos1 4 /* Digit A1 - L4 */ main.c: LCDMEM[pos1] = LCDMEM[pos1+1] = i;
**Attention** This is a public forum