Go Down

Topic: Keep variable value until serial input is changed (Read 685 times) previous topic - next topic

PaulS

So, every time you type something, the serial monitor sends that and a carriage return. A carriage return is not a '1', so the LED turns off.

There are other options...


UKHeliBob

Like selecting an option that does not add an extra character or 2
Please do not send me PMs asking for help.  Post in the forum then everyone will benefit from seeing the questions and answers.

lawm


Like selecting an option that does not add an extra character or 2


Can you please explain in detail?

PaulS

Quote
Can you please explain in detail?

Can't you look at the list of options and figure that "No line ending" adds nothing, that "CR only" and "Line feed only" add one character, and that "Both CR and LF" adds two characters?

If not, can't you try all 4 options, and see if one of them allows the LED to stay on?

Go Up