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

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers HC05.cpp Source File

HC05.cpp

00001 #include "HC05.h"
00002 
00003 HC05::HC05(PinName tx_pin, PinName rx_pin, PinName en_pin):
00004     MODSERIAL(tx_pin, rx_pin),
00005     on_switch(en_pin)
00006 {
00007     //wait_ms(5000);  //mark
00008     on_switch = 0;
00009 }
00010 void HC05::start(){
00011     on_switch = 1;
00012 }
00013 //void HCO5::stop(){
00014 //    on_switch = 0;
00015 //}