Calculating the values and storing it to the SD works fine, but I´ve only tried with one graph, as in the catmull-example. Now I want to calculate 4 other graphes at the same time.
Here is the original example:
float x[7] = {-1,0,1,2,3,4, 5};
float y[7] = { 0,0,8,5,2,10,10};
tempCurve.setPoints(x,y,7);
tempCurve.setDegree( Catmull );
for( float i = 0; i <= 4; i+= .1 ) {
float temp = tempCurve.value(i);
Serial.print(i);
for(float j=0; j<= temp; j += .2) {
Serial.print( "*" );
}
Serial.print( " " );
Serial.println(temp);
}
The function in the for-loop only calculates the values for x and y.
Now I want to have a working code which looks like this:
float u[7] = {-1,0,1,2,3,4, 5};
float v[7] = { 0,0,8,5,2,10,10};
float w[7] = { 0,0,8,5,2,10,10};
float x[7] = {-1,0,1,2,3,4, 5};
float y[7] = { 0,0,8,5,2,10,10};
float z[7] = { 0,0,8,5,2,10,10};
tempCurve.setPoints(u,v,w,x,y,z,7);
tempCurve.setDegree( Catmull );
for( float i = 0; i <= 4; i+= .1 ) {
float temp = tempCurve.value(i);
Serial.print(i);
Serial.print( " " );
Serial.println(temp);
And temp should output the values for u,v,w,y and z. Now my problem ist, that I don´t know which parts of the main code I have to modify to add additional graphes.