Brightness scaling

Q&A For ShiftX2, RGB sequential shift light <a href="https://wiki.autosportlabs.com/ShiftX2">Installation and Operation Guide</a>
Post Reply
TXBDan
Posts: 68
Joined: Sat Mar 25, 2017 1:43 am

Brightness scaling

Post 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&#40;&#41;
  println&#40;'config shiftX2'&#41;
  setBaseConfig&#40;sxBright,sxBrightScale&#41;
  if sxOnInit~=nil then sxOnInit&#40;&#41; end
end

function setBaseConfig&#40;bright, brightscale&#41;
  sxTx&#40;3,&#123;bright, brightscale&#125;&#41;
end
Thanks,
Dan

wcorredor
Posts: 50
Joined: Thu Oct 27, 2016 6:29 pm

Post by wcorredor »

I have the same question.
What does brightness scale do and what is more or less bright?

brentp
Site Admin
Posts: 6274
Joined: Wed Jan 24, 2007 6:36 am

Post 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,
Brent Picasso
CEO and Founder, Autosport Labs
Facebook | Twitter

wcorredor
Posts: 50
Joined: Thu Oct 27, 2016 6:29 pm

Post 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.

brentp
Site Admin
Posts: 6274
Joined: Wed Jan 24, 2007 6:36 am

Post 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?
Brent Picasso
CEO and Founder, Autosport Labs
Facebook | Twitter

wcorredor
Posts: 50
Joined: Thu Oct 27, 2016 6:29 pm

Post 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.

wcorredor
Posts: 50
Joined: Thu Oct 27, 2016 6:29 pm

Post by wcorredor »

I will send it to your email. I get an error when I attach the file here. May be because of size.

brentp
Site Admin
Posts: 6274
Joined: Wed Jan 24, 2007 6:36 am

Post 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.
Brent Picasso
CEO and Founder, Autosport Labs
Facebook | Twitter

Post Reply