Bluetooth routines. More...
Functions | |
void | initBluetooth (void) |
Bluetooth initialization function. | |
BYTE | bluetoothReady (void) |
Data ready on bluetooth. | |
BYTE | readBluetooth (void) |
Read from Bluetooth. | |
void | sendBluetooth (BYTE data) |
Send one byte using Bluetooth. |
Bluetooth routines.
Library to communicate using a Bluetooth module.
BYTE bluetoothReady | ( | void | ) |
Data ready on bluetooth.
Checks wether data can be send using the bluetooth module.
void initBluetooth | ( | void | ) |
Bluetooth initialization function.
Configures baudrate (= 9600) and pins RC6 and RC7
BYTE readBluetooth | ( | void | ) |
Read from Bluetooth.
Returns the next byte received by the bluetooth module, can only be used if bluetoothReady() == TRUE
void sendBluetooth | ( | BYTE | data | ) |
Send one byte using Bluetooth.
Sends one byte using the Bluetooth module.
data | the byte to send |