hi all,
today encountered problem first time:
for reason compilation of code fails when run this:
but when add (meaningless) lines compile fine , works well:
a similar thing happened me today integer instead of double reason cannot recreate problem. pc restarted , uno unplugged , replugged no avail.
anyone?
today encountered problem first time:
for reason compilation of code fails when run this:
code: [select]
double x=0;
void setup()
{
serial.begin(9600);
}
void loop()
{
x=x+0.01;
serial.println(x);
delay(1000);
}
but when add (meaningless) lines compile fine , works well:
code: [select]
double x=0;
void setup()
{
serial.begin(9600);
}
void loop()
{
char line[100];
x=x+0.01;
sprintf(line,"%d",x);
serial.println(x);
delay(1000);
}
a similar thing happened me today integer instead of double reason cannot recreate problem. pc restarted , uno unplugged , replugged no avail.
anyone?
your first program compiles me.
uno
ide 1.5.6-r2
windows 7
what error message ?
uno
ide 1.5.6-r2
windows 7
what error message ?
Arduino Forum > Using Arduino > Programming Questions > println doesn't compile due to a weird problem
arduino
Comments
Post a Comment