Page 1 of 1

Brightness scaling

Posted: Thu Jun 21, 2018 2:43 am
by TXBDan
Looking at the ShiftX2 API, there seems to be a value that isn't set in any of the demo code, brightness scaling.

It's in the "Set Configuration Parameters Group 1" section here:
https://wiki.autosportlabs.com/ShiftX2

Does this value determine the brightness of the LEDs when in auto-brightness mode? I've implemented it in my script but havent had a chance to really test it. I hoping i can keep autodimming, but turn down the overall brightness a bit.

Here's my test code, not totally sure that it works:

Code: Select all

--Brightness, 0-100. 0=automatic brightness
sxBright=0
sxBrightScale = 45 --0-255 default is 51

function sxInit()
  println('config shiftX2')
  setBaseConfig(sxBright,sxBrightScale)
  if sxOnInit~=nil then sxOnInit() end
end

function setBaseConfig(bright, brightscale)
  sxTx(3,{bright, brightscale})
end
Thanks,
Dan

Posted: Sun Aug 05, 2018 4:50 pm
by wcorredor
I have the same question.
What does brightness scale do and what is more or less bright?

Posted: Mon Aug 06, 2018 8:49 pm
by brentp
Hi,



1 = dimmest; 100 = brightest. 0 is automatic brightness using the built-in light sensor.

Wiki has been updated here:
https://wiki.autosportlabs.com/ShiftX2# ... rs_Group_1

You can experiment with the automatic brightness scaling value to adjust how the auto-brightness behaves. These are the only two settings available for controlling brightness.

Thanks,

Posted: Sun Oct 21, 2018 7:19 pm
by wcorredor
For day light driving it works great, but because we do endurance and enventually have to drive at night, it becones too bright.

With the previous ShiftX lwe were able to use the time of day to lower the intensity almost all the way, but this ShiftX2 can not be lowered enough. It becomes blinding at night.

Any suggestions?

We put a reflective film on the windshield so the lights are not Heads Up Display. It is great. You can see it in the video bellow.

https://www.youtube.com/watch?v=pqbIjQRjIHs

Too bad at night it doesn't work that well.

Posted: Sun Oct 21, 2018 7:29 pm
by brentp
Have you tried setting it to the lowest brightness manually, or are you finding the automatic brightness control still too bright even at night?

Posted: Sun Oct 21, 2018 7:36 pm
by wcorredor
I have tried both. The manual dimmest I can do with LUA is still too bright.
Is there a possible lower way and 1? I used to play with the frequency on the other ShiftX to go even lower.

Posted: Sun Oct 21, 2018 7:37 pm
by wcorredor
I will send it to your email. I get an error when I attach the file here. May be because of size.

Posted: Sun Oct 21, 2018 7:38 pm
by brentp
You can also play with the actual color value. e.g. "green" could be a very dim green, vs full brightness green.

When you manually set the brightness value, that is directly controlling the LED's brightness level, so - max dim is actually the dimmest it can be.