16x23 Pixel Display Library

by mr_piay
See Code Download Embed
[two sprites]
- 16x23_library (library code)
- your_code (your program)

[parameters]
bri: pixel brightness (-100 to 100)
col: pixel color (-2 to 200, -2 = off, -1 = white)
trans: transparent sprite (1 if transparent, 0 it not)
h: sprite/block height (rows)
m: sprite list index (0 to 25 for built-in sprites)
n: pixel number (0 to 367)
w: sprite/block width (columns)
x: pixel/block/sprite left column (0 to 22)
y: pixel/block/sprite top row (0 to 15)
bc: background color of the sprite (if not transparent)
bb: background brightness of the sprite (if not transparent)
x0: first sprite column plotted (1 to 4)
xn: sprite columns plotted (1 to 4)
v: if set to 1, the list "display" is used to select the color of each pixel in a block of pixels.

[blocks]
_init_: create and show the display (call first)
_plot_n_(n, col, bri): plot pixel given n
_plot_xy_(x, y, col, bri): plot pixel given xy
_plot_b_(x, y, w, h, col, bri, v): plot block
_plot_s_(x, y, m, h, col, bri, trans, bc, bb, x0, xn): plot a sprite stored in a list

[built-in sprites (in order)]
Hexadecimal digits (0 to F)
Decimal digits (0 to 9) with two columns (x0=3 and xn=2)

Created April 30, 2020

Last updated May 9, 2020

Published April 30, 2020