[HC05] Updated examples
This commit is contained in:
parent
554f894adf
commit
0adf34fea2
1 changed files with 12 additions and 3 deletions
|
@ -3,14 +3,23 @@
|
||||||
|
|
||||||
This example sends data using HC05 Bluetooth module.
|
This example sends data using HC05 Bluetooth module.
|
||||||
HC05 works exactly like a Serial line, data are sent to the paired device.
|
HC05 works exactly like a Serial line, data are sent to the paired device.
|
||||||
The default pairing code for HC05 is 1234.
|
The default pairing code for HC05 is 1234 or 1111.
|
||||||
|
|
||||||
|
For full API reference, see the GitHub Pages
|
||||||
|
https://jgromes.github.io/RadioLib/
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// include the library
|
// include the library
|
||||||
#include <RadioLib.h>
|
#include <RadioLib.h>
|
||||||
|
|
||||||
// HC05 module is in slot A on the shield
|
// HC05 has the following connections:
|
||||||
HC05 bluetooth = RadioShield.ModuleA;
|
// TX pin: 9
|
||||||
|
// RX pin: 8
|
||||||
|
HC05 bluetooth = new Module(9, 8);
|
||||||
|
|
||||||
|
// or using RadioShield
|
||||||
|
// https://github.com/jgromes/RadioShield
|
||||||
|
//HC05 bluetooth = RadioShield.ModuleA;
|
||||||
|
|
||||||
void setup() {
|
void setup() {
|
||||||
Serial.begin(9600);
|
Serial.begin(9600);
|
||||||
|
|
Loading…
Add table
Reference in a new issue