df

Dependencies:   mbed

Fork of APP1 by Team APP

Revision:
2:b8a20f7e2912
Child:
13:bb9669053eb3
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/SPIDisplayer.hpp	Sun Jan 15 18:11:27 2017 +0000
@@ -0,0 +1,18 @@
+#include "mbed.h"
+
+const int CLEAR_DISPLAY_REGISTER = 0x76;
+const int DECIMAL_CONTROL_REGISTER = 0x77;
+const int FLOATING_POINT_DOT_POSITION = 0x02;
+const int CURSOR_CONROL_REGISTER = 0x79;
+const int MOST_LEFT_DIGIT_POSITION= 0x00;
+
+class SPIDisplayer
+{
+    public:
+        SPIDisplayer(PinName mosi, PinName miso, PinName sclk, PinName ssel);
+        void displayAngle(float angle);
+        void reset();
+    private:
+        SPI device;
+        Serial pc;
+};
\ No newline at end of file