50ButtonsEach / flic2lib-android

Flic2 SDK for Android
Other
17 stars 8 forks source link

Controlling the LED #21

Open Fussballexperte opened 2 years ago

Fussballexperte commented 2 years ago

In the Overview at https://github.com/50ButtonsEach/flic2-documentation/wiki/Technical-Overview-and-Terminology it is mentioned that there as a LED on the button which can be controlled. But there are no details given and i wasn't able to find anything related in the Android library.

So how to achieve this and control the LED? In particular, i want to completely disable it.

Emill commented 2 years ago

Hi. Where do we say it can be controlled?

Currently the LED behaviour is hard coded in the firmware and can thus not be modified.

Fussballexperte commented 2 years ago

On Board LED

The Flic has an on board LED that can be used whenever it is connected. The LED is by far the most power consuming component on the Flic so we recommend that you don't use it too frequently. By default the Flic's LED will shine orange when it is advertising. If a connection is established, it will blink green when the button is pressed.

https://github.com/50ButtonsEach/flic2-documentation/wiki/Technical-Overview-and-Terminology#on-board-led

Emill commented 2 years ago

Hmm I agree the text is a bit misleading. The user interacting with the button will cause the LED to be used. I'll see if we can get the text a bit updated.