This is the mail archive of the
ecos-devel@sourceware.org
mailing list for the eCos project.
dot matrix display infrastructure
- From: Tomas Frydrych <tf+lists dot ecos at r-finger dot com>
- To: ecos-devel at ecos dot sourceware dot org
- Date: Wed, 11 Jan 2012 15:41:37 +0000
- Subject: dot matrix display infrastructure
Hi,
I am working on a driver for the Freescale Kwikstik LCD, which is a
segment lcd organized as a dot matrix. As part of that, I have
prototyped a simple system for drawing text, consisting of a couple of
minimal bitmapped fonts, a simple font generation tool, and a
rudimentary API.
I am wondering whether rather than bundling such API into the Kwikstick
slcd driver package, it would be beneficial to split it out and have a
common API in io/dmd/ along the lines of:
typedef struct cyg_dmd_device_s cyg_dmd_device;
cyg_dmd_set_pixel (const cyg_dmd_device *display,
bool on,
uint x, uint y);
typedef struct cyg_font_s cyg_font;
cyg_dmd_draw_string (const cyg_dmd_device *display,
const cyg_font *font,
const char *text,
uint x, uint y);
and perhaps also something like
cyg_dmd_shift_horizontal (const cyg_dmd_device *display,
bool rotate,
int pixels);
and then driver implementations in devs/dmd/<some/hw>.
Any thoughts?
Tomas