Explorar el Código

test no global timer

Lyon hace 2 años
padre
commit
83559294b8

+ 0 - 4
examples/pika_lvgl/lv_uidemo.py

@@ -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)
 

+ 0 - 4
port/linux/test/python/pika_lvgl/lv_uidemo.py

@@ -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)
 

+ 1 - 1
src/PikaVersion.h

@@ -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"