Only imu output
Fork of FYDP_Final2 by
drivers/HC05/HC05.cpp@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 | #include "HC05.h" |
majik | 0:21019d94ad33 | 2 | |
majik | 0:21019d94ad33 | 3 | HC05::HC05(PinName tx_pin, PinName rx_pin, PinName en_pin): |
majik | 0:21019d94ad33 | 4 | MODSERIAL(tx_pin, rx_pin), |
majik | 0:21019d94ad33 | 5 | on_switch(en_pin) |
majik | 0:21019d94ad33 | 6 | { |
majik | 0:21019d94ad33 | 7 | //wait_ms(5000); //mark |
majik | 0:21019d94ad33 | 8 | on_switch = 0; |
majik | 0:21019d94ad33 | 9 | } |
majik | 0:21019d94ad33 | 10 | void HC05::start(){ |
majik | 0:21019d94ad33 | 11 | on_switch = 1; |
majik | 0:21019d94ad33 | 12 | } |
majik | 0:21019d94ad33 | 13 | //void HCO5::stop(){ |
majik | 0:21019d94ad33 | 14 | // on_switch = 0; |
majik | 0:21019d94ad33 | 15 | //} |