brewpanel/slcd.h

Thu, 19 Nov 2015 22:50:17 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Thu, 19 Nov 2015 22:50:17 +0100
changeset 427
e8e548922e31
parent 412
f1a042a59b61
child 428
d64c4c1edd78
permissions
-rw-r--r--

Initial part of LEDs and backlight implemented.

#ifndef _SLCD_H
#define	_SLCD_H
#ifdef	HAVE_SDL_SDL_H

#define	MAX_SLCDS	8

void slcdHome        (int fd) ;
void slcdClear       (int fd) ;
void slcdDisplay     (int fd, int state) ;
void slcdCursor      (int fd, int state) ;
void slcdCursorBlink (int fd, int state) ;
void slcdSendCommand (int fd, unsigned char command) ;
void slcdPosition    (int fd, int x, int y) ;
void slcdCharDef     (int fd, int index, unsigned char data [8]) ;
void slcdPutchar     (int fd, unsigned char data) ;
void slcdPuts        (int fd, const char *string) ;
void slcdPrintf      (int fd, const char *message, ...) ;
void slcdBacklight   (int fd, int bl);

int  slcdInit        (int fd, int x, int y, int w, int h, int cols, int rows) ;


#endif
#endif

mercurial