df

Dependencies:   mbed

Fork of APP1 by Team APP

Revision:
13:bb9669053eb3
Parent:
2:b8a20f7e2912
Child:
14:2f89279586cb
--- a/UARTDisplayer.hpp	Sun Jan 15 19:46:10 2017 +0000
+++ b/UARTDisplayer.hpp	Mon Jan 16 00:06:45 2017 +0000
@@ -1,13 +1,22 @@
-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;
+#include <mbed.h> //PinName
+#include "DisplayerConstants.hpp"
+
+class HomemadeUART
+{
+    public:
+        HomemadeUART(PinName tx_pin);
+        void init();
+        void write(int value);
+    private:
+        PinName tx_pin;
+};
 
 class UARTDisplayer
 {
     public:
-        UARTDisplayer();
+        UARTDisplayer(PinName tx_pin);
         void displayAngle(float angle);
         void reset();
+    private:
+        HomemadeUART device;
 };
\ No newline at end of file