Closed profburke closed 1 year ago
By default, the blink1-tool and blink1 C library applies a gamma-correction curve to the colors to match how our eyes perceive brightness.
To disable this, use the (somewhat confusingly named) blink1_enableDegamma()
.
Apologies this isn't described well.
And thank you for making a Lua library for blink(1)!
Sure, happy to have done it. I think I may be the only person who uses it 🤣
Ok, that's the danger of just diving in and skimming for one thing in particular, rather than getting familiar with all the code. I hadn't noticed the gamma functions. Even worse, I didn't see blink1_adjustBrightness
-- which should make unnecessary my attempt to code up my own half-baked version!
Ok, this is probably PEBKAC, but ...
I'm working on updating my Lua wrapper of the Blink library and am having an issue with blink1_readRGB. Below is a minimal C program that demonstrates the problem:
My expectation is that the values returned by the read call should match the preceding set. But that's not the case:
Bug? Or am I making a mistake?
Thanks!