Expand description
led
module controls the LED on the TKey.
Constants§
TK1_LED
is the address for controlling the LED.TK1_LED_BIT_BLUE
is the bit (index) that controls the blue led.TK1_LED_BIT_GREEN
is the bit (index) that controls the green led.TK1_LED_BIT_RED
is the bit (index) that controls the red led.
Functions§
change
sets the LED to a new color and returns the previous color.get
gets the current LED value.set
sets the LED value.signal
performscount
flashes uniformly between two LED-colors:color1
andcolor2
. Afterwards, the previous LED color is restored. Blinking the LED with alternating colors, is a simple but effective way to signal a user that is physically near the TKey device.