User | Revision | Line number | New contents of line |
chag |
0:4b9e26cee71f
|
1
|
#ifndef SPARKFUNSERIALGRAPHICLCD_H
|
chag |
0:4b9e26cee71f
|
2
|
#define SPARKFUNSERIALGRAPHICLCD_H
|
chag |
0:4b9e26cee71f
|
3
|
|
chag |
0:4b9e26cee71f
|
4
|
#include "mbed.h"
|
chag |
3:889836485429
|
5
|
#include "MODSERIAL.h"
|
chag |
0:4b9e26cee71f
|
6
|
|
chag |
0:4b9e26cee71f
|
7
|
class SparkFunSerialGraphicLCD {
|
chag |
0:4b9e26cee71f
|
8
|
public:
|
chag |
0:4b9e26cee71f
|
9
|
SparkFunSerialGraphicLCD(PinName tx, PinName rx);
|
chag |
0:4b9e26cee71f
|
10
|
|
chag |
3:889836485429
|
11
|
/* 0x00 */ void clear();
|
chag |
3:889836485429
|
12
|
/* 0x01 */ void setDebug(unsigned char level);
|
chag |
3:889836485429
|
13
|
/* 0x02 */ void setBacklight(unsigned char intensity);
|
chag |
3:889836485429
|
14
|
/* 0x03 */ void drawCircle(unsigned char x, unsigned char y, unsigned char radius, bool set);
|
chag |
4:0c943e6ba349
|
15
|
/* 0x04 */ void setAutoCRLF(bool enable);
|
chag |
3:889836485429
|
16
|
/* 0x05 */ void eraseBlock(unsigned char x0, unsigned char y0, unsigned char x1, unsigned char y1);
|
chag |
3:889836485429
|
17
|
/* 0x06 */ void reset();
|
chag |
4:0c943e6ba349
|
18
|
/* 0x07 */ void setBaud(unsigned char baud);
|
chag |
4:0c943e6ba349
|
19
|
/* 0x08 */ void setFont(unsigned char font);
|
chag |
3:889836485429
|
20
|
/* 0x0A */ void setFontMode(unsigned char mode);
|
chag |
3:889836485429
|
21
|
/* 0x0B */ void drawSprite(unsigned char x, unsigned char y, unsigned char sprite, unsigned char mode);
|
chag |
3:889836485429
|
22
|
/* 0x0C */ void drawLine(unsigned char x0, unsigned char y0, unsigned char x1, unsigned char y1, bool set);
|
chag |
4:0c943e6ba349
|
23
|
/* 0x0D */ void uploadSprite(unsigned char sprite, unsigned char width, unsigned char height, unsigned char* data);
|
chag |
4:0c943e6ba349
|
24
|
/* 0x0F */ void drawBox(unsigned char x0, unsigned char y0, unsigned char x1, unsigned char y1, bool set);
|
chag |
4:0c943e6ba349
|
25
|
/* 0x10 */ void setPixel(unsigned char x, unsigned char y, bool set);
|
chag |
4:0c943e6ba349
|
26
|
/* 0x12 */ void drawFilledBox(unsigned char x0, unsigned char y0, unsigned char x1, unsigned char y1, unsigned char fill);
|
chag |
4:0c943e6ba349
|
27
|
/* 0x14 */ void setReverse(bool enable);
|
chag |
4:0c943e6ba349
|
28
|
/* 0x15 */ /*void setSplash();*/
|
chag |
4:0c943e6ba349
|
29
|
/* 0x16 */ void bitblt(unsigned char x, unsigned char y, unsigned char mode, unsigned char w, unsigned char h, unsigned char* data);
|
chag |
3:889836485429
|
30
|
/* 0x18 */ void setCursorX(unsigned char x);
|
chag |
3:889836485429
|
31
|
/* 0x19 */ void setCursorY(unsigned char y);
|
chag |
4:0c943e6ba349
|
32
|
|
chag |
0:4b9e26cee71f
|
33
|
void printf(const char *msg, ...);
|
chag |
0:4b9e26cee71f
|
34
|
|
chag |
0:4b9e26cee71f
|
35
|
protected:
|
chag |
3:889836485429
|
36
|
MODSERIAL MySerial;
|
chag |
0:4b9e26cee71f
|
37
|
};
|
chag |
0:4b9e26cee71f
|
38
|
|
chag |
0:4b9e26cee71f
|
39
|
#endif |