I am writing a bare-metal C language test program that captures some sensor data, analyzes and plots it. The data is pretty simple and I only have a serial console interface. Still, I would like to plot the waveform using only mono-spaced ascii characters.
Is there a standard, recommended way to do something like this?
256 | *
| *
| *
| * *
128 | * *
| * * *
| * ** *
| ** *** * * * **
0 _______________________________

It's simply a pair of nested loops.