Hi!
I'm new into C programming and Arduino.
I'm trying to display some data on several 7LED Digit Displays but I get this error and I don't know why.
This is my code:
int iasDigits[] = {0, 1, 2};
void sendToDisplay(unsigned int device, int digits, char value, unsigned int valueLength){
for(int i = 0; i < valueLength; i++){
lc.setDigit(device, digits[i], value[i], false);
}
}
And this is how I call the function:
sendToDisplay(0, *iasDigits, intToChar(iasValue, IAS_LENGTH), IAS_LENGTH);
intToChar returns an array with all the integer digits in order to display them one by one.
iasDigits value sets the address where each value will be displayed.
So, when I'm trying to read the address from digits[i] array I get this error:
error: invalid types 'int[int]' for array subscript
error: invalid types 'char[int]' for array subscript
Same happens with value[i] array.