sandeepmistry / arduino-BLEPeripheral

An Arduino library for creating custom BLE peripherals with Nordic Semiconductor's nRF8001 or nR51822.
MIT License
462 stars 179 forks source link

Include BLEPeripheral nRF51822 - Low Power (Interrupt) Example #217

Closed probonopd closed 6 years ago

probonopd commented 6 years ago

https://gist.github.com/sandeepmistry/6a6dfe9021b19bfddd60 should be included in the examples/ that come with the library. Many people will be interested in a Low Power (Interrupt) Example.

sandeepmistry commented 6 years ago

This only works with nRF5x boards, so not too keen.

probonopd commented 6 years ago

Is it a requirement that all example sketches need to run on boards other than nRF5x as well? That would limit the power of this project in my opinion.

Can't we have it print a statement if used with an incompatible board?

I assume that many people are using this project exactly for the reason that they want to make something low power, and a bare nRF5x board is best for this. In fact, that's why I use this project, anyway ;-)

kainhofer commented 5 years ago

I would also like to ask for including the example with the library. To indicate that it works only with the nrf5x boards, simply include nrf51 into the name of the example and it should be crystal clear that the example is only for specific boards...