/*************************************************** This is a library for the EB-Bluetooth The EB-Bluetooth uses software seiral and one extra pin for checking state. MakerStudio invests time and resources providing this open source code, please support MakerStudio and open-source hardware by purchasing products from MakerStudio! Written by Steve for MakerStudio. BSD license, all text above must be included in any redistribution ****************************************************/ #ifndef _EB_BLUETOOTH_H #define _EB_BLUETOOTH_H #include #include #include class EB_Bluetooth{ public: EB_Bluetooth(uint8_t EB_Rx, uint8_t EB_Tx); EB_Bluetooth(uint8_t EB_Rx, uint8_t EB_Tx, uint8_t EB_INT); void begin(); int setName(String name); int print(uint8_t byte); int read(); int available(); int connected(); private: uint8_t EB_rxPin; uint8_t EB_txPin; uint8_t EB_statePin; int bluetoothState; SoftwareSerial swSerial; }; #endif