From: p15692025051 <846603105@qq.com> Date: Mon, 8 May 2023 08:22:53 +0000 (+0800) Subject: 关掉打印 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=185d834ba2a584996f1ffac5303ea43607c4c383;p=mirrors%2FASR1603_G5.git 关掉打印 --- diff --git a/2.sdk/Helios_SDK/services/microPython/ports/quectel/core/mgr.py b/2.sdk/Helios_SDK/services/microPython/ports/quectel/core/mgr.py index fd4caaa9..eab67875 100644 --- a/2.sdk/Helios_SDK/services/microPython/ports/quectel/core/mgr.py +++ b/2.sdk/Helios_SDK/services/microPython/ports/quectel/core/mgr.py @@ -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: diff --git a/2.sdk/Helios_SDK/services/microPython/ports/quectel/core/ui.py b/2.sdk/Helios_SDK/services/microPython/ports/quectel/core/ui.py index 7163f0b4..bbf7bc69 100644 --- a/2.sdk/Helios_SDK/services/microPython/ports/quectel/core/ui.py +++ b/2.sdk/Helios_SDK/services/microPython/ports/quectel/core/ui.py @@ -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"})