NEO.BRIGHTNESS

Give it a try, it costs you nothing !
Post Reply
User avatar
Electroguard
Posts: 835
Joined: Mon Feb 08, 2021 6:22 pm
Has thanked: 267 times
Been thanked: 317 times

NEO.BRIGHTNESS

Post by Electroguard »

I thought I noticed mention of a NEO.BRIGHTNESS instruction being added when deep-diving through the Change Log for something else, but I wasn't able to find it again when looking for it later, nor find any mention of it in Annex Help... so now I am doubting myself.

It sparked my interest because it's something I've tried to do several times, but never managed to succeed to my satisfaction.
For instance, it's hard enough just to make an orange neo warning indicator dim up from Off to full brightness then dim back down again without changing colour, let alone sending waves of any colour mixture traveling along a neo string - whereas a Neo.Brightness instruction could make it easy.

So could NEO.BRIGHTNESS be a reality, or is it just in my dreams ?
User avatar
cicciocb
Site Admin
Posts: 1889
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 405 times
Been thanked: 1261 times
Contact:

Re: NEO.BRIGHTNESS

Post by cicciocb »

The NEO brightness should be based on a gamma profile of the LED.
AndyGadget
Posts: 222
Joined: Mon Feb 15, 2021 1:44 pm
Has thanked: 119 times
Been thanked: 132 times

Re: NEO.BRIGHTNESS

Post by AndyGadget »

I've done dimming like this in my Cheerlights program. Dims without changing colour.
Rippling strings though . . . tricky :)

Code: [Local Link Removed for Guests]

NEO.SETUP 12
neo.strip 0,11,5,5,5

RedVal = 255
GrnVal = 255
BluVal = 0

for ldrdiv = 1 to 100
  neo.strip 0,11,redval \ ldrdiv, grnval \ ldrdiv, bluval \ ldrdiv
  pause 100 - ldrdiv
next ldrdiv

RedVal = 0
GrnVal = 255
BluVal = 255

for ldrdiv = 100 to 1 step -1
  neo.strip 0,11,redval \ ldrdiv, grnval \ ldrdiv, bluval \ ldrdiv
  pause 100 - ldrdiv
next ldrdiv
Post Reply