As default Saturation and Value use 100
As default Hue percentage you should use the last two digits of your device ID. For example:
DEVICE_ID=1234
Last digits: 34
Hue: 34% => 360 * 0.34 = 122°
Consequently, when device is plugged it, LED2 value should be HSV(H=YOUR_DEFAULT_VALUE, S=100, V=100)
Features:
Double click should change the input mode
The value should be changed slowly while the button is pressed
LED1 should indicate input mode using blinking of different speed
Input modes:
No input (LED1 is always off)
Hue modification (LED1 blinks slowly)
Saturation modification (LED1 blinks fash)
Brightness modification (LED1 is always on)
Implement HSV color-picker device
As default Saturation and Value use 100 As default Hue percentage you should use the last two digits of your device ID. For example: DEVICE_ID=1234 Last digits: 34 Hue: 34% => 360 * 0.34 = 122°
Consequently, when device is plugged it, LED2 value should be HSV(H=YOUR_DEFAULT_VALUE, S=100, V=100)
Features: Double click should change the input mode The value should be changed slowly while the button is pressed LED1 should indicate input mode using blinking of different speed
Input modes: No input (LED1 is always off) Hue modification (LED1 blinks slowly) Saturation modification (LED1 blinks fash) Brightness modification (LED1 is always on)