Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 28 additions & 13 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# Microchip_RN487x
# RN487x

Arduino library for using the Microchip RN487x BLE module.

Updated to work with chipKIT boards.

## Usage

Quick example:
Expand All @@ -10,21 +12,23 @@ Quick example:
#include "RN487x_BLE.h"

#define bleSerial Serial1
#define BT_RESET 7
#define BLUETOOTH_WAKE 12

void setup()
{
rn487xBle.hwInit() ;
bleSerial.begin(rn487xBle.getDefaultBaudRate()) ;
rn487xBle.initBleStream(&bleSerial) ;
if (rn487xBle.swInit())
{
rn487xBle.enterCommandMode() ;
rn487xBle.stopAdvertising() ;
rn487xBle.setAdvPower(3) ;
rn487xBle.setSerializedName("Microchip") ;
rn487xBle.clearAllServices() ;
rn487xBle.reboot() ;
}
rn487xBle.hwInit(BT_RESET, BLUETOOTH_WAKE);
bleSerial.begin(rn487xBle.getDefaultBaudRate());
rn487xBle.initBleStream(&bleSerial);
if (rn487xBle.swInit())
{
rn487xBle.enterCommandMode();
rn487xBle.stopAdvertising();
rn487xBle.setAdvPower(3);
rn487xBle.setSerializedName("Microchip");
rn487xBle.clearAllServices();
rn487xBle.reboot();
}
}

void loop()
Expand All @@ -41,6 +45,17 @@ void loop()

v1.0.0 Initial Release

v1.1.0 Release
* enterCommandMode() now properly handles situation where module has prompt turned on or off
* Library now keeps track of if it is in command mode or not
* Added function setOperationMode()
* Added startCustomAdvertising() function
* Added support for PIC32 (chipKIT)
* Moved reset and wake pin definitions into hwInit() so that different boards can be supported without editing library

v1.2.0 Release
* Examples updated to work properly with chipKIT boards (like Fubarino Mini and RGB Station)

## License

(c) 2016 Microchip Technology Inc. and its subsidiaries. You may use this
Expand Down
296 changes: 0 additions & 296 deletions examples/BLE_Peripheral/BLE_Peripheral.ino

This file was deleted.

Loading