led_set third argument ?

GPC2 script programming for Titan Two. Code examples, questions, requests.

led_set third argument ?

Postby Scachi » Wed Sep 28, 2016 9:44 pm

What should led_set's third argument "uint32 dutylength" do ? For me it seems to do nothing at all.

Code: Select all
led_set(LED_1,50.0,500);
seems to do the same as
Code: Select all
led_set(LED_1,50.0,0);
User avatar
Scachi
Brigadier General
Brigadier General
 
Posts: 3044
Joined: Wed May 11, 2016 6:25 am
Location: Germany

Re: led_set third argument ?

Postby J2Kbr » Wed Sep 28, 2016 10:18 pm

It depends of the connected controller. On PS3 controllers this parameter sets the period the LED should blink, with duty cycle of 50%. On PS4 controllers this does not have any effect. This parameter reflects an actual feature of the controller. Alternatively, the Titan Two have another way to control the LED blinking, utilizing led_vm* functions.
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 20323
Joined: Tue Mar 18, 2014 1:39 pm

Re: led_set third argument ?

Postby Scachi » Thu Sep 29, 2016 8:04 am

Okay, I am using PS4/DS4 so its fine that there is no effect from the third argument.

I really do miss the GPC Language Reference of Gtuner Pro 3.5. It was a great help with all the example code.
I can't wait to have such a reference updated/available for Gtuner IV :wink:
User avatar
Scachi
Brigadier General
Brigadier General
 
Posts: 3044
Joined: Wed May 11, 2016 6:25 am
Location: Germany


Return to GPC2 Script Programming

Who is online

Users browsing this forum: No registered users and 78 guests