Can leds show throt...
 
Notifications
Clear all

Can leds show throttle & brake values?

6 Posts
3 Users
0 Likes
1,451 Views
(@thegaz)
Active Member
Joined: 3 years ago
Posts: 9
Topic starter  

Hi I have setup a nextion with 32 leds. I have 16 leds above nextion and 8 down each side. 16 on top show rpm and works great. I would like the 8 on left side to show brake value and 8 on right to show throttle value.

Under properties I can see "GameData.Brake" & "GameData.Throttle" but not sure if they can be setup to show values through 8 leds or how to do it if possible.

Any advice or instructions would be much appreciated.

Thanks


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

Hello,

 

There is no built-in effect, but you can use a custom gradient effect (at the end of the list) and map it to the throttle /brake property if the current game supports it.


   
ReplyQuote
(@thegaz)
Active Member
Joined: 3 years ago
Posts: 9
Topic starter  

Thanks Wotever. YES! I worked it out and works well except the brake LEDs stay on when in game menu and even after exiting game. When playing they are off and only light when brake pressed. The throttle LEDs are perfect. Im not sure why they stay on. Any ideas?


   
ReplyQuote
(@admin5435)
Prominent Member Admin
Joined: 7 years ago
Posts: 728
 

some telemetry values could stay frozen, simply put everything in a "game running" group so everything will be disabled when exiting the session.


   
ReplyQuote
(@thegaz)
Active Member
Joined: 3 years ago
Posts: 9
Topic starter  

Thanks for all your help and hard work. SimHub is amazing and just keeps getting better!!


   
ReplyQuote
(@andrew)
New Member
Joined: 3 years ago
Posts: 1
 

@thegaz 

hi, I was just wondering if you had sample code for this, I am trying to do the same thing but am still getting my head around it. I was wondering if i could use some of your code as a template to adapt around to my situation. i would understand why you might not want to do this as people don't always like sharing code but if your up for it it would be great 

thanks, Andrew 


   
ReplyQuote
Share: