bluetooth

Dependents:   newlib

Fork of btbee by Nikolas Goldin

Committer:
ngoldin
Date:
Thu May 16 10:24:06 2013 +0000
Revision:
0:e7cb710c8900
Child:
1:56f437e4d9e0
first commit. ;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ngoldin 0:e7cb710c8900 1 #include "btbee.h"
ngoldin 0:e7cb710c8900 2
ngoldin 0:e7cb710c8900 3 btbee::btbee(PinName respin, PinName tx, PinName rx) :
ngoldin 0:e7cb710c8900 4 Serial(tx, rx) , reset_out(respin)
ngoldin 0:e7cb710c8900 5 {
ngoldin 0:e7cb710c8900 6 reset_out.write(1);
ngoldin 0:e7cb710c8900 7 }
ngoldin 0:e7cb710c8900 8
ngoldin 0:e7cb710c8900 9 btbee::btbee( ) :
ngoldin 0:e7cb710c8900 10 Serial(p28,p27), reset_out(p26)
ngoldin 0:e7cb710c8900 11 {
ngoldin 0:e7cb710c8900 12 reset_out.write(1);
ngoldin 0:e7cb710c8900 13 }
ngoldin 0:e7cb710c8900 14
ngoldin 0:e7cb710c8900 15 void btbee::reset(void){
ngoldin 0:e7cb710c8900 16 reset_out.write(0);
ngoldin 0:e7cb710c8900 17 wait(0.01);
ngoldin 0:e7cb710c8900 18 reset_out.write(1);
ngoldin 0:e7cb710c8900 19 }
ngoldin 0:e7cb710c8900 20