inflop / Countimer

This is simple timer and counter Arduino library.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to change the countdown time using a variable?

Dezolator99 opened this issue · comments

Original:
// Count-down timer with 21s
tDown.setCounter(0, 0, 21, tDown.COUNT_DOWN, tDownComplete);

I need:
tDown.setCounter(0, 0, time, tDown.COUNT_DOWN, tDownComplete);

The "time" value is set by the touch display.

Did you try to call setCounter method inside the loop method with the new value?