Display
Display pages, the 8x16 framebuffer, pixels, lines, rectangles, and column updates.
import "lib/display.nbl";
Framebuffer layout
A framebuffer is 32 nibbles aligned to two consecutive display pages. Pass the
array’s nibble address as base, normally &screen.
Row
yis atbase + yon the right half, columns 4 through 7.Row
yis atbase + 16 + yon the left half, columns 0 through 3.basemust be page-aligned.Bit 3 is the leftmost pixel in each nibble; bit 0 is the rightmost.
Constants
Name |
Type |
Value |
|---|---|---|
|
|
table |
Functions
Call |
Returns |
Notes |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Set the LED PWM duty (0..15; 15 = brightest). |
|
|
|
|
|
Enable/disable the ALU panel LEDs (WrFlags.LedsOff, bit 3). |
|
|
Enable/disable the LED matrix (WrFlags.MatrixOff, bit 2). |
|
|
Show the two display pages that contain a 32-nibble framebuffer. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Shift a 32-nibble framebuffer one pixel to the left. Bit 3 is the leftmost pixel in each nibble. |
|
|
Set the top eight rows of one pixel column from an 8-bit column value. |