PCNT - how to dynamically set counter value

Deouss
Posts: 425
Joined: Tue Mar 20, 2018 11:36 am

PCNT - how to dynamically set counter value

Postby Deouss » Wed Jun 06, 2018 9:49 pm

Counter control works great however I want to set a specific value at certain event.
I see only resetting counter is possible but how do I set specific value when I want?
I basically want that counter to control more that one variable by switching between them

Deouss
Posts: 425
Joined: Tue Mar 20, 2018 11:36 am

Re: PCNT - how to dynamically set counter value

Postby Deouss » Wed Jun 06, 2018 10:35 pm

I kind of get the idea of using pcnt_counter_clear()
Just clear counter and add to stored value however it would be easier from user point of view to have function
called pcnt_set_counter_value()

Who is online

Users browsing this forum: No registered users and 122 guests