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.

HC05.h

Committer:
Kio_Liex
Date:
2016-02-04
Revision:
0:e0c6e95761d2

File content as of revision 0:e0c6e95761d2:

#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_ */