Hi, sorry in advance if this a dumb question, but I’m stuck in this point.
How can I delete a timer, Does not be able to find a map between lv_timer_del and micropython. Was able to stop timers with lv.timer_enable(False), but this stop all the timers.
This is the code i use for testing
import display_driver
import lvgl as lv
import time
# Create a button with a label
btn = lv.btn(lv.scr_act())
btn.align(lv.ALIGN.CENTER, 0, 0)
label = lv.label(btn)
label.set_text(' - ')
value = 0
timer=None
def set_label(timer1):
global value
label.set_text(str(value))
value += 1
def printdebug(timer2):
global value
lv.timer_enable(False) #need to be replaced for disable only timer1
print(value)
value += 1
timer1 = lv.timer_create(set_label, 1000, None)
timer2 = lv.timer_create(printdebug, 5000, None)
Thank you for your help.