Skip to content

BLE service for controlling a RGB LED using PWM and getting notifications on button presses for nRF51 and nRF52 series of Nordic Semiconductor SoCs.

License

Notifications You must be signed in to change notification settings

joakimtoe/nrf5-ble-rgb-btn

Repository files navigation

RGB Led and Button Service

Bluetooth Low Energy service for controlling a RGB LED using PWM, and getting notifications on button presses for nRF51 and nRF52 series of Nordic Semiconductor SoCs.

Prerequisites

Windows

Linux

Compilation

  • Run bash script get_sdk.sh to download and unzip Nordic Semicunductors SDK v11.0.0 for nRF5x series. On windows run it from git-bash.
  • Open Keil project in pca100xx\s13x\arm5_no_packs\ and hit Build (F7). Choose pca10031 if you are using Nordics nRF51 usb dongle and pca10041 if you have Nordics nRF52 DK.

Flashing

  • Flash the SoftDevice (bluetooth stack) found in the SDK folder. Replace x depending on if you are using nRF51 s130 or nRF52 s132.
cd nRF5_SDK_v11.0.0\components\softdevice\s13x\hex
nrfjprog -f "nrf5x"-e
nrfjprog -f "nrf5x" --program s13x_nrf5x_2.0.0_softdevice.hex
  • Flash application by hitting Download (F8) in Keil. Or by using nrfjprog as bellow.
cd nrf5_ble_rgb_btn\pca100xx\s13x\arm5_no_packs\_build
nrfjprog -f "nrf5x" --program ble_rgb_btn_s130.hex

About

BLE service for controlling a RGB LED using PWM and getting notifications on button presses for nRF51 and nRF52 series of Nordic Semiconductor SoCs.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published