■ FIGURE 8. Bitmaps.
■ FIGURE 9. Shapes.
■ FIGURE 12. The Snapshot viewer-display
shows incoming 3 kHz sine wave.
Note the Experimenter supplies + 3.3V
and GND to the EADOGM128-6 — not
shown. All values of C are 1 µF.
■ FIGURE 10. Waveform display.
■ FIGURE 11. Graphics and
be included as a “bitmap.h“ file in the project and
referenced in the MAIN code using a “#include directive.”
Within the demo, there are up to 18 different bitmaps
(these are focused on a Sci-Fi genre with rockets, planets,
robots, and satellites).
The basic library drawing function is:
•drawbitmap32x32 (bitmap, x, y) — This draws the
designated bit map to location x,y of VMAP. In this case,
x,y are not character positions but actual pixel based x
and y positions. The range of x is 0-127 and y is 0-63.
An actual code snippet used for the first display on
the left is shown in Figure 8.
Outputting Lines, Triangles,
Circles, Bars, and Rectangles
Using the Library
Displaying geometric shapes and lines is also
straightforward but it does require math functions within C
to accomplish this. No worries though. The PIC24F
April 2010 35