34 lines
1.0 KiB
C++
34 lines
1.0 KiB
C++
#ifndef Ecran_h
|
|
#define Ecran_h
|
|
|
|
#include "DEV_Config.h"
|
|
#include "EPD.h"
|
|
#include "GUI_Paint.h"
|
|
#include <stdlib.h>
|
|
|
|
class Ecran
|
|
{
|
|
public:
|
|
Ecran();
|
|
void drawCircle(int x0, int y0, int r, int color, DOT_PIXEL dot, DRAW_FILL ifill);
|
|
void drawLine(int x0, int y0, int x1, int y1, int color, DOT_PIXEL dot, LINE_STYLE style);
|
|
void drawFace(int x0, int y0, int x1, int y1, int x2, int y2);
|
|
void drawRect(int x0, int y0, int x1, int y1, int color, DOT_PIXEL dot, DRAW_FILL ifill);
|
|
void drawJauge(int x0, int y0, int x1, int y1, int val, String text);
|
|
void intro();
|
|
void LcdWrite(byte dc, byte data);
|
|
void LcdChar(int x, int y, char *characters);
|
|
void LcdString(int x, int y, String s, int foreground, int color);
|
|
void initialise(void);
|
|
void clear(void);
|
|
void LcdBitmap(int x, int y,char my_array[]);
|
|
void LcdCharacter(char character);
|
|
void setContrast(byte contrast);
|
|
void sleep();
|
|
private:
|
|
public:
|
|
UBYTE *BlackImage;
|
|
long contrast = 200;
|
|
};
|
|
#endif
|