df

Dependencies:   mbed

Fork of APP1 by Team APP

Committer:
GaiSensei
Date:
Mon Jan 16 00:06:45 2017 +0000
Revision:
13:bb9669053eb3
Parent:
2:b8a20f7e2912
Child:
14:2f89279586cb
Create homemade_mbed functions; ; - Read bits; - Write bits; ; Sorry messy commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
GaiSensei 13:bb9669053eb3 1 #include <mbed.h> //PinName
GaiSensei 13:bb9669053eb3 2 #include "DisplayerConstants.hpp"
GaiSensei 13:bb9669053eb3 3
GaiSensei 13:bb9669053eb3 4 class HomemadeUART
GaiSensei 13:bb9669053eb3 5 {
GaiSensei 13:bb9669053eb3 6 public:
GaiSensei 13:bb9669053eb3 7 HomemadeUART(PinName tx_pin);
GaiSensei 13:bb9669053eb3 8 void init();
GaiSensei 13:bb9669053eb3 9 void write(int value);
GaiSensei 13:bb9669053eb3 10 private:
GaiSensei 13:bb9669053eb3 11 PinName tx_pin;
GaiSensei 13:bb9669053eb3 12 };
GaiSensei 2:b8a20f7e2912 13
GaiSensei 2:b8a20f7e2912 14 class UARTDisplayer
GaiSensei 2:b8a20f7e2912 15 {
GaiSensei 2:b8a20f7e2912 16 public:
GaiSensei 13:bb9669053eb3 17 UARTDisplayer(PinName tx_pin);
GaiSensei 2:b8a20f7e2912 18 void displayAngle(float angle);
GaiSensei 2:b8a20f7e2912 19 void reset();
GaiSensei 13:bb9669053eb3 20 private:
GaiSensei 13:bb9669053eb3 21 HomemadeUART device;
GaiSensei 2:b8a20f7e2912 22 };