BlueTooth HC-05 module running on a ST-Nucleo-F303K8
Dependents: Nucleo_interf_bluetooth
Work version with the "BT Bot Control" app for Android. Running on a NuCleo-F303K8 and a HC-05 bluetooth module.
Diff: HC05.h
- Revision:
- 0:e0c6e95761d2
diff -r 000000000000 -r e0c6e95761d2 HC05.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/HC05.h Thu Feb 04 20:18:06 2016 +0000 @@ -0,0 +1,26 @@ +#ifndef _HC05_H_ +#define _HC05_H_ + +#include "mbed.h" + +#define SOP 's' +#define EOP 'e' + +class HC05 +{ + Serial myBT; + + int index; + + char btData[20]; + char btChar; + + bool started; + bool ended; + +public: + HC05(PinName tx, PinName rx); + void getValue(int16_t* xVal, int16_t* yVal, int16_t* cVal); +}; + +#endif /* _HC05_H_ */ \ No newline at end of file