Quote:
Originally Posted by jlinkels
If this really is only a tool to see the contents of a file in a graph, use gnuplot.
|
Thank you for the reply... and I'm sure this would work fine... but it's not what I asked.
I'm sure (well at least I'm hoping) that it's possible to just do something like this (pseudo-code):
Code:
// create a white screen, watch pixels walk across
ptr = window_create (640, 480, 0xffffff); // 640x480 screen, white background
for (int x = 0; x < 640; x++) {
for (int y = 0; y < 480, y++) {
ptr.setpoint (x, y, 0x000000); // set pixel to black
usleep (1e3 * 100); // sleep 100 msec
ptr.setpoint (x, y, 0xffffff); // reset pixel to white
}
}
This is more or less what I'm after. Nothing complicated.
The "point" (no pun intended)

is that I can selectively control every pixel in the window, because I also want to preview font bitmaps (the kind used in VFD/LCD display modules).
For what I'm doing, I need to create a bitmap font, then when it's "right" (as determined by visualizing it in a graphic window), I have to scale it and rotate it 90 degrees CW to be used in the display (a 128 x 64 pixel KS-108 style VFD or LCD).
Another thing it would be used for is having an LCD touch screen on an Arduino microcontroller and using it to draw an arbitrary waveform shape, then uploading it to the PC (which will generate an output signal based on the shape of the arbitrary curve I drew) as well as displaying it on the PC.
The "arbitrary waveform generator" program will be a console mode program, but with a little monitor "window" to show what's going on.
Sorry for the long winded explanation, but I wanted you to see WHY I needed what I asked for, as opposed to just using "some program".
I would also, of course, use the same technique for graphing random files (such as short audio [WAV} files consisting of several sine waves summed together), but primarily what I want is a window that I can control at the pixel level.
There are a lot of graphing, plotting and curve fitting programs "out there", but none of them do what I need as described above.
Thanks again for the reply!
-- Roger