NCalc help - LED sc...
 
Notifications
Clear all

NCalc help - LED scroll with variable step duration

3 Posts
2 Users
0 Reactions
1,402 Views
(@peter-a)
New Member
Joined: 4 years ago
Posts: 2
Topic starter  

Hi, I was wondering if it is possible to create an NCalc formula that will act same as 'Scroll Group' but the step duration could be a variable. My goal is to have a group of LEDs scroll depending on the car speed.

 

I tried to do it using 'scroll' function, but it resets every time speed changes so that didn't work:/

(LED values set to 0-100 range)

if([SpeedLocal]<5,0,scroll(55-[SpeedLocal]/5, 2, '112233445566778899', [overflowonly]) )

 

Any help or suggestion would be highly appreciated.

 

Thanks,

Peter


   
Quote
(@admin5435)
Prominent Member Admin
Joined: 7 years ago
Posts: 732
 

Hello, no it's not possible yet i'm sorry, like you found the scroll uses a reference time to compute the current scroll position and changing the delay dynamically will not give your expected effect. In all cases you can't translate such result to a led scrolling (or eventually by controlling each led individually which would be a pain).

Nicolas


   
ReplyQuote
(@peter-a)
New Member
Joined: 4 years ago
Posts: 2
Topic starter  

I see, thank you, was hoping there's another way: (

What about blinking? Is there a formula that would go 100, [delay], 0, [delay] etc, or a breathing effect or anything else that would change the behaviour of 30+ plus LEDs depending on car's speed?


   
ReplyQuote
Share: