[JDY08] Updated examples
This commit is contained in:
parent
66cd4e45ec
commit
4b9de4c290
1 changed files with 12 additions and 2 deletions
|
@ -2,13 +2,23 @@
|
||||||
RadioLib JDY08 Example
|
RadioLib JDY08 Example
|
||||||
|
|
||||||
This example sends data using JDY08 Bluetooth module.
|
This example sends data using JDY08 Bluetooth module.
|
||||||
|
JDY08 works exactly like a Serial line, data are sent to the paired device.
|
||||||
|
|
||||||
|
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>
|
||||||
|
|
||||||
// JDY08 module is in slot A on the shield
|
// JDY08 has the following connections:
|
||||||
JDY08 ble = RadioShield.ModuleA;
|
// TX pin: 9
|
||||||
|
// RX pin: 8
|
||||||
|
JDY08 ble = new Module(9, 8);
|
||||||
|
|
||||||
|
// or using RadioShield
|
||||||
|
// https://github.com/jgromes/RadioShield
|
||||||
|
//JDY08 ble = RadioShield.ModuleA;
|
||||||
|
|
||||||
void setup() {
|
void setup() {
|
||||||
Serial.begin(9600);
|
Serial.begin(9600);
|
||||||
|
|
Loading…
Add table
Reference in a new issue