Diff: SparkFunSerialGraphicLCD.h
- Revision:
- 0:4b9e26cee71f
- Child:
- 1:30c16204be60
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SparkFunSerialGraphicLCD.h Thu Feb 16 21:47:49 2012 +0000 @@ -0,0 +1,29 @@ +#ifndef SPARKFUNSERIALGRAPHICLCD_H +#define SPARKFUNSERIALGRAPHICLCD_H + +#include "mbed.h" + +class SparkFunSerialGraphicLCD { +public: + SparkFunSerialGraphicLCD(PinName tx, PinName rx); + + void clear(); + void demo(); + void toggleReverse(); + void toggleSplash(); + void setBacklight(unsigned char intensity); + //void setBaud(); + void setX(unsigned char offset); + void setY(unsigned char offset); + void setPixel(unsigned char x, unsigned char y, bool set); + void drawLine(unsigned char x0, unsigned char y0, unsigned char x1, unsigned char y1, bool set); + void drawCircle(unsigned char x, unsigned char y, unsigned char radius, bool set); + void drawBox(unsigned char x0, unsigned char y0, unsigned char x1, unsigned char y1, bool set); + void eraseBlock(unsigned char x0, unsigned char y0, unsigned char x1, unsigned char y1); + void printf(const char *msg, ...); + +protected: + Serial MySerial; +}; + +#endif \ No newline at end of file