pimoroni / flotilla-rockpool

The Flotilla web dashboard
2 stars 2 forks source link

Negative values cause high brightness on Rainbow #1

Closed nkotilainen closed 8 years ago

nkotilainen commented 8 years ago

Temperature readings can go negative, causing issues with Rainbow colours and invert function for example, as seen in the attached photos: screen shot 2016-01-07 at 8 23 52 pm p1200968

Gadgetoid commented 8 years ago

:D Haha! Thanks!

How cold does it get outside? I'm trying to determine a sensible temperature range to clamp the sensor to. Either +/- 50 degrees, or +/- 100 degrees would be sensible since these values scale nicely to the 0/1 scale that Rockpool uses internally.

I'm also working on some front-end jiggery pokery to actually display the value, in degrees C, that the temperature sensor is reading- for sanity's sake!

Gadgetoid commented 8 years ago

Sensor maxes out at -40, and +40 is probably more than enough in Flotilla for anyone not setting out to injure themselves. So the range has since been clamped at +-40.