Next: , Previous: Solenoids, Up: Core APIs


5.4 Dot-Matrix Display (DMD)

Dot matrix APIs should only be called from display effects.

There are two key objects you should understand: pages and windows.

A display page is special RAM which holds the frame buffer that determines which pixels are turned on and off. Display memory cannot be accessed like ordinary memory, though; it does not have a fixed address.

A display window is an address that the CPU can use to read/write display memory – that is, it sees one of the display pages.

There can be more display pages than windows, so not all pages are accessible at all times. Through mapping calls, you decide which pages are mapped to which windows.

You must go through several steps for each frame you want to write. For each step, there are several APIs to choose from.

Other APIs are listed below.

dmd_flip_low_high
Flip the mappings, so that the low page appears in the high region, and vice versa.
dmd_rough_copy
dmd_rough_erase
Erase a rough region of the low page. The x coordinates must be 8-bit aligned.