2011-05-11 21:18:46 +00:00
|
|
|
#ifndef __DISPLAY_H_
|
|
|
|
#define __DISPLAY_H_
|
|
|
|
|
|
|
|
#include <sysdefs.h>
|
|
|
|
|
|
|
|
/*
|
|
|
|
#badge <s> 96x68
|
|
|
|
#badge <s> das farbige hat 98x70
|
|
|
|
#badge <s> das laengliche 128x32
|
|
|
|
*/
|
|
|
|
|
|
|
|
#define RESX 96
|
|
|
|
#define RESY 68
|
|
|
|
#define RESY_B 9
|
|
|
|
|
2011-07-09 21:23:33 +00:00
|
|
|
#define LCD_INVERTED (1<<0)
|
|
|
|
#define LCD_MIRRORX (1<<1)
|
|
|
|
#define LCD_MIRRORY (1<<2)
|
2011-05-11 21:18:46 +00:00
|
|
|
|
|
|
|
/* Display buffer */
|
2011-05-20 23:12:09 +00:00
|
|
|
extern uint8_t lcdBuffer[RESX*RESY_B];
|
2011-05-11 21:18:46 +00:00
|
|
|
|
2011-08-01 00:18:03 +00:00
|
|
|
uint8_t lcdRead(uint8_t data);
|
2011-05-20 23:12:09 +00:00
|
|
|
void lcdInit(void);
|
|
|
|
void lcdFill(char f);
|
2011-07-18 20:09:31 +00:00
|
|
|
void lcdDisplay(void);
|
2011-05-22 15:48:02 +00:00
|
|
|
void lcdInvert(void);
|
2011-07-09 21:23:33 +00:00
|
|
|
void lcdToggleFlag(int flag);
|
2011-06-13 17:55:51 +00:00
|
|
|
void lcdSetPixel(char x, char y, bool f);
|
2011-07-17 10:14:49 +00:00
|
|
|
void lcdSafeSetPixel(char x, char y, bool f);
|
2011-06-14 00:20:15 +00:00
|
|
|
bool lcdGetPixel(char x, char y);
|
2011-07-19 00:43:15 +00:00
|
|
|
void lcdShift(int x, int y, bool wrap);
|
2011-07-31 16:15:44 +00:00
|
|
|
void lcdSetContrast(int c);
|
2011-07-31 20:13:06 +00:00
|
|
|
void lcdSetInvert();
|
2011-05-11 21:18:46 +00:00
|
|
|
#endif
|