This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

A switch instead of a button

we use peripheral: exemple ble_app_blinky central: exemple_ble_app_bliky-c

Instead of a button we have a Switch. When we set the Switch to "on" the led go on. That's ok. But when we let the position of the Switch "on" and then reseat the bords, the led don't go on.

What do we have to change on the code?

Thank you very much for the help!

  • Hello John Froysa We have loking for exemples for the "Power-fail comparator" pofcom, but we ar not capable to implement the code in the peripheral "exemple ble_app_blinky". Importent is that when the "peripheral battery is 2.3V", the led 4 on the "central" must toggle. Can you please send us the code und where we must set it. Thank you very much! Best regards MC

Related