NEW: Learning electronics? Ask your questions on the new Electronics Questions & Answers site hosted by CircuitLab.
Microcontroller Programming » Question: How to stabilize output in terminal window?
June 22, 2011 by Happy |
I am able to get output from the MCU (based on the tempsensor project) to display in the terminal window. However, the display in terminal window is wrapping throughout (see below): Is there a simple way to get the output to refresh in the same area repeatedly? I would prefer if the output would just stay in the upper left portion of the window. Do I need to look at my temp code or the uart.c, or am I way off base? Thanks |
---|---|
June 22, 2011 by Ralphxyz |
first thing is that it looks like you are missing a carriage return. The Nerkit Temp Sensor project has
that at least stacks everything to the left. As far as just putting it to the top left you would probable need to use a program (Python) or at least a programable Terminal application. What you are asking for would be good to have, so let us know when you work it out. Ralph |
June 22, 2011 by Happy |
Thanks for the help Ralphxyz! I was missing the r and omitted the /n (which returns to the next/new line). I used the following code (modified as I am converting to Celsius:
|
June 22, 2011 by Ralphxyz |
So does that stay in the upper left with just \r? Ralph |
Please log in to post a reply.
Did you know that the microcontroller's crystal oscillator can be used to keep accurate time? Learn more...
|