I made an app with mit inventor , it has a slider. the values are like
656361595755 when moving from 65 to 55 , so I want the serial monitor to break its line after every 2 digits. how do I do that ?? Please help
nityoday:
I am a begginer and I don't know the meaning of these things..
Now is the best time to start learning.
And that can't be your complete program because it does not print anything to the Serial Monitor. In your Original Post you said "so I want the serial monitor to break its line after every 2 digits". Also, the code you posted in Reply #3 won't compile. Post the complete program in your next Reply.
Have a look at the examples in Serial Input Basics - simple reliable ways to receive data. The second example uses a linefeed character to identify the end of a message. I suspect your system is using the # character for that, and you could easily modify my example to use the # character.
And that can't be your complete program because it does not print anything to the Serial Monitor. In your Original Post you said "so I want the serial monitor to break its line after every 2 digits". Also, the code you posted in Reply #3 won't compile. Post the complete program in your next Reply.
Have a look at the examples in Serial Input Basics - simple reliable ways to receive data. The second example uses a linefeed character to identify the end of a message. I suspect your system is using the # character for that, and you could easily modify my example to use the # character.