added led helper methods. Added boards.txt

This commit is contained in:
Nishanth Samala committed 2020-02-05 15:42:00 -05:00
1 parent f92c0b7c14
commit 3e66f7491b
3 files changed
+49

No files matched your search

+15
View File
@@ -9,6 +9,7 @@ This repository contains the Arduino BSP for Adafruit Bluefruit nRF52 series:
Following boards are also included but are not officially supported:
- [Nordic nRF52840DK PCA10056](https://www.nordicsemi.com/Software-and-Tools/Development-Kits/nRF52840-DK)
- [Particle Xenon](https://store.particle.io/products/xenon)
## BSP Installation
@@ -103,6 +104,20 @@ $ nrfjprog --program feather_nrf52832_bootloader.hex -f nrf52
$ nrfjprog --reset -f nrf52
```
## Particle Xenon Specific
```c++
// Swap between the internal antenna and external u.FL antenna
switchAntenna(bool useExternal);
// Control RGB led / primary LED individually
ledWrite(LED_RGB_RED, 255);
ledWrite(LED_PRIMARY, 127);
// Control RGB leds in one shot
rgbLedWrite(50, 100, 150);
```
## Credits
This core is based on [Arduino-nRF5](https://github.com/sandeepmistry/arduino-nRF5) by Sandeep Mistry,