Only imu output
Fork of FYDP_Final2 by
drivers/HC05/HC05.h@0:21019d94ad33, 2015-03-21 (annotated)
- Committer:
- majik
- Date:
- Sat Mar 21 21:31:29 2015 +0000
- Revision:
- 0:21019d94ad33
Both IMUs work now
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
majik | 0:21019d94ad33 | 1 | #ifndef HC05_H |
majik | 0:21019d94ad33 | 2 | #define HC05_H |
majik | 0:21019d94ad33 | 3 | |
majik | 0:21019d94ad33 | 4 | #include "mbed.h" |
majik | 0:21019d94ad33 | 5 | #include "rtos.h" |
majik | 0:21019d94ad33 | 6 | #include "MODSERIAL.h" |
majik | 0:21019d94ad33 | 7 | |
majik | 0:21019d94ad33 | 8 | class HC05 : public MODSERIAL, public Mutex |
majik | 0:21019d94ad33 | 9 | { |
majik | 0:21019d94ad33 | 10 | private: |
majik | 0:21019d94ad33 | 11 | public: |
majik | 0:21019d94ad33 | 12 | HC05(PinName tx_pin, PinName rx_pin, PinName en_pin); |
majik | 0:21019d94ad33 | 13 | void start(); |
majik | 0:21019d94ad33 | 14 | void stop(); |
majik | 0:21019d94ad33 | 15 | DigitalOut on_switch; |
majik | 0:21019d94ad33 | 16 | }; |
majik | 0:21019d94ad33 | 17 | |
majik | 0:21019d94ad33 | 18 | #endif |