crashtest-r0ket/firmware/lcd/display.h

36 lines
728 B
C
Raw Normal View History

#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)
/* Display buffer */
extern uint8_t lcdBuffer[RESX*RESY_B];
2011-08-01 00:18:03 +00:00
uint8_t lcdRead(uint8_t data);
void lcdInit(void);
void lcdFill(char f);
void lcdDisplay(void);
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);
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);
void lcdSetContrast(int c);
2011-07-31 20:13:06 +00:00
void lcdSetInvert();
#endif