Notifications
Clear all

10/18/2023 Map Stopped Working?
Visit this post for the fix

LED Dimming

3 Posts
2 Users
0 Reactions
607 Views
(@kblive)
Active Member
Joined: 5 years ago
Posts: 11
Topic starter  

I noticed two small bugs regarding dimming of all lights except for the home airport (if this feature is used).  One is in the Configuration Editor, where the setting description shows the range as 0-255.  In reality, this setting goes from 0-100, where 0 isn't dimmed at all, 30 would be dimmed 30% compared to the home airport, and 100 would be 100% dimmed (totally dark).

The other small error is in metar-v31.py.  Under the section on dimming (def dim(data,value)), the line that dims the blue value needs a slight change to this:

blu = data[2] - ((value * data[2])/100)

It was multiplying by data[0] instead of data[2].  Only showed up when certain colors were being displayed, and then the dimming wouldn't work correctly.

Such a cool program, and documented nicely enough that amateurs can figure it out.

Thanks!


   
Quote
Mark Harris
(@markyharris)
Member Admin Registered
Joined: 5 years ago
Posts: 557
 

Awesome catches. I just fixed both of them. We'll be sure to get the two affected files up on this site so others can just drop them in the appropriate directories

Thanks again for the contribution. - Mark


   
ReplyQuote
(@kblive)
Active Member
Joined: 5 years ago
Posts: 11
Topic starter  

It's my pleasure!  You've done a great job with setting this all up.  Thank you!


   
ReplyQuote
Share: