Library for DogM163 text display 3x16 character

Dependents:   DogMTest WavPlayerSD_CB_using_RiceGulumb WavPlayer_CB

Revision:
0:f7a30e1476bd
diff -r 000000000000 -r f7a30e1476bd DogM163.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/DogM163.h	Wed Dec 08 13:28:53 2010 +0000
@@ -0,0 +1,34 @@
+#ifndef __DOGM163_H
+#define __DOGM163_H
+
+#include "mbed.h"
+
+class DogM163 {
+public:
+    static const unsigned char LINE_1 = 0;
+    static const unsigned char LINE_2 = 1;
+    static const unsigned char LINE_3 = 2; 
+    
+    DogM163(PinName miso, PinName clk, PinName cs, PinName rs);
+    void Clear();
+    void SetPosition(unsigned char x, unsigned char line);
+    void WriteCharacter(char character);
+    void WriteCharacter(char character,unsigned char x,unsigned char line);
+    void WriteString(char* string);
+    void WriteString(char* string, unsigned char x, unsigned char line);
+    
+  
+private: 
+    SPI _spi;
+    DigitalOut _rs;
+    DigitalOut _cs;
+    
+    void Init(); 
+    void WriteCommandByte(char cmd);
+    void WriteDataByte(char cmd);
+};
+
+
+#endif
+
+