Vafo / ESTC-project

ESTC Main Project
0 stars 0 forks source link

Implement HSV color-picker device #25

Closed Vafo closed 1 year ago

Vafo commented 1 year ago

Workshop 5

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)

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)​