test no global timer

This commit is contained in:
Lyon 2024-01-04 20:08:03 +08:00
parent 5cbe80a69d
commit 83559294b8
3 changed files with 1 additions and 9 deletions

View File

@ -3,8 +3,6 @@ import pika_lvgl as lv
import time
global_dict = {}
global_list = []
class MyMeter:
def __init__(self,
@ -86,7 +84,6 @@ class MyMeter:
class InputBox:
def __init__(self, parent, label_text="label", value='0.0', unit="", box_num=1, box_width=80):
self.input_box_list = []
global_list.append(self)
container = lv.obj(parent)
container.set_size(110 + box_width * box_num, 50)
container.clear_flag(lv.obj.FLAG.SCROLLABLE)
@ -494,7 +491,6 @@ def main():
global_dict["datetime_label"] = datetime_label
timer = lv.timer_create_basic()
global_list.append(timer)
timer.set_period(1)
timer.set_cb(date_time_update_cb)

View File

@ -3,8 +3,6 @@ import pika_lvgl as lv
import time
global_dict = {}
global_list = []
class MyMeter:
def __init__(self,
@ -86,7 +84,6 @@ class MyMeter:
class InputBox:
def __init__(self, parent, label_text="label", value='0.0', unit="", box_num=1, box_width=80):
self.input_box_list = []
global_list.append(self)
container = lv.obj(parent)
container.set_size(110 + box_width * box_num, 50)
container.clear_flag(lv.obj.FLAG.SCROLLABLE)
@ -494,7 +491,6 @@ def main():
global_dict["datetime_label"] = datetime_label
timer = lv.timer_create_basic()
global_list.append(timer)
timer.set_period(1)
timer.set_cb(date_time_update_cb)

View File

@ -2,4 +2,4 @@
#define PIKA_VERSION_MINOR 13
#define PIKA_VERSION_MICRO 1
#define PIKA_EDIT_TIME "2024/01/04 18:47:45"
#define PIKA_EDIT_TIME "2024/01/04 20:07:43"