Hello,
I am playing around with the Blinky example on my custom board, where I have one button and two leds. Everything works fine and I can control the LED2 and detect the button action using the smartphone.
What I would like to do now, is to change the led state not only via ble, but also using a single press of the button and have that notified to the smartphone.
For instance:
- send 0x01 via smartphone -> LED ON
- press button -> LED OFF (notify the change in state 0x00)
- press again the button -> LED ON (led state 0x01)
Any suggestion on how to do that??
Thanks in advance
Antonio