- Made sure all icon and vbar functions are not the old API functions. - Removed heartbeat functions from drivers that did standard heartbeat.
51 lines
1.7 KiB
C
51 lines
1.7 KiB
C
#ifndef MTXORB_H
|
|
#define MTXORB_H
|
|
|
|
#include "lcd.h"
|
|
|
|
MODULE_EXPORT int MtxOrb_init (Driver *drvthis, char *device);
|
|
MODULE_EXPORT void MtxOrb_close (Driver *drvthis);
|
|
MODULE_EXPORT int MtxOrb_width (Driver *drvthis);
|
|
MODULE_EXPORT int MtxOrb_height (Driver *drvthis);
|
|
MODULE_EXPORT void MtxOrb_clear (Driver *drvthis);
|
|
MODULE_EXPORT void MtxOrb_flush (Driver *drvthis);
|
|
MODULE_EXPORT void MtxOrb_string (Driver *drvthis, int x, int y, char *string);
|
|
MODULE_EXPORT void MtxOrb_chr (Driver *drvthis, int x, int y, char c);
|
|
|
|
MODULE_EXPORT void MtxOrb_set_char (Driver *drvthis, int n, char *dat);
|
|
|
|
MODULE_EXPORT int MtxOrb_get_contrast (Driver *drvthis);
|
|
MODULE_EXPORT void MtxOrb_set_contrast (Driver *drvthis, int promille);
|
|
MODULE_EXPORT void MtxOrb_backlight (Driver *drvthis, int on);
|
|
MODULE_EXPORT void MtxOrb_output (Driver *drvthis, int on);
|
|
|
|
MODULE_EXPORT char MtxOrb_getkey (Driver *drvthis);
|
|
MODULE_EXPORT char * MtxOrb_get_info (Driver *drvthis);
|
|
|
|
MODULE_EXPORT void MtxOrb_num (Driver *drvthis, int x, int num);
|
|
|
|
MODULE_EXPORT int MtxOrb_icon (Driver *drvthis, int x, int y, int icon);
|
|
MODULE_EXPORT void MtxOrb_vbar (Driver * drvthis, int x, int y, int len, int promille, int options);
|
|
MODULE_EXPORT void MtxOrb_hbar (Driver * drvthis, int x, int y, int len, int promille, int options);
|
|
|
|
|
|
#define DEFAULT_CONTRAST 480
|
|
#define DEFAULT_DEVICE "/dev/lcd"
|
|
#define DEFAULT_SPEED B19200
|
|
#define DEFAULT_LINEWRAP 1
|
|
#define DEFAULT_AUTOSCROLL 1
|
|
#define DEFAULT_CURSORBLINK 0
|
|
|
|
/* These are the keys for a (possibly) broken LK202-25...*/
|
|
#define KEY_UP 'I'
|
|
#define KEY_DOWN 'F'
|
|
#define KEY_LEFT 'K'
|
|
#define KEY_RIGHT 'A'
|
|
#define KEY_F1 'N'
|
|
/* TODO: add more if you've got any more ;) or correct the settings
|
|
* the actual translation is done in MtxOrb_getkey()
|
|
*/
|
|
|
|
#endif
|
|
|