create a string pointing to the value of a variable(s)
using Serial.print, send that string/value to a laptop for datalogging/viewing with this program www.tunerpro.net
use strcat to append several values to the string and send that string to serial so that they are sent (coming into the laptop) consecutively.
Here is the basic code I am using. I get an error " initializer expression list treated as compound expression" when attempting to compile.
I am needing to send the values of "tpvolt" and "PWM_1" out to serial. In Tunerpro I get the desired value of tpvolt but I get nothing relating to PWM_1. Im stumped. Surely it's something simple as it usually is. Any insight is greatly appreciated.
create a string pointing to the value of a variable(s)
This doesn't make sense.
char tpvolt = map(tpsval,0,1023,0,255);
That's an expensive way to divide by 4.
Here is the basic code I am using. I get an error " initializer expression list treated as compound expression" when attempting to compile.
Referencing what line?
char strcat(tpvolt,PWM_1);
This one? What do you think you are doing here? Why are you trying to concatenate a char to a char? Both arguments need to be string (NULL terminated ARRAYS of chars). The result is NOT a char.