Hi friends,
Currently I am using TMS570LS1224 and trying to display number on display. Here I written some code and getting ERROR (expression must be modified lvalue) .
void Display_Speed(int data)
{
// int value_digit[4],num = data,d0,d1,d2,d3,digit_count = 0;
int value_digit[4],num,d0,d1,d2,d3,digit_count,a;
num = data; // ERROR: expression must be a modifiable lvalue
digit_count = 0;
while(num > 0)
{
value_digit[digit_count] = num % 10;
num = num/10; // ERROR: expression must be a modifiable lvalue
digit_count++;
}
d0 = value_digit[0];
d1 = value_digit[1];
d2 = value_digit[2];
d3 = value_digit[3];
i2cSendByte(i2cREG1,d0); // Clear Digit
}
regards,
arvind