HI folks,
This might be more of a math question than Particle.
I’d like to take the degree of angle from a Grove rotary angle sensor (0-300) and convert that to a value between 0-65535 which represents the color hue range of a Philips Hue bulb. My math is little rusty.
Can anyone recommend how to achieve this?
Thanks.