I want to program the Arduino to interpret your ASCII character inputs as a decimal value.
It should be demonstrated by sending the decimal number 133.2 to the Arduino, divide it by 3 using the Arduino, and send the result back to the serial monitor.
look at atof();
-jim lee
When is your our assignment due?
Without their assignments, what would we have to do to fill our days?
-jim lee
void setup ()
{
Serial.begin (9600);
Serial.println ("\x34\x34.\x34");
}
void loop ()
{}
(Uncompiled, untested)
What gets me is that they're so lazy they post the text of the assignment verbatim. Can't even be bothered to change the wording in an attempt to hide their purpose.
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.