How would you read integers using this
while (!Serial.available()) {
}
Thanks
How would you read integers using this
while (!Serial.available()) {
}
Thanks
Jackb190:
How would you read integers using this
while (!Serial.available()) {
}Thanks
With that post you can not read whole or broken, I presume.
Be more specific about what your problem is and what you want to do.
How would you read integers using this
while (!Serial.available()) {
}
While there is nothing to read, it is pointless to discuss whether that nothing is a representation of an integer, a float, or an image of Frosty the snowman.
Have a look at the examples in Serial Input Basics - simple reliable ways to receive data.
...R
Jackb190:
How would you read integers using this
while (!Serial.available()) {
}
while (!Serial.available()) {
}
int integer = Serial.parseInt();
How would you do this using
while (!Serial.available()) {
;
}
Duplicate post reported to mods
Threads merged.