Code for our FYDP -only one IMU works right now -RTOS is working

Dependencies:   mbed

drivers/HC05/HC05.cpp

Committer:
majik
Date:
2015-03-18
Revision:
0:964eb6a2ef00

File content as of revision 0:964eb6a2ef00:

#include "HC05.h"

HC05::HC05(PinName tx_pin, PinName rx_pin, PinName en_pin):
    MODSERIAL(tx_pin, rx_pin),
    on_switch(en_pin)
{
    //wait_ms(5000);  //mark
    on_switch = 0;
}
void HC05::start(){
    on_switch = 1;
}
//void HCO5::stop(){
//    on_switch = 0;
//}