void value not ignored as it ought to be

wildbill:
Normally, when using get and set functions, the setter doesn't return anything - there's no point - you already know what the value is because you're passing it in. You could change the setter to return the value it's passed and then use it to populate aValue in the manner you're trying. However, why bother:

    int calSenseA = cs_a.capacitiveSensor(50);

aValue = letters[0].setCurrentReading(calSenseA);



You already have the value in another variable - calSenseA . Use that in your serial print.

I need to set the variable, not print it. It needs to be stored in the class is all. eventually I will read it, but I am getting the error on this line implying I am doing something wrong here.