Library for Matrix Orbital VFD2041 display. Also useable for LCD2041 modules.
Diff: VFD.h
- Revision:
- 4:f17ce5ab5d01
- Parent:
- 3:b96f8fff00e8
diff -r b96f8fff00e8 -r f17ce5ab5d01 VFD.h --- a/VFD.h Sat Mar 10 22:18:27 2012 +0000 +++ b/VFD.h Sun Apr 08 20:27:22 2012 +0000 @@ -14,15 +14,18 @@ const PinName SDA = p28; const PinName SCL = p27; -const int ADDRESS = 0x50; +const int address = 0x50; class VFD { public: VFD(); - VFD(PinName data, PinName clock); ~VFD(); + void start(void); + void stop(void); + int send_byte(int byte); + int read_byte(int ack); int init(); - int print(string msg); + int print(const string msg); int autoScrollOn(); int autoScrollOff(); int lineWrapOn();