关掉打印
authorp15692025051 <846603105@qq.com>
Mon, 8 May 2023 08:22:53 +0000 (16:22 +0800)
committerp15692025051 <846603105@qq.com>
Mon, 8 May 2023 08:22:53 +0000 (16:22 +0800)
2.sdk/Helios_SDK/services/microPython/ports/quectel/core/mgr.py
2.sdk/Helios_SDK/services/microPython/ports/quectel/core/ui.py

index fd4caaa..eab6787 100644 (file)
@@ -1176,11 +1176,11 @@ class DeviceInfoManager(Abstract):
         I2C_SLAVE_ADDR = 0x49
         r_data = bytearray(2)
         self.i2c0.read(I2C_SLAVE_ADDR, WHO_AM_I, 1, r_data, 2, 0)
-        print("temp_data:{}".format(r_data))
+        #print("temp_data:{}".format(r_data))
         temp_s = ((r_data[0]<<8) | (r_data[1]))>>4
-        print("temp_s:{}".format(temp_s))
+        #print("temp_s:{}".format(temp_s))
         temp_data = temp_s * 0.0625
-        print("temp_data:{}".format(temp_data))
+        #print("temp_data:{}".format(temp_data))
         return temp_data
 
  
@@ -1834,7 +1834,7 @@ class getBrightnessManager(Abstract):#获取亮度级别
         self.time = msg
     
     def get_brightness_time(self, event, msg): 
-        print("get_brightness_time self.read_data:{} self.time:{}".format(self.read_data,self.time))
+        #print("get_brightness_time self.read_data:{} self.time:{}".format(self.read_data,self.time))
         if self.read_data != {}:
             b = str("brightness_time") in self.read_data.keys()
             if b == True:
index 7163f0b..bbf7bc6 100644 (file)
@@ -2319,14 +2319,14 @@ class TemperatureScreen(Screen):
             temperature_wrist_value_label.set_style_text_align(lv.TEXT_ALIGN.CENTER, 0)
             temperature_wrist_value_label.add_style(style_font_youyuan_20, lv.PART.MAIN | lv.STATE.DEFAULT)
             self.meta = temperature_screen
-        print("START_TEMP:{}".format(EventMesh.publish(constants.EVENT.START_TEMP)))
+        EventMesh.publish(constants.EVENT.START_TEMP)
         self.temp_timer.start(1*1000, 1, self.temp_timerout)
     def temp_timerout(self,*args):
         temp = EventMesh.publish(constants.EVENT.GET_TEMP) 
         print("temp:{}".format(temp))   
         temperature_value_label.set_text("{}".format(temp))
     def Close(self):
-        print("STOP_TEMP:{}".format(EventMesh.publish(constants.EVENT.STOP_TEMP)))
+        EventMesh.publish(constants.EVENT.STOP_TEMP)
         self.temp_timer.stop()
     def done_return(self):
         EventMesh.publish("load_screen", {"screen": "main_menu"})